Index: content/browser/web_contents/web_contents_impl.cc |
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc |
index 64a91f43e26dce0a694ac91e87f51ca01292a55c..60742dd43db5d88be22081c56128fa6fdee94b97 100644 |
--- a/content/browser/web_contents/web_contents_impl.cc |
+++ b/content/browser/web_contents/web_contents_impl.cc |
@@ -533,6 +533,14 @@ WebPreferences WebContentsImpl::GetWebkitPrefs(RenderViewHost* rvh, |
if (command_line.HasSwitch(switches::kDisableCompositedScrollingForFrames)) |
prefs.composited_scrolling_for_frames_enabled = false; |
+ prefs.universal_accelerated_compositing_for_overflow_scroll_enabled = false; |
+ if (command_line.HasSwitch( |
+ switches::kEnableUniversalAcceleratedOverflowScroll)) |
+ prefs.universal_accelerated_compositing_for_overflow_scroll_enabled = true; |
+ if (command_line.HasSwitch( |
+ switches::kDisableUniversalAcceleratedOverflowScroll)) |
+ prefs.universal_accelerated_compositing_for_overflow_scroll_enabled = false; |
+ |
prefs.show_paint_rects = |
command_line.HasSwitch(switches::kShowPaintRects); |
prefs.accelerated_compositing_enabled = |