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

Unified Diff: content/public/common/content_switches.cc

Issue 189883009: Define a --force-gpu-rasterization flag (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased 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/public/common/content_switches.cc
diff --git a/content/public/common/content_switches.cc b/content/public/common/content_switches.cc
index 7af3649fc593e8cc0d48df3e6f80fdd9ea640217..3c78a0500c9385529140da08679d5153ffd446b9 100644
--- a/content/public/common/content_switches.cc
+++ b/content/public/common/content_switches.cc
@@ -206,6 +206,10 @@ extern const char kDisableGpuProcessCrashLimit[] =
// launch it when it is first needed.
const char kDisableGpuProcessPrelaunch[] = "disable-gpu-process-prelaunch";
+// Disable GPU rasterization, i.e. rasterize on the CPU only.
+// Overrides the kEnableGpuRasterization and kForceGpuRasterization flags.
+const char kDisableGpuRasterization[] = "disable-gpu-rasterization";
+
// Disable the GPU process sandbox.
const char kDisableGpuSandbox[] = "disable-gpu-sandbox";
@@ -221,6 +225,10 @@ const char kDisableHangMonitor[] = "disable-hang-monitor";
// Disable the RenderThread's HistogramCustomizer.
const char kDisableHistogramCustomizer[] = "disable-histogram-customizer";
+// Paint content on the main thread instead of the compositor thread.
+// Overrides the kEnableImplSidePainting flag.
+const char kDisableImplSidePainting[] = "disable-impl-side-painting";
+
// Prevent Java from running.
const char kDisableJava[] = "disable-java";
@@ -236,6 +244,9 @@ const char kDisableKillAfterBadIPC[] = "disable-kill-after-bad-ipc";
const char kDisablePrefixedEncryptedMedia[] =
"disable-prefixed-encrypted-media";
+// Disables LCD text.
+const char kDisableLCDText[] = "disable-lcd-text";
+
// Disable LocalStorage.
const char kDisableLocalStorage[] = "disable-local-storage";
@@ -243,6 +254,10 @@ const char kDisableLocalStorage[] = "disable-local-storage";
// builds.
const char kDisableLogging[] = "disable-logging";
+// Disable rasterizer that writes directly to GPU memory.
+// Overrides the kEnableMapImage flag.
+const char kDisableMapImage[] = "disable-map-image";
+
// Disables overlay scrollbars on Aura or Linux. Does nothing on Mac.
const char kDisableOverlayScrollbar[] = "disable-overlay-scrollbar";
@@ -351,6 +366,9 @@ const char kEnableAcceleratedFixedRootBackground[] =
const char kEnableAcceleratedOverflowScroll[] =
"enable-accelerated-overflow-scroll";
+// Enables LCD text.
+const char kEnableLCDText[] = "enable-lcd-text";
+
// Enables experimental feature that maps multiple RenderLayers to
// one composited layer to avoid pathological layer counts.
const char kEnableLayerSquashing[] =
@@ -442,6 +460,11 @@ const char kEnableGestureTapHighlight[] = "enable-gesture-tap-highlight";
// Enables TRACE for GL calls in the renderer.
const char kEnableGpuClientTracing[] = "enable-gpu-client-tracing";
+// Allow heuristics to determine when a layer tile should be drawn with the
+// Skia GPU backend. Only valid with GPU accelerated compositing +
+// impl-side painting.
+const char kEnableGpuRasterization[] = "enable-gpu-rasterization";
+
// See comment for kEnableCompositingForFixedPosition.
const char kEnableHighDpiCompositingForFixedPosition[] =
"enable-high-dpi-fixed-position-compositing";
@@ -460,6 +483,9 @@ const char kEnableHighResolutionTime[] = "enable-high-resolution-time";
// Enable HTML Imports
extern const char kEnableHTMLImports[] = "enable-html-imports";
+// Paint content on the compositor thread instead of the main thread.
+const char kEnableImplSidePainting[] = "enable-impl-side-painting";
+
// Enables support for inband text tracks in media content.
const char kEnableInbandTextTracks[] = "enable-inband-text-tracks";
@@ -467,6 +493,9 @@ const char kEnableInbandTextTracks[] = "enable-inband-text-tracks";
// builds.
const char kEnableLogging[] = "enable-logging";
+// Enable rasterizer that writes directly to GPU memory.
+const char kEnableMapImage[] = "enable-map-image";
+
// Enables the memory benchmarking extension
const char kEnableMemoryBenchmarking[] = "enable-memory-benchmarking";
@@ -617,6 +646,11 @@ const char kForceCompositingMode[] = "force-compositing-mode";
// field_trial.h for details.
const char kForceFieldTrials[] = "force-fieldtrials";
+// Always use the Skia GPU backend for drawing layer tiles. Only valid with GPU
+// accelerated compositing + impl-side painting. Overrides the
+// kEnableGpuRasterization flag.
+const char kForceGpuRasterization[] = "force-gpu-rasterization";
+
// Force renderer accessibility to be on instead of enabling it on demand when
// a screen reader is detected. The disable-renderer-accessibility switch
// overrides this if present.

Powered by Google App Engine
This is Rietveld 408576698