1 // 2 // Copyright 2014 The ANGLE Project Authors. All rights reserved. 3 // Use of this source code is governed by a BSD-style license that can be 4 // found in the LICENSE file. 5 // 6 7 // SamplerImpl.h: Defines the abstract rx::SamplerImpl class. 8 9 #ifndef LIBANGLE_RENDERER_SAMPLERIMPL_H_ 10 #define LIBANGLE_RENDERER_SAMPLERIMPL_H_ 11 12 #include "common/angleutils.h" 13 14 namespace gl 15 { 16 class Context; 17 struct SamplerState; 18 } // namespace gl 19 20 namespace rx 21 { 22 23 class SamplerImpl : angle::NonCopyable 24 { 25 public: SamplerImpl(const gl::SamplerState & state)26 SamplerImpl(const gl::SamplerState &state) : mState(state) {} ~SamplerImpl()27 virtual ~SamplerImpl() {} 28 syncState(const gl::Context * context)29 virtual void syncState(const gl::Context *context) 30 { 31 // Default implementation: no-op. 32 } 33 34 protected: 35 const gl::SamplerState &mState; 36 }; 37 } // namespace rx 38 39 #endif // LIBANGLE_RENDERER_SAMPLERIMPL_H_ 40