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

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

Issue 212863004: Revert of content: Avoid duplicating the logic used to determine GPU features. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « content/browser/gpu/compositor_util.h ('k') | content/browser/renderer_host/render_view_host_impl.cc » ('j') | 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 bec9c45ae04091997cd211443105cce9fe287bf7..0fdf90c9fd784d2c53221a418a77df2d53b8fc33 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -966,16 +966,13 @@
}
static void AppendGpuCommandLineFlags(CommandLine* command_line) {
- if (IsThreadedCompositingEnabled())
+ if (content::IsThreadedCompositingEnabled())
command_line->AppendSwitch(switches::kEnableThreadedCompositing);
- if (IsForceCompositingModeEnabled())
- command_line->AppendSwitch(switches::kForceCompositingMode);
-
- if (IsDelegatedRendererEnabled())
+ if (content::IsDelegatedRendererEnabled())
command_line->AppendSwitch(switches::kEnableDelegatedRenderer);
- if (IsImplSidePaintingEnabled())
+ if (content::IsImplSidePaintingEnabled())
command_line->AppendSwitch(switches::kEnableImplSidePainting);
// Appending disable-gpu-feature switches due to software rendering list.
@@ -1041,6 +1038,7 @@
switches::kDisableCompositingForFixedPosition,
switches::kDisableCompositingForTransition,
switches::kDisableDatabases,
+ switches::kDisableDelegatedRenderer,
switches::kDisableDesktopNotifications,
switches::kDisableDirectNPAPIRequests,
switches::kDisableFastTextAutosizing,
@@ -1052,6 +1050,7 @@
switches::kDisableGpuVsync,
switches::kDisableLowResTiling,
switches::kDisableHistogramCustomizer,
+ switches::kDisableImplSidePainting,
switches::kDisableLCDText,
switches::kDisableLayerSquashing,
switches::kDisableLocalStorage,
@@ -1065,6 +1064,7 @@
switches::kDisableSessionStorage,
switches::kDisableSharedWorkers,
switches::kDisableSpeechInput,
+ switches::kDisableThreadedCompositing,
switches::kDisableTouchAdjustment,
switches::kDisableTouchDragDrop,
switches::kDisableTouchEditing,
@@ -1082,6 +1082,7 @@
switches::kEnableCompositingForFixedPosition,
switches::kEnableCompositingForTransition,
switches::kEnableDeferredImageDecoding,
+ switches::kEnableDelegatedRenderer,
switches::kEnableEncryptedMedia,
switches::kEnableExperimentalCanvasFeatures,
switches::kEnableExperimentalWebPlatformFeatures,
@@ -1094,6 +1095,7 @@
switches::kEnableHighDpiCompositingForFixedPosition,
switches::kEnableHTMLImports,
switches::kEnableLowResTiling,
+ switches::kEnableImplSidePainting,
switches::kEnableInbandTextTracks,
switches::kEnableLCDText,
switches::kEnableLayerSquashing,
@@ -1113,6 +1115,7 @@
switches::kEnableStatsTable,
switches::kEnableStrictSiteIsolation,
switches::kEnableTargetedStyleRecalc,
+ switches::kEnableThreadedCompositing,
switches::kEnableUniversalAcceleratedOverflowScroll,
switches::kEnableTouchDragDrop,
switches::kEnableTouchEditing,
« no previous file with comments | « content/browser/gpu/compositor_util.h ('k') | content/browser/renderer_host/render_view_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698