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

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

Issue 331293003: Add common GLFence::IsSupported() check (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 6 months 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 | Annotate | Revision Log
« no previous file with comments | « ui/gl/gl_fence.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_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 10
11 namespace gpu { 11 namespace gpu {
12 namespace gles2 { 12 namespace gles2 {
13 class GLES2Decoder; 13 class GLES2Decoder;
14 } 14 }
15 } 15 }
16 namespace gfx { 16 namespace gfx {
17 17
18 class GLContext; 18 class GLContext;
19 class GLSurface; 19 class GLSurface;
20 struct GLVersionInfo;
20 21
21 void InitializeStaticGLBindingsGL(); 22 void InitializeStaticGLBindingsGL();
22 void InitializeDynamicGLBindingsGL(GLContext* context); 23 void InitializeDynamicGLBindingsGL(GLContext* context);
23 void InitializeDebugGLBindingsGL(); 24 void InitializeDebugGLBindingsGL();
24 void InitializeNullDrawGLBindingsGL(); 25 void InitializeNullDrawGLBindingsGL();
25 // TODO(danakj): Remove this when all test suites are using null-draw. 26 // TODO(danakj): Remove this when all test suites are using null-draw.
26 bool HasInitializedNullDrawGLBindingsGL(); 27 bool HasInitializedNullDrawGLBindingsGL();
27 bool SetNullDrawGLBindingsEnabledGL(bool enabled); 28 bool SetNullDrawGLBindingsEnabledGL(bool enabled);
28 void ClearGLBindingsGL(); 29 void ClearGLBindingsGL();
29 void SetGLToRealGLApi(); 30 void SetGLToRealGLApi();
30 void SetGLApi(GLApi* api); 31 void SetGLApi(GLApi* api);
31 void SetGLApiToNoContext(); 32 void SetGLApiToNoContext();
33 const GLVersionInfo* GetGLVersionInfo();
32 34
33 class GLApiBase : public GLApi { 35 class GLApiBase : public GLApi {
34 public: 36 public:
35 // Include the auto-generated part of this class. We split this because 37 // Include the auto-generated part of this class. We split this because
36 // it means we can easily edit the non-auto generated parts right here in 38 // it means we can easily edit the non-auto generated parts right here in
37 // this file instead of having to edit some template or the code generator. 39 // this file instead of having to edit some template or the code generator.
38 #include "gl_bindings_api_autogen_gl.h" 40 #include "gl_bindings_api_autogen_gl.h"
39 41
40 protected: 42 protected:
41 GLApiBase(); 43 GLApiBase();
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 // The current virtual context. 113 // The current virtual context.
112 GLContext* current_context_; 114 GLContext* current_context_;
113 115
114 // The supported extensions being advertised for this virtual context. 116 // The supported extensions being advertised for this virtual context.
115 std::string extensions_; 117 std::string extensions_;
116 }; 118 };
117 119
118 } // namespace gfx 120 } // namespace gfx
119 121
120 #endif // UI_GL_GL_GL_API_IMPLEMENTATION_H_ 122 #endif // UI_GL_GL_GL_API_IMPLEMENTATION_H_
OLDNEW
« no previous file with comments | « ui/gl/gl_fence.cc ('k') | ui/gl/gl_gl_api_implementation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698