summaryrefslogtreecommitdiffstats
path: root/ui/gl/gl_bindings.h
diff options
context:
space:
mode:
authordanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-21 21:18:58 +0000
committerdanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-21 21:18:58 +0000
commitae967b0184c3dd9c6948db603c95a76043483449 (patch)
treeed9395de9614412a6b03494ac5143daf630fa02f /ui/gl/gl_bindings.h
parentfcb1a0d70fff55aa2addcd27c83a14d05174c09d (diff)
downloadchromium_src-ae967b0184c3dd9c6948db603c95a76043483449.zip
chromium_src-ae967b0184c3dd9c6948db603c95a76043483449.tar.gz
chromium_src-ae967b0184c3dd9c6948db603c95a76043483449.tar.bz2
ui: Allow individual test suites to opt-out of the TestCompositor.
This adds a temporary bool to GLSurface::InitializeOneOffForTests() allowing a test suite to opt-in to NullDraw bindings. When a test suite as opted in, the InitializeContextFactoryForTests() method can see, and will not use the TestContextFactory, instead using the InProcessContextFactory. Once all test suites are optign into NullDraw bindings. The bool and query method for HasInitializedNullDrawGLBindings() will be removed. R=kbr@chromium.org, sievers@chromium.org BUG=270918 Review URL: https://codereview.chromium.org/175093004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252647 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gl/gl_bindings.h')
-rw-r--r--ui/gl/gl_bindings.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/gl/gl_bindings.h b/ui/gl/gl_bindings.h
index cf1435f..8a28a64 100644
--- a/ui/gl/gl_bindings.h
+++ b/ui/gl/gl_bindings.h
@@ -229,6 +229,8 @@ struct GL_EXPORT DriverGL {
void InitializeCustomDynamicBindings(GLContext* context);
void InitializeDebugBindings();
void InitializeNullDrawBindings();
+ // TODO(danakj): Remove this when all test suites are using null-draw.
+ bool HasInitializedNullDrawBindings();
bool SetNullDrawBindingsEnabled(bool enabled);
void ClearBindings();