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

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

Issue 132473009: Allow tests to stub out GL draw calls. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: stubglbindings: nulldraw Created 6 years, 11 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_gl_api_implementation.cc ('k') | ui/gl/gl_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_IMPLEMENTATION_H_ 5 #ifndef UI_GL_GL_IMPLEMENTATION_H_
6 #define UI_GL_GL_IMPLEMENTATION_H_ 6 #define UI_GL_GL_IMPLEMENTATION_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 // Initialize a particular GL implementation. 44 // Initialize a particular GL implementation.
45 GL_EXPORT bool InitializeGLBindings(GLImplementation implementation); 45 GL_EXPORT bool InitializeGLBindings(GLImplementation implementation);
46 46
47 // Initialize extension function bindings for a GL implementation. 47 // Initialize extension function bindings for a GL implementation.
48 GL_EXPORT bool InitializeGLExtensionBindings(GLImplementation implementation, 48 GL_EXPORT bool InitializeGLExtensionBindings(GLImplementation implementation,
49 GLContext* context); 49 GLContext* context);
50 50
51 // Initialize Debug logging wrappers for GL bindings. 51 // Initialize Debug logging wrappers for GL bindings.
52 void InitializeDebugGLBindings(); 52 void InitializeDebugGLBindings();
53 53
54 // Initialize stub methods for drawing operations in the GL bindings.
55 void InitializeNullDrawGLBindings();
56
54 GL_EXPORT void ClearGLBindings(); 57 GL_EXPORT void ClearGLBindings();
55 58
56 // Set the current GL implementation. 59 // Set the current GL implementation.
57 GL_EXPORT void SetGLImplementation(GLImplementation implementation); 60 GL_EXPORT void SetGLImplementation(GLImplementation implementation);
58 61
59 // Get the current GL implementation. 62 // Get the current GL implementation.
60 GL_EXPORT GLImplementation GetGLImplementation(); 63 GL_EXPORT GLImplementation GetGLImplementation();
61 64
62 // Does the underlying GL support all features from Desktop GL 2.0 that were 65 // Does the underlying GL support all features from Desktop GL 2.0 that were
63 // removed from the ES 2.0 spec without requiring specific extension strings. 66 // removed from the ES 2.0 spec without requiring specific extension strings.
(...skipping 22 matching lines...) Expand all
86 // Find an entry point in the current GL implementation. 89 // Find an entry point in the current GL implementation.
87 void* GetGLProcAddress(const char* name); 90 void* GetGLProcAddress(const char* name);
88 91
89 // Return information about the GL window system binding implementation (e.g., 92 // Return information about the GL window system binding implementation (e.g.,
90 // EGL, GLX, WGL). Returns true if the information was retrieved successfully. 93 // EGL, GLX, WGL). Returns true if the information was retrieved successfully.
91 GL_EXPORT bool GetGLWindowSystemBindingInfo(GLWindowSystemBindingInfo* info); 94 GL_EXPORT bool GetGLWindowSystemBindingInfo(GLWindowSystemBindingInfo* info);
92 95
93 } // namespace gfx 96 } // namespace gfx
94 97
95 #endif // UI_GL_GL_IMPLEMENTATION_H_ 98 #endif // UI_GL_GL_IMPLEMENTATION_H_
OLDNEW
« no previous file with comments | « ui/gl/gl_gl_api_implementation.cc ('k') | ui/gl/gl_implementation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698