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

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 11543002: Add a switch to enable compositing for scrollable frames. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | « no previous file | content/public/common/content_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 d821a8e11b077368e52b7b1f114ad2a87de79721..05cba39393a34595076a66536e549af0093165ee 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -478,8 +478,9 @@ WebPreferences WebContentsImpl::GetWebkitPrefs(RenderViewHost* rvh,
prefs.show_fps_counter =
command_line.HasSwitch(switches::kShowFPSCounter);
prefs.accelerated_compositing_for_overflow_scroll_enabled =
- command_line.HasSwitch(
- switches::kEnableAcceleratedCompositingForOverflowScroll);
+ command_line.HasSwitch(switches::kEnableAcceleratedOverflowScroll);
+ prefs.accelerated_compositing_for_scrollable_frames_enabled =
+ command_line.HasSwitch(switches::kEnableAcceleratedScrollableFrames);
prefs.show_paint_rects =
command_line.HasSwitch(switches::kShowPaintRects);
prefs.render_vsync_enabled =
« no previous file with comments | « no previous file | content/public/common/content_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698