blob: 8132d64f3c2f88be276f9cf3a53e0ef7511c248e [file] [log] [blame]
// 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