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

Unified Diff: ui/compositor/compositor.cc

Issue 11186039: Move CC switches to cc/switches.h. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Add cc to DEPS in chrome/ and content/ Created 8 years, 2 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/compositor/compositor.cc
diff --git a/ui/compositor/compositor.cc b/ui/compositor/compositor.cc
index dbaac60941cbb24bc7e3e4833b2573b7cc6e5317..96be4d6654199948612218698ae4ba4946943dce 100644
--- a/ui/compositor/compositor.cc
+++ b/ui/compositor/compositor.cc
@@ -176,14 +176,8 @@ Compositor::~Compositor() {
}
void Compositor::Initialize(bool use_thread) {
- CommandLine* command_line = CommandLine::ForCurrentProcess();
WebKit::WebCompositorSupport* compositor_support =
WebKit::Platform::current()->compositorSupport();
- // These settings must be applied before we initialize the compositor.
- compositor_support->setPartialSwapEnabled(
- command_line->HasSwitch(switches::kUIEnablePartialSwap));
- compositor_support->setPerTilePaintingEnabled(
- command_line->HasSwitch(switches::kUIEnablePerTilePainting));
jamesr 2012/10/18 02:44:32 notice that this is checking switches::kUIEnablePa
if (use_thread)
g_compositor_thread = new webkit_glue::WebThreadImpl("Browser Compositor");
compositor_support->initialize(g_compositor_thread);

Powered by Google App Engine
This is Rietveld 408576698