| 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" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 void InitializeDynamicGLBindingsGL(GLContext* context); | 29 void InitializeDynamicGLBindingsGL(GLContext* context); |
| 30 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 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 const GLVersionInfo* GetGLVersionInfo(); | 39 const GL_EXPORT GLVersionInfo* GetGLVersionInfo(); |
| 40 | 40 |
| 41 class GL_EXPORT GLApiBase : public GLApi { | 41 class GL_EXPORT GLApiBase : public GLApi { |
| 42 public: | 42 public: |
| 43 // Include the auto-generated part of this class. We split this because | 43 // Include the auto-generated part of this class. We split this because |
| 44 // it means we can easily edit the non-auto generated parts right here in | 44 // it means we can easily edit the non-auto generated parts right here in |
| 45 // this file instead of having to edit some template or the code generator. | 45 // this file instead of having to edit some template or the code generator. |
| 46 #include "gl_bindings_api_autogen_gl.h" | 46 #include "gl_bindings_api_autogen_gl.h" |
| 47 | 47 |
| 48 protected: | 48 protected: |
| 49 GLApiBase(); | 49 GLApiBase(); |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 ScopedSetGLToRealGLApi(); | 141 ScopedSetGLToRealGLApi(); |
| 142 ~ScopedSetGLToRealGLApi(); | 142 ~ScopedSetGLToRealGLApi(); |
| 143 | 143 |
| 144 private: | 144 private: |
| 145 GLApi* old_gl_api_; | 145 GLApi* old_gl_api_; |
| 146 }; | 146 }; |
| 147 | 147 |
| 148 } // namespace gfx | 148 } // namespace gfx |
| 149 | 149 |
| 150 #endif // UI_GL_GL_GL_API_IMPLEMENTATION_H_ | 150 #endif // UI_GL_GL_GL_API_IMPLEMENTATION_H_ |
| OLD | NEW |