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

Unified Diff: trunk/src/ui/compositor/test/context_factories_for_test.cc

Issue 149953003: Revert 247793 "Ensure GL initialization only happens once, and p..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: 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
« no previous file with comments | « trunk/src/ui/aura/demo/demo_main.cc ('k') | trunk/src/ui/compositor/test/default_context_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/ui/compositor/test/context_factories_for_test.cc
===================================================================
--- trunk/src/ui/compositor/test/context_factories_for_test.cc (revision 247809)
+++ trunk/src/ui/compositor/test/context_factories_for_test.cc (working copy)
@@ -10,7 +10,6 @@
#include "ui/compositor/compositor_switches.h"
#include "ui/compositor/test/default_context_factory.h"
#include "ui/compositor/test/test_context_factory.h"
-#include "ui/gl/gl_implementation.h"
namespace ui {
@@ -41,9 +40,11 @@
if (use_test_contexts) {
g_implicit_factory = new ui::TestContextFactory;
} else {
- DCHECK_NE(gfx::kGLImplementationNone, gfx::GetGLImplementation());
DVLOG(1) << "Using DefaultContextFactory";
- g_implicit_factory = new ui::DefaultContextFactory();
+ scoped_ptr<ui::DefaultContextFactory> instance(
+ new ui::DefaultContextFactory());
+ if (instance->Initialize())
+ g_implicit_factory = instance.release();
}
ContextFactory::SetInstance(g_implicit_factory);
}
« no previous file with comments | « trunk/src/ui/aura/demo/demo_main.cc ('k') | trunk/src/ui/compositor/test/default_context_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698