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

Unified Diff: ui/gl/gl_implementation.cc

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gl/gl_implementation.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_implementation.cc
diff --git a/ui/gl/gl_implementation.cc b/ui/gl/gl_implementation.cc
index ee874db46e0435e399a79fbea79fa7e759512182..3c576a04735c66a160dbaa3827a516a860def8a6 100644
--- a/ui/gl/gl_implementation.cc
+++ b/ui/gl/gl_implementation.cc
@@ -149,4 +149,12 @@ void InitializeNullDrawGLBindings() {
InitializeNullDrawGLBindingsGL();
}
+DisableNullDrawGLBindings::DisableNullDrawGLBindings() {
+ initial_enabled_ = SetNullDrawGLBindingsEnabledGL(false);
+}
+
+DisableNullDrawGLBindings::~DisableNullDrawGLBindings() {
+ SetNullDrawGLBindingsEnabledGL(initial_enabled_);
+}
+
} // namespace gfx
« no previous file with comments | « ui/gl/gl_implementation.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698