| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 void Initialize(DriverGL* driver); | 61 void Initialize(DriverGL* driver); |
| 62 void InitializeWithCommandLine(DriverGL* driver, | 62 void InitializeWithCommandLine(DriverGL* driver, |
| 63 base::CommandLine* command_line); | 63 base::CommandLine* command_line); |
| 64 | 64 |
| 65 void InitializeWithContext(); | 65 void InitializeWithContext(); |
| 66 | 66 |
| 67 void glGetIntegervFn(GLenum pname, GLint* params) override; | 67 void glGetIntegervFn(GLenum pname, GLint* params) override; |
| 68 const GLubyte* glGetStringFn(GLenum name) override; | 68 const GLubyte* glGetStringFn(GLenum name) override; |
| 69 const GLubyte* glGetStringiFn(GLenum name, GLuint index) override; | 69 const GLubyte* glGetStringiFn(GLenum name, GLuint index) override; |
| 70 | 70 |
| 71 std::set<std::string> GetEnabledExtensions(GLContext* context) const; |
| 72 |
| 71 private: | 73 private: |
| 72 void InitializeFilteredExtensions(); | 74 void InitializeFilteredExtensions(); |
| 73 void glFinishFn() override; | 75 void glFinishFn() override; |
| 74 void glFlushFn() override; | 76 void glFlushFn() override; |
| 75 | 77 |
| 76 // Filtered GL_EXTENSIONS we return to glGetString(i) calls. | 78 // Filtered GL_EXTENSIONS we return to glGetString(i) calls. |
| 77 std::vector<std::string> disabled_exts_; | 79 std::vector<std::string> disabled_exts_; |
| 78 std::vector<std::string> filtered_exts_; | 80 std::vector<std::string> filtered_exts_; |
| 79 std::string filtered_exts_str_; | 81 std::string filtered_exts_str_; |
| 80 }; | 82 }; |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 ScopedSetGLToRealGLApi(); | 143 ScopedSetGLToRealGLApi(); |
| 142 ~ScopedSetGLToRealGLApi(); | 144 ~ScopedSetGLToRealGLApi(); |
| 143 | 145 |
| 144 private: | 146 private: |
| 145 GLApi* old_gl_api_; | 147 GLApi* old_gl_api_; |
| 146 }; | 148 }; |
| 147 | 149 |
| 148 } // namespace gfx | 150 } // namespace gfx |
| 149 | 151 |
| 150 #endif // UI_GL_GL_GL_API_IMPLEMENTATION_H_ | 152 #endif // UI_GL_GL_GL_API_IMPLEMENTATION_H_ |
| OLD | NEW |