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

Unified Diff: ui/gl/gl_surface.h

Issue 175093004: ui: Allow individual test suites to opt-out of the TestCompositor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nulldrawdisable: 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
Index: ui/gl/gl_surface.h
diff --git a/ui/gl/gl_surface.h b/ui/gl/gl_surface.h
index f7a02f042834247f9e125dc263db6d221029423b..ffdc3ce230b6c5c508b4cdfbc03c8817182f0b18 100644
--- a/ui/gl/gl_surface.h
+++ b/ui/gl/gl_surface.h
@@ -75,7 +75,7 @@ class GL_EXPORT GLSurface : public base::RefCounted<GLSurface> {
// Unit tests should call these instead of InitializeOneOff() to set up
// GL bindings appropriate for tests.
- static void InitializeOneOffForTests();
+ static void InitializeOneOffForTests(bool disable_drawing = false);
no sievers 2014/02/21 19:51:49 I thought the default param was against the style
danakj 2014/02/21 19:56:58 Ya kinda. But it's just for a bit, in test suites
Ken Russell (switch to Gerrit) 2014/02/21 20:03:37 It's fine as a temporary workaround, but please ad
danakj 2014/02/21 20:20:54 Thanks, good plan. Done!
static void InitializeOneOffWithMockBindingsForTests();
static void InitializeDynamicMockBindingsForTests(GLContext* context);

Powered by Google App Engine
This is Rietveld 408576698