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

Unified Diff: ui/gfx/compositor/compositor_gl.cc

Issue 7104039: First draft to enable turning off compositor for unit tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Revised to add conditional compilation guards. Created 9 years, 6 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 | « chrome/test/unit/chrome_test_suite.cc ('k') | views/run_all_unittests.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/compositor/compositor_gl.cc
diff --git a/ui/gfx/compositor/compositor_gl.cc b/ui/gfx/compositor/compositor_gl.cc
index 794d836021d18a18b1626f4fdfe9d146697b0810..e591e2accf084ca4dc043c7eed8b0f6b53165469 100644
--- a/ui/gfx/compositor/compositor_gl.cc
+++ b/ui/gfx/compositor/compositor_gl.cc
@@ -357,9 +357,9 @@ bool CompositorGL::InitShaders() {
// static
Compositor* Compositor::Create(gfx::AcceleratedWidget widget) {
- gfx::GLSurface::InitializeOneOff();
- if (gfx::GetGLImplementation() != gfx::kGLImplementationNone)
- return new glHidden::CompositorGL(widget);
+ gfx::GLSurface::InitializeOneOff();
+ if (gfx::GetGLImplementation() != gfx::kGLImplementationNone)
+ return new glHidden::CompositorGL(widget);
return NULL;
}
#else
« no previous file with comments | « chrome/test/unit/chrome_test_suite.cc ('k') | views/run_all_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698