| 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 "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "ui/gl/gl_bindings.h" | 9 #include "ui/gl/gl_bindings.h" |
| 10 #include "ui/gl/gl_export.h" | 10 #include "ui/gl/gl_export.h" |
| 11 | 11 |
| 12 namespace gpu { | 12 namespace gpu { |
| 13 namespace gles2 { | 13 namespace gles2 { |
| 14 class GLES2Decoder; | 14 class GLES2Decoder; |
| 15 } | 15 } |
| 16 } | 16 } |
| 17 namespace gfx { | 17 namespace gfx { |
| 18 | 18 |
| 19 class GLContext; | 19 class GLContext; |
| 20 class GLSurface; | 20 class GLSurface; |
| 21 | 21 |
| 22 void InitializeStaticGLBindingsGL(); | 22 void InitializeStaticGLBindingsGL(); |
| 23 void InitializeDynamicGLBindingsGL(GLContext* context); | 23 void InitializeDynamicGLBindingsGL(GLContext* context); |
| 24 void InitializeDebugGLBindingsGL(); | 24 void InitializeDebugGLBindingsGL(); |
| 25 void InitializeNullDrawGLBindingsGL(); | 25 void InitializeNullDrawGLBindingsGL(); |
| 26 // TODO(danakj): Remove this when all test suites are using null-draw. |
| 27 bool HasInitializedNullDrawGLBindingsGL(); |
| 26 bool SetNullDrawGLBindingsEnabledGL(bool enabled); | 28 bool SetNullDrawGLBindingsEnabledGL(bool enabled); |
| 27 void ClearGLBindingsGL(); | 29 void ClearGLBindingsGL(); |
| 28 void SetGLToRealGLApi(); | 30 void SetGLToRealGLApi(); |
| 29 void SetGLApi(GLApi* api); | 31 void SetGLApi(GLApi* api); |
| 30 | 32 |
| 31 class GL_EXPORT GLApiBase : public GLApi { | 33 class GL_EXPORT GLApiBase : public GLApi { |
| 32 public: | 34 public: |
| 33 // Include the auto-generated part of this class. We split this because | 35 // Include the auto-generated part of this class. We split this because |
| 34 // it means we can easily edit the non-auto generated parts right here in | 36 // it means we can easily edit the non-auto generated parts right here in |
| 35 // this file instead of having to edit some template or the code generator. | 37 // this file instead of having to edit some template or the code generator. |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 // The current virtual context. | 92 // The current virtual context. |
| 91 GLContext* current_context_; | 93 GLContext* current_context_; |
| 92 | 94 |
| 93 // The supported extensions being advertised for this virtual context. | 95 // The supported extensions being advertised for this virtual context. |
| 94 std::string extensions_; | 96 std::string extensions_; |
| 95 }; | 97 }; |
| 96 | 98 |
| 97 } // namespace gfx | 99 } // namespace gfx |
| 98 | 100 |
| 99 #endif // UI_GL_GL_GL_API_IMPLEMENTATION_H_ | 101 #endif // UI_GL_GL_GL_API_IMPLEMENTATION_H_ |
| OLD | NEW |