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

Unified Diff: ui/views/examples/examples_main.cc

Issue 145293007: ui: No more TestCompositor. Use NullDraw contexts in unit tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: testsnulldraw: 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 side-by-side diff with in-line comments
Download patch
Index: ui/views/examples/examples_main.cc
diff --git a/ui/views/examples/examples_main.cc b/ui/views/examples/examples_main.cc
index 53a206ffc24c5a46318c80a0a9c9901eb6d2c125..f56bdd33a3227ad14b2cd21e8ed62a8036e118eb 100644
--- a/ui/views/examples/examples_main.cc
+++ b/ui/views/examples/examples_main.cc
@@ -50,8 +50,8 @@ int main(int argc, char** argv) {
gfx::GLSurface::InitializeOneOff();
// The ContextFactory must exist before any Compositors are created.
- bool allow_test_contexts = false;
- ui::InitializeContextFactoryForTests(allow_test_contexts);
+ bool enable_pixel_output = true;
+ ui::InitializeContextFactoryForTests(enable_pixel_output);
aura::Env::CreateInstance();
« ui/gl/gl_implementation.h ('K') | « ui/views/DEPS ('k') | ui/views/run_all_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698