Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: ui/gl/gl_gl_api_implementation.h

Issue 94963003: Take GL version and extensions correctly into account when binding functions (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Improve Windows initialization and renderBufferMultisample explanation Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/gl/gl_egl_api_implementation.cc ('k') | ui/gl/gl_gl_api_implementation.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_API_IMPLEMENTATION_H_ 5 #ifndef UI_GL_GL_API_IMPLEMENTATION_H_
6 #define UI_GL_GL_API_IMPLEMENTATION_H_ 6 #define UI_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 InitializeGLBindingsGL(); 22 void InitializeStaticGLBindingsGL();
23 void InitializeGLExtensionBindingsGL(GLContext* context); 23 void InitializeDynamicGLBindingsGL(GLContext* context);
24 void InitializeDebugGLBindingsGL(); 24 void InitializeDebugGLBindingsGL();
25 void ClearGLBindingsGL(); 25 void ClearGLBindingsGL();
26 void SetGLToRealGLApi(); 26 void SetGLToRealGLApi();
27 void SetGLApi(GLApi* api); 27 void SetGLApi(GLApi* api);
28 28
29 class GL_EXPORT GLApiBase : public GLApi { 29 class GL_EXPORT GLApiBase : public GLApi {
30 public: 30 public:
31 // Include the auto-generated part of this class. We split this because 31 // Include the auto-generated part of this class. We split this because
32 // it means we can easily edit the non-auto generated parts right here in 32 // it means we can easily edit the non-auto generated parts right here in
33 // this file instead of having to edit some template or the code generator. 33 // 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
88 // The current virtual context. 88 // The current virtual context.
89 GLContext* current_context_; 89 GLContext* current_context_;
90 90
91 // The supported extensions being advertised for this virtual context. 91 // The supported extensions being advertised for this virtual context.
92 std::string extensions_; 92 std::string extensions_;
93 }; 93 };
94 94
95 } // namespace gfx 95 } // namespace gfx
96 96
97 #endif // UI_GL_GL_API_IMPLEMENTATION_H_ 97 #endif // UI_GL_GL_API_IMPLEMENTATION_H_
OLDNEW
« no previous file with comments | « ui/gl/gl_egl_api_implementation.cc ('k') | ui/gl/gl_gl_api_implementation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698