| 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" | |
| 11 | 10 |
| 12 namespace gpu { | 11 namespace gpu { |
| 13 namespace gles2 { | 12 namespace gles2 { |
| 14 class GLES2Decoder; | 13 class GLES2Decoder; |
| 15 } | 14 } |
| 16 } | 15 } |
| 17 namespace gfx { | 16 namespace gfx { |
| 18 | 17 |
| 19 class GLContext; | 18 class GLContext; |
| 20 class GLSurface; | 19 class GLSurface; |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 // The real context we're running on. | 110 // The real context we're running on. |
| 112 GLContext* real_context_; | 111 GLContext* real_context_; |
| 113 | 112 |
| 114 // The current virtual context. | 113 // The current virtual context. |
| 115 GLContext* current_context_; | 114 GLContext* current_context_; |
| 116 | 115 |
| 117 // The supported extensions being advertised for this virtual context. | 116 // The supported extensions being advertised for this virtual context. |
| 118 std::string extensions_; | 117 std::string extensions_; |
| 119 }; | 118 }; |
| 120 | 119 |
| 121 class GL_EXPORT ScopedSetGLToRealGLApi { | |
| 122 public: | |
| 123 ScopedSetGLToRealGLApi(); | |
| 124 ~ScopedSetGLToRealGLApi(); | |
| 125 | |
| 126 private: | |
| 127 GLApi* old_gl_api_; | |
| 128 }; | |
| 129 | |
| 130 } // namespace gfx | 120 } // namespace gfx |
| 131 | 121 |
| 132 #endif // UI_GL_GL_GL_API_IMPLEMENTATION_H_ | 122 #endif // UI_GL_GL_GL_API_IMPLEMENTATION_H_ |
| OLD | NEW |