OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef WebGLContextProviderCreationInfo_h | |
6 #define WebGLContextProviderCreationInfo_h | |
7 | |
8 #include "bindings/core/v8/ScriptState.h" | |
9 #include "modules/ModulesExport.h" | |
10 #include "public/platform/Platform.h" | |
11 #include "public/platform/WebGraphicsContext3DProvider.h" | |
12 | |
13 namespace blink { | |
14 | |
15 class MODULES_EXPORT WebGLContextProviderCreationInfo { | |
sof
2016/05/08 07:05:00
This class can be made local to WebGLRenderingCont
xidachen
2016/05/08 17:17:45
Sorry, I must have mis-interpret your previous com
sof
2016/05/08 17:30:21
WebGLRenderingContextBase.h:
class WebGLRendering
xidachen
2016/05/08 18:04:53
Thank you. I have made changes accordingly. Also,
| |
16 public: | |
17 WebGLContextProviderCreationInfo(Platform::ContextAttributes contextAttribut es, Platform::GraphicsInfo glInfo, ScriptState* scriptState) | |
18 { | |
19 m_contextAttributes = contextAttributes; | |
20 m_glInfo = glInfo; | |
21 m_scriptState = scriptState; | |
22 } | |
23 Platform::ContextAttributes contextAttributes() { return m_contextAttributes ; } | |
24 Platform::GraphicsInfo glInfo() { return m_glInfo; } | |
25 ScriptState* scriptState() { return m_scriptState; } | |
26 void setContextProvider(PassOwnPtr<WebGraphicsContext3DProvider> provider) { m_provider = std::move(provider); } | |
27 PassOwnPtr<WebGraphicsContext3DProvider> releaseContextProvider() { return m _provider.release(); } | |
28 private: | |
29 Platform::ContextAttributes m_contextAttributes; | |
30 Platform::GraphicsInfo m_glInfo; | |
31 ScriptState* m_scriptState; | |
32 OwnPtr<WebGraphicsContext3DProvider> m_provider; | |
33 }; | |
34 | |
35 } // namespace blink | |
36 | |
37 #endif // WebGLContextProviderCreationInfo_h | |
OLD | NEW |