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_IMPLEMENTATION_H_ | 5 #ifndef UI_GL_GL_IMPLEMENTATION_H_ |
6 #define UI_GL_GL_IMPLEMENTATION_H_ | 6 #define UI_GL_GL_IMPLEMENTATION_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 GL_EXPORT bool InitializeDynamicGLBindings(GLImplementation implementation, | 49 GL_EXPORT bool InitializeDynamicGLBindings(GLImplementation implementation, |
50 GLContext* context); | 50 GLContext* context); |
51 | 51 |
52 // Initialize Debug logging wrappers for GL bindings. | 52 // Initialize Debug logging wrappers for GL bindings. |
53 void InitializeDebugGLBindings(); | 53 void InitializeDebugGLBindings(); |
54 | 54 |
55 // Initialize stub methods for drawing operations in the GL bindings. The | 55 // Initialize stub methods for drawing operations in the GL bindings. The |
56 // null draw bindings default to enabled, so that draw operations do nothing. | 56 // null draw bindings default to enabled, so that draw operations do nothing. |
57 void InitializeNullDrawGLBindings(); | 57 void InitializeNullDrawGLBindings(); |
58 | 58 |
| 59 // TODO(danakj): Remove this when all test suites are using null-draw. |
| 60 GL_EXPORT bool HasInitializedNullDrawGLBindings(); |
| 61 |
59 // Once initialized, instantiating this turns the stub methods for drawing | 62 // Once initialized, instantiating this turns the stub methods for drawing |
60 // operations off allowing drawing will occur while the object is alive. | 63 // operations off allowing drawing will occur while the object is alive. |
61 class GL_EXPORT DisableNullDrawGLBindings { | 64 class GL_EXPORT DisableNullDrawGLBindings { |
62 public: | 65 public: |
63 DisableNullDrawGLBindings(); | 66 DisableNullDrawGLBindings(); |
64 ~DisableNullDrawGLBindings(); | 67 ~DisableNullDrawGLBindings(); |
65 | 68 |
66 private: | 69 private: |
67 bool initial_enabled_; | 70 bool initial_enabled_; |
68 }; | 71 }; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 // unsupported. | 107 // unsupported. |
105 void* GetGLProcAddress(const char* name); | 108 void* GetGLProcAddress(const char* name); |
106 | 109 |
107 // Return information about the GL window system binding implementation (e.g., | 110 // Return information about the GL window system binding implementation (e.g., |
108 // EGL, GLX, WGL). Returns true if the information was retrieved successfully. | 111 // EGL, GLX, WGL). Returns true if the information was retrieved successfully. |
109 GL_EXPORT bool GetGLWindowSystemBindingInfo(GLWindowSystemBindingInfo* info); | 112 GL_EXPORT bool GetGLWindowSystemBindingInfo(GLWindowSystemBindingInfo* info); |
110 | 113 |
111 } // namespace gfx | 114 } // namespace gfx |
112 | 115 |
113 #endif // UI_GL_GL_IMPLEMENTATION_H_ | 116 #endif // UI_GL_GL_IMPLEMENTATION_H_ |
OLD | NEW |