blob: b0aa24c393c466397c1b6cd94245c0f52282b34b [file]
// 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(gpu::gles2::GLES2Interface*) override;
private:
bool isSampler() const override { return true; }
};
} // namespace blink
#endif // WebGLSampler_h