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

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

Issue 189883009: Define a --force-gpu-rasterization flag (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Minor logic fix-up Created 6 years, 9 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 06577763c69287f9b0e7b760ec36f87946492755..2d7a7a8519560b1a6d824e1f889f4037b7e5ce0b 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -913,6 +913,9 @@ static void AppendGpuCommandLineFlags(CommandLine* command_line) {
if (content::IsDelegatedRendererEnabled())
command_line->AppendSwitch(switches::kEnableDelegatedRenderer);
+ if (content::IsImplSidePaintingEnabled())
+ command_line->AppendSwitch(switches::kEnableImplSidePainting);
+
// Appending disable-gpu-feature switches due to software rendering list.
GpuDataManagerImpl* gpu_data_manager = GpuDataManagerImpl::GetInstance();
DCHECK(gpu_data_manager);
@@ -985,11 +988,15 @@ void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer(
switches::kDisableFiltersOverIPC,
switches::kDisableGpu,
switches::kDisableGpuCompositing,
+ switches::kDisableGpuRasterization,
switches::kDisableGpuVsync,
switches::kDisableHistogramCustomizer,
+ switches::kDisableImplSidePainting,
+ switches::kDisableLCDText,
switches::kDisableLayerSquashing,
switches::kDisableLocalStorage,
switches::kDisableLogging,
+ switches::kDisableMapImage,
switches::kDisableOverlayScrollbar,
switches::kDisablePinch,
switches::kDisablePrefixedEncryptedMedia,
@@ -1027,13 +1034,17 @@ void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer(
switches::kEnableFastTextAutosizing,
switches::kEnableGPUClientLogging,
switches::kEnableGpuClientTracing,
+ switches::kEnableGpuRasterization,
switches::kEnableGPUServiceLogging,
switches::kEnableHighDpiCompositingForFixedPosition,
switches::kEnableHTMLImports,
+ switches::kEnableImplSidePainting,
switches::kEnableInbandTextTracks,
+ switches::kEnableLCDText,
switches::kEnableLayerSquashing,
switches::kEnableLogging,
switches::kEnableMP3StreamParser,
+ switches::kEnableMapImage,
switches::kEnableMemoryBenchmarking,
switches::kEnableOverlayFullscreenVideo,
switches::kEnableOverlayScrollbar,
@@ -1061,6 +1072,7 @@ void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer(
switches::kEnableWebGLDraftExtensions,
switches::kEnableWebMIDI,
switches::kForceDeviceScaleFactor,
+ switches::kForceGpuRasterization,
switches::kFullMemoryCrashReport,
switches::kJavaScriptFlags,
switches::kLoggingLevel,
@@ -1098,16 +1110,8 @@ void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer(
cc::switches::kCompositeToMailbox,
cc::switches::kDisableCompositedAntialiasing,
cc::switches::kDisableCompositorTouchHitTesting,
- cc::switches::kDisableGPURasterization,
- cc::switches::kDisableImplSidePainting,
- cc::switches::kDisableLCDText,
- cc::switches::kDisableMapImage,
cc::switches::kDisableThreadedAnimation,
cc::switches::kEnableGpuBenchmarking,
- cc::switches::kEnableGPURasterization,
- cc::switches::kEnableImplSidePainting,
- cc::switches::kEnableLCDText,
- cc::switches::kEnableMapImage,
cc::switches::kEnablePinchVirtualViewport,
cc::switches::kEnableTopControlsPositionCalculation,
cc::switches::kMaxTilesForInterestArea,
@@ -1191,7 +1195,7 @@ void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer(
}
// Enforce the extra command line flags for impl-side painting.
- if (cc::switches::IsImplSidePaintingEnabled() &&
+ if (IsImplSidePaintingEnabled() &&
!browser_cmd.HasSwitch(switches::kEnableDeferredImageDecoding))
renderer_cmd->AppendSwitch(switches::kEnableDeferredImageDecoding);
}

Powered by Google App Engine
This is Rietveld 408576698