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

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

Issue 165723010: Move NullDraw GL bindings and allow them to be disabled temporarily. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: glnulldraw: Created 6 years, 10 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/generate_bindings.py ('k') | ui/gl/gl_gl_api_implementation.h » ('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_BINDINGS_H_ 5 #ifndef UI_GL_GL_BINDINGS_H_
6 #define UI_GL_GL_BINDINGS_H_ 6 #define UI_GL_GL_BINDINGS_H_
7 7
8 // Includes the platform independent and platform dependent GL headers. 8 // Includes the platform independent and platform dependent GL headers.
9 // Only include this in cc files. It pulls in system headers, including 9 // Only include this in cc files. It pulls in system headers, including
10 // the X11 headers on linux, which define all kinds of macros that are 10 // the X11 headers on linux, which define all kinds of macros that are
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 #include "gl_bindings_autogen_egl.h" 222 #include "gl_bindings_autogen_egl.h"
223 #endif 223 #endif
224 224
225 namespace gfx { 225 namespace gfx {
226 226
227 struct GL_EXPORT DriverGL { 227 struct GL_EXPORT DriverGL {
228 void InitializeStaticBindings(); 228 void InitializeStaticBindings();
229 void InitializeCustomDynamicBindings(GLContext* context); 229 void InitializeCustomDynamicBindings(GLContext* context);
230 void InitializeDebugBindings(); 230 void InitializeDebugBindings();
231 void InitializeNullDrawBindings(); 231 void InitializeNullDrawBindings();
232 bool SetNullDrawBindingsEnabled(bool enabled);
232 void ClearBindings(); 233 void ClearBindings();
233 234
234 ProcsGL fn; 235 ProcsGL fn;
235 ProcsGL orig_fn; 236 ProcsGL orig_fn;
236 ProcsGL debug_fn; 237 ProcsGL debug_fn;
237 ExtensionsGL ext; 238 ExtensionsGL ext;
239 bool null_draw_bindings_enabled;
238 240
239 private: 241 private:
240 void InitializeDynamicBindings(GLContext* context); 242 void InitializeDynamicBindings(GLContext* context);
241 }; 243 };
242 244
243 struct GL_EXPORT DriverOSMESA { 245 struct GL_EXPORT DriverOSMESA {
244 void InitializeStaticBindings(); 246 void InitializeStaticBindings();
245 void InitializeDynamicBindings(GLContext* context); 247 void InitializeDynamicBindings(GLContext* context);
246 void InitializeDebugBindings(); 248 void InitializeDebugBindings();
247 void ClearBindings(); 249 void ClearBindings();
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 #elif defined(OS_ANDROID) 322 #elif defined(OS_ANDROID)
321 323
322 GL_EXPORT extern EGLApi* g_current_egl_context; 324 GL_EXPORT extern EGLApi* g_current_egl_context;
323 GL_EXPORT extern DriverEGL g_driver_egl; 325 GL_EXPORT extern DriverEGL g_driver_egl;
324 326
325 #endif 327 #endif
326 328
327 } // namespace gfx 329 } // namespace gfx
328 330
329 #endif // UI_GL_GL_BINDINGS_H_ 331 #endif // UI_GL_GL_BINDINGS_H_
OLDNEW
« no previous file with comments | « ui/gl/generate_bindings.py ('k') | ui/gl/gl_gl_api_implementation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698