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

Unified Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 12221005: Add flag to disable impl-side painting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Consolidated switch checking Created 7 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: content/browser/renderer_host/render_process_host_impl.cc
diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc
index 4337ff43751d60d4fe32c4e88b000dc97deda782..0b2455c50dbbc23ab79bd030ea6c95f87dcefd84 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -849,6 +849,7 @@ void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer(
switches::kWebCoreLogChannels,
cc::switches::kBackgroundColorInsteadOfCheckerboard,
cc::switches::kEnableCompositorFrameMessage,
+ cc::switches::kDisableImplSidePainting,
cc::switches::kEnableImplSidePainting,
cc::switches::kEnablePartialSwap,
cc::switches::kEnableRightAlignedScheduling,
@@ -879,7 +880,7 @@ void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer(
}
// Enforce the extra command line flags for impl-side painting.
- if (browser_cmd.HasSwitch(cc::switches::kEnableImplSidePainting) &&
+ if (cc::switches::IsImplSidePaintingEnabled() &&
!browser_cmd.HasSwitch(switches::kEnableDeferredImageDecoding))
renderer_cmd->AppendSwitch(switches::kEnableDeferredImageDecoding);
}

Powered by Google App Engine
This is Rietveld 408576698