OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_GL_GL_GL_API_IMPLEMENTATION_H_ | 5 #ifndef UI_GL_GL_GL_API_IMPLEMENTATION_H_ |
6 #define UI_GL_GL_GL_API_IMPLEMENTATION_H_ | 6 #define UI_GL_GL_GL_API_IMPLEMENTATION_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "ui/gl/gl_bindings.h" | 11 #include "ui/gl/gl_bindings.h" |
12 #include "ui/gl/gl_export.h" | 12 #include "ui/gl/gl_export.h" |
13 | 13 |
14 namespace base { | 14 namespace base { |
15 class CommandLine; | 15 class CommandLine; |
16 } | 16 } |
17 | 17 |
18 namespace gl { | 18 namespace gl { |
19 | 19 |
20 class GLContext; | 20 class GLContext; |
21 struct GLVersionInfo; | 21 struct GLVersionInfo; |
22 | 22 |
23 GL_EXPORT void InitializeStaticGLBindingsGL(); | 23 GL_EXPORT void InitializeStaticGLBindingsGL(); |
24 void InitializeDynamicGLBindingsGL(GLContext* context); | 24 void InitializeDynamicGLBindingsGL(GLContext* context); |
25 GL_EXPORT void InitializeDebugGLBindingsGL(); | 25 GL_EXPORT void InitializeDebugGLBindingsGL(); |
26 void InitializeNullDrawGLBindingsGL(); | 26 void InitializeNullDrawGLBindingsGL(); |
27 // TODO(danakj): Remove this when all test suites are using null-draw. | 27 // TODO(danakj): Remove this when all test suites are using null-draw. |
28 bool HasInitializedNullDrawGLBindingsGL(); | 28 bool HasInitializedNullDrawGLBindingsGL(); |
29 bool SetNullDrawGLBindingsEnabledGL(bool enabled); | 29 bool SetNullDrawGLBindingsEnabledGL(bool enabled); |
30 GL_EXPORT void ClearGLBindingsGL(); | 30 GL_EXPORT void ClearBindingsGL(); |
31 void SetGLToRealGLApi(); | 31 void SetGLToRealGLApi(); |
32 void SetGLToStubGLApi(); | 32 void SetGLToStubGLApi(); |
33 void SetGLApi(GLApi* api); | 33 void SetGLApi(GLApi* api); |
34 void SetGLApiToNoContext(); | 34 void SetGLApiToNoContext(); |
35 GLApi* GetCurrentGLApi(); | 35 GLApi* GetCurrentGLApi(); |
36 GL_EXPORT void SetStubGLApi(GLApi* api); | 36 GL_EXPORT void SetStubGLApi(GLApi* api); |
37 const GLVersionInfo* GetGLVersionInfo(); | 37 const GLVersionInfo* GetGLVersionInfo(); |
38 | 38 |
39 class GL_EXPORT GLApiBase : public GLApi { | 39 class GL_EXPORT GLApiBase : public GLApi { |
40 public: | 40 public: |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 | 100 |
101 // Include the auto-generated part of this class. We split this because | 101 // Include the auto-generated part of this class. We split this because |
102 // it means we can easily edit the non-auto generated parts right here in | 102 // it means we can easily edit the non-auto generated parts right here in |
103 // this file instead of having to edit some template or the code generator. | 103 // this file instead of having to edit some template or the code generator. |
104 #include "gl_bindings_api_autogen_gl.h" | 104 #include "gl_bindings_api_autogen_gl.h" |
105 }; | 105 }; |
106 | 106 |
107 } // namespace gl | 107 } // namespace gl |
108 | 108 |
109 #endif // UI_GL_GL_GL_API_IMPLEMENTATION_H_ | 109 #endif // UI_GL_GL_GL_API_IMPLEMENTATION_H_ |
OLD | NEW |