| 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 namespace gpu { | 17 namespace gpu { |
| 18 namespace gles2 { | 18 namespace gles2 { |
| 19 class GLES2Decoder; | 19 class GLES2Decoder; |
| 20 } | 20 } |
| 21 } | 21 } |
| 22 namespace gl { | 22 namespace gl { |
| 23 | 23 |
| 24 class GLContext; | 24 class GLContext; |
| 25 class GLSurface; | 25 class GLSurface; |
| 26 struct GLVersionInfo; | 26 struct GLVersionInfo; |
| 27 | 27 |
| 28 GL_EXPORT void InitializeStaticGLBindingsGL(); | 28 void InitializeStaticGLBindingsGL(); |
| 29 void InitializeDynamicGLBindingsGL(GLContext* context); | 29 void InitializeDynamicGLBindingsGL(GLContext* context); |
| 30 GL_EXPORT void InitializeDebugGLBindingsGL(); | 30 void InitializeDebugGLBindingsGL(); |
| 31 void InitializeNullDrawGLBindingsGL(); | 31 void InitializeNullDrawGLBindingsGL(); |
| 32 // TODO(danakj): Remove this when all test suites are using null-draw. | 32 // TODO(danakj): Remove this when all test suites are using null-draw. |
| 33 bool HasInitializedNullDrawGLBindingsGL(); | 33 bool HasInitializedNullDrawGLBindingsGL(); |
| 34 bool SetNullDrawGLBindingsEnabledGL(bool enabled); | 34 bool SetNullDrawGLBindingsEnabledGL(bool enabled); |
| 35 GL_EXPORT void ClearGLBindingsGL(); | 35 void ClearGLBindingsGL(); |
| 36 void SetGLToRealGLApi(); | 36 void SetGLToRealGLApi(); |
| 37 void SetGLApi(GLApi* api); | 37 void SetGLApi(GLApi* api); |
| 38 void SetGLApiToNoContext(); | 38 void SetGLApiToNoContext(); |
| 39 GLApi* GetCurrentGLApi(); | 39 GLApi* GetCurrentGLApi(); |
| 40 const GLVersionInfo* GetGLVersionInfo(); | 40 const GLVersionInfo* GetGLVersionInfo(); |
| 41 | 41 |
| 42 class GL_EXPORT GLApiBase : public GLApi { | 42 class GL_EXPORT GLApiBase : public GLApi { |
| 43 public: | 43 public: |
| 44 // Include the auto-generated part of this class. We split this because | 44 // Include the auto-generated part of this class. We split this because |
| 45 // it means we can easily edit the non-auto generated parts right here in | 45 // it means we can easily edit the non-auto generated parts right here in |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 GLContext* current_context_; | 139 GLContext* current_context_; |
| 140 | 140 |
| 141 // The supported extensions being advertised for this virtual context. | 141 // The supported extensions being advertised for this virtual context. |
| 142 std::string extensions_; | 142 std::string extensions_; |
| 143 std::vector<std::string> extensions_vec_; | 143 std::vector<std::string> extensions_vec_; |
| 144 }; | 144 }; |
| 145 | 145 |
| 146 } // namespace gl | 146 } // namespace gl |
| 147 | 147 |
| 148 #endif // UI_GL_GL_GL_API_IMPLEMENTATION_H_ | 148 #endif // UI_GL_GL_GL_API_IMPLEMENTATION_H_ |
| OLD | NEW |