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

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

Issue 2152133002: WIP: --enable-slimming-paint-v2 implies --enable-layer-lists (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 20a1d6c45d1f46df209c24893e6eb21bb34f661e..3a3d518bdeb7543825ec568a47c26a3f137b095d 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -1335,6 +1335,11 @@ static void AppendCompositorCommandLineFlags(base::CommandLine* command_line) {
GpuDataManagerImpl* gpu_data_manager = GpuDataManagerImpl::GetInstance();
DCHECK(gpu_data_manager);
gpu_data_manager->AppendRendererCommandLine(command_line);
+
+ // Slimming Paint v2 implies layer lists in the renderer.
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableSlimmingPaintV2))
+ command_line->AppendSwitch(cc::switches::kEnableLayerLists);
}
void RenderProcessHostImpl::AppendRendererCommandLine(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698