blob: f25d04452198ceaa99a94983656b2da3158a8423 [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 WebGLSharedPlatform3DObject_h
#define WebGLSharedPlatform3DObject_h
#include "modules/webgl/WebGLSharedObject.h"
#include "wtf/PassRefPtr.h"
namespace blink {
class WebGLRenderingContextBase;
class WebGLSharedPlatform3DObject : public WebGLSharedObject {
public:
~WebGLSharedPlatform3DObject() override;
GLuint object() const { return m_object; }
void setObject(GLuint);
protected:
explicit WebGLSharedPlatform3DObject(WebGLRenderingContextBase*);
bool hasObject() const override;
GLuint m_object;
};
} // namespace blink
#endif // WebGLSharedPlatform3DObject_h