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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 public: | 117 public: |
118 VirtualGLApi(); | 118 VirtualGLApi(); |
119 ~VirtualGLApi() override; | 119 ~VirtualGLApi() override; |
120 void Initialize(DriverGL* driver, GLContext* real_context); | 120 void Initialize(DriverGL* driver, GLContext* real_context); |
121 | 121 |
122 // Sets the current virutal context. | 122 // Sets the current virutal context. |
123 bool MakeCurrent(GLContext* virtual_context, GLSurface* surface); | 123 bool MakeCurrent(GLContext* virtual_context, GLSurface* surface); |
124 | 124 |
125 void OnReleaseVirtuallyCurrent(GLContext* virtual_context); | 125 void OnReleaseVirtuallyCurrent(GLContext* virtual_context); |
126 | 126 |
127 private: | 127 private: |
128 // Overridden functions from GLApiBase | 128 // Overridden functions from GLApiBase |
129 const GLubyte* glGetStringFn(GLenum name) override; | 129 void glGetIntegervFn(GLenum pname, GLint* params) override; |
130 void glFinishFn() override; | 130 const GLubyte* glGetStringFn(GLenum name) override; |
131 void glFlushFn() override; | 131 const GLubyte* glGetStringiFn(GLenum name, GLuint index) override; |
| 132 void glFinishFn() override; |
| 133 void glFlushFn() override; |
132 | 134 |
133 // The real context we're running on. | 135 // The real context we're running on. |
134 GLContext* real_context_; | 136 GLContext* real_context_; |
135 | 137 |
136 // The current virtual context. | 138 // The current virtual context. |
137 GLContext* current_context_; | 139 GLContext* current_context_; |
138 | 140 |
139 // The supported extensions being advertised for this virtual context. | 141 // The supported extensions being advertised for this virtual context. |
140 std::string extensions_; | 142 std::string extensions_; |
| 143 std::vector<std::string> extensions_vec_; |
141 }; | 144 }; |
142 | 145 |
143 } // namespace gfx | 146 } // namespace gfx |
144 | 147 |
145 #endif // UI_GL_GL_GL_API_IMPLEMENTATION_H_ | 148 #endif // UI_GL_GL_GL_API_IMPLEMENTATION_H_ |
OLD | NEW |