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

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

Issue 10916279: Chromium compositor change implementing page-scale driven pinch-zoom. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Change m_unpinchedViewportSize and remove unnecessary >1 page scale clamping. Created 8 years, 3 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/browser/web_contents/web_contents_impl.cc
===================================================================
--- content/browser/web_contents/web_contents_impl.cc (revision 159486)
+++ content/browser/web_contents/web_contents_impl.cc (working copy)
@@ -673,6 +673,10 @@
prefs.number_of_cpu_cores = base::SysInfo::NumberOfProcessors();
+ prefs.apply_page_scale_factor_in_compositor =
+ GpuProcessHost::gpu_enabled() &&
jamesr 2012/10/03 19:48:57 this check seems unnecessary
Jeff Timanus 2012/10/03 20:56:04 I followed the model of all of the other preferenc
+ command_line.HasSwitch(switches::kEnablePinchInCompositor);
+
content::GetContentClient()->browser()->OverrideWebkitPrefs(rvh, url, &prefs);
return prefs;

Powered by Google App Engine
This is Rietveld 408576698