blob: 447b020fb5d5f2a653aa34f558dd910c951899f4 [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