blob: 37573fc5d4db9872d3db7bc76121e4e82e451f68 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
// 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
|