| // Copyright 2015 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef WebGLSampler_h |
| #define WebGLSampler_h |
| |
| #include "modules/webgl/WebGLSharedPlatform3DObject.h" |
| |
| namespace blink { |
| |
| class WebGL2RenderingContextBase; |
| |
| class WebGLSampler : public WebGLSharedPlatform3DObject { |
| DEFINE_WRAPPERTYPEINFO(); |
| public: |
| ~WebGLSampler() override; |
| |
| static WebGLSampler* create(WebGL2RenderingContextBase*); |
| |
| protected: |
| explicit WebGLSampler(WebGL2RenderingContextBase*); |
| |
| void deleteObjectImpl(WebGraphicsContext3D*) override; |
| |
| private: |
| bool isSampler() const override { return true; } |
| }; |
| |
| } // namespace blink |
| |
| #endif // WebGLSampler_h |