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

Unified Diff: content/renderer/web_preferences.cc

Issue 239973005: Remove GPU_FEATURE_TYPE_3D_CSS and --disable-accelerated-layers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 8 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/renderer/web_preferences.cc
diff --git a/content/renderer/web_preferences.cc b/content/renderer/web_preferences.cc
index 237d7dd9851655053db108419eafc8193d41e161..4a25b7e41ff4a746c83ab2fba2cc5c91519384ff 100644
--- a/content/renderer/web_preferences.cc
+++ b/content/renderer/web_preferences.cc
@@ -231,17 +231,14 @@ void ApplyWebPreferences(const WebPreferences& prefs, WebView* web_view) {
settings->setGestureTapHighlightEnabled(prefs.gesture_tap_highlight_enabled);
// Enabling accelerated layers from the command line enabled accelerated
- // 3D CSS, Video, and Animations.
- settings->setAcceleratedCompositingFor3DTransformsEnabled(
- prefs.accelerated_compositing_for_3d_transforms_enabled);
+ // Video.
settings->setAcceleratedCompositingForVideoEnabled(
prefs.accelerated_compositing_for_video_enabled);
- settings->setAcceleratedCompositingForAnimationEnabled(
- prefs.accelerated_compositing_for_animation_enabled);
- // Enabling accelerated plugins if specified from the command line.
- settings->setAcceleratedCompositingForPluginsEnabled(
- prefs.accelerated_compositing_for_plugins_enabled);
+ // Always enable composited 3D css, animations and plugins.
+ settings->setAcceleratedCompositingFor3DTransformsEnabled(true);
+ settings->setAcceleratedCompositingForAnimationEnabled(true);
+ settings->setAcceleratedCompositingForPluginsEnabled(true);
// WebGL and accelerated 2D canvas are always gpu composited.
settings->setAcceleratedCompositingForCanvasEnabled(
« no previous file with comments | « content/renderer/pepper/ppb_graphics_3d_impl.cc ('k') | content/test/gpu/gpu_tests/hardware_accelerated_feature.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698