blob: 37573fc5d4db9872d3db7bc76121e4e82e451f68 [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;
Platform3DObject object() const { return m_object; }
void setObject(Platform3DObject);
protected:
explicit WebGLSharedPlatform3DObject(WebGLRenderingContextBase*);
bool hasObject() const override;
Platform3DObject m_object;
};
} // namespace blink
#endif // WebGLSharedPlatform3DObject_h