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

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

Issue 2136223002: Introduce GLStubApi (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
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 <vector> 8 #include <vector>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 16 matching lines...) Expand all
27 27
28 GL_EXPORT void InitializeStaticGLBindingsGL(); 28 GL_EXPORT void InitializeStaticGLBindingsGL();
29 void InitializeDynamicGLBindingsGL(GLContext* context); 29 void InitializeDynamicGLBindingsGL(GLContext* context);
30 GL_EXPORT void InitializeDebugGLBindingsGL(); 30 GL_EXPORT void InitializeDebugGLBindingsGL();
31 void InitializeNullDrawGLBindingsGL(); 31 void InitializeNullDrawGLBindingsGL();
32 // TODO(danakj): Remove this when all test suites are using null-draw. 32 // TODO(danakj): Remove this when all test suites are using null-draw.
33 bool HasInitializedNullDrawGLBindingsGL(); 33 bool HasInitializedNullDrawGLBindingsGL();
34 bool SetNullDrawGLBindingsEnabledGL(bool enabled); 34 bool SetNullDrawGLBindingsEnabledGL(bool enabled);
35 GL_EXPORT void ClearGLBindingsGL(); 35 GL_EXPORT void ClearGLBindingsGL();
36 void SetGLToRealGLApi(); 36 void SetGLToRealGLApi();
37 void SetGLToStubGLApi();
37 void SetGLApi(GLApi* api); 38 void SetGLApi(GLApi* api);
38 void SetGLApiToNoContext(); 39 void SetGLApiToNoContext();
39 GLApi* GetCurrentGLApi(); 40 GLApi* GetCurrentGLApi();
41 GL_EXPORT void SetStubGLApi(GLApi* api);
40 const GLVersionInfo* GetGLVersionInfo(); 42 const GLVersionInfo* GetGLVersionInfo();
41 43
42 class GL_EXPORT GLApiBase : public GLApi { 44 class GL_EXPORT GLApiBase : public GLApi {
43 public: 45 public:
44 // Include the auto-generated part of this class. We split this because 46 // Include the auto-generated part of this class. We split this because
45 // it means we can easily edit the non-auto generated parts right here in 47 // it means we can easily edit the non-auto generated parts right here in
46 // this file instead of having to edit some template or the code generator. 48 // this file instead of having to edit some template or the code generator.
47 #include "gl_bindings_api_autogen_gl.h" 49 #include "gl_bindings_api_autogen_gl.h"
48 50
49 protected: 51 protected:
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 105
104 // Include the auto-generated part of this class. We split this because 106 // Include the auto-generated part of this class. We split this because
105 // it means we can easily edit the non-auto generated parts right here in 107 // it means we can easily edit the non-auto generated parts right here in
106 // this file instead of having to edit some template or the code generator. 108 // this file instead of having to edit some template or the code generator.
107 #include "gl_bindings_api_autogen_gl.h" 109 #include "gl_bindings_api_autogen_gl.h"
108 }; 110 };
109 111
110 } // namespace gl 112 } // namespace gl
111 113
112 #endif // UI_GL_GL_GL_API_IMPLEMENTATION_H_ 114 #endif // UI_GL_GL_GL_API_IMPLEMENTATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698