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

Unified Diff: content/renderer/render_view_impl.cc

Issue 788393003: Remove "transition-compositing" flags (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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/public/common/content_switches.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index fe560484ed17550d6c517bf0fcfc1d99e6f5a7e5..7fe16e0b56a77362809451b034d64af7754263ba 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -399,21 +399,6 @@ static bool PreferCompositingToLCDText(float device_scale_factor) {
return DeviceScaleEnsuresTextQuality(device_scale_factor);
}
-static bool ShouldUseTransitionCompositing(float device_scale_factor) {
- const CommandLine& command_line = *CommandLine::ForCurrentProcess();
-
- if (command_line.HasSwitch(switches::kDisableCompositingForTransition))
- return false;
-
- if (command_line.HasSwitch(switches::kEnableCompositingForTransition))
- return true;
-
- // TODO(ajuma): Re-enable this by default for high-DPI once the problem
- // of excessive layer promotion caused by overlap has been addressed.
- // http://crbug.com/178119.
- return false;
-}
-
static FaviconURL::IconType ToFaviconType(blink::WebIconURL::Type type) {
switch (type) {
case blink::WebIconURL::TypeFavicon:
@@ -750,8 +735,6 @@ void RenderViewImpl::Initialize(
webview()->setDeviceScaleFactor(device_scale_factor_);
webview()->settings()->setPreferCompositingToLCDTextEnabled(
PreferCompositingToLCDText(device_scale_factor_));
- webview()->settings()->setAcceleratedCompositingForTransitionEnabled(
- ShouldUseTransitionCompositing(device_scale_factor_));
webview()->settings()->setThreadedScrollingEnabled(
!command_line.HasSwitch(switches::kDisableThreadedScrolling));
webview()->settings()->setRootLayerScrolls(
@@ -3610,8 +3593,6 @@ void RenderViewImpl::SetDeviceScaleFactor(float device_scale_factor) {
webview()->setDeviceScaleFactor(device_scale_factor);
webview()->settings()->setPreferCompositingToLCDTextEnabled(
PreferCompositingToLCDText(device_scale_factor_));
- webview()->settings()->setAcceleratedCompositingForTransitionEnabled(
- ShouldUseTransitionCompositing(device_scale_factor_));
}
if (auto_resize_mode_)
AutoResizeCompositor();
« no previous file with comments | « content/public/common/content_switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698