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

Unified Diff: cc/CCSettings.h

Issue 10916279: Chromium compositor change implementing page-scale driven pinch-zoom. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Rebaseline to 158365. 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: cc/CCSettings.h
===================================================================
--- cc/CCSettings.h (revision 158365)
+++ cc/CCSettings.h (working copy)
@@ -14,6 +14,7 @@
static bool perTilePaintingEnabled();
static bool partialSwapEnabled();
static bool acceleratedAnimationEnabled();
+ static bool pageScalePinchZoomEnabled();
// These setters should only be used on the main thread before the layer
// renderer is initialized.
@@ -21,6 +22,11 @@
static void setPartialSwapEnabled(bool);
static void setAcceleratedAnimationEnabled(bool);
+ // Page-Scale pinch-zoom is normally controlled by a command line argument:
+ // switches::kEnablePinchInCompositor
+ // It can also be enabled here, for use in tests.
+ static void setPageScalePinchZoomEnabled(bool);
+
// These settings are meant to be set only once, and only read thereafter.
// This function is only for resetting settings in tests.
static void reset();
« cc/CCLayerTreeHostImpl.cpp ('K') | « cc/CCLayerTreeHostTest.cpp ('k') | cc/CCSettings.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698