Index: cc/CCSettings.cpp |
=================================================================== |
--- cc/CCSettings.cpp (revision 160422) |
+++ cc/CCSettings.cpp (working copy) |
@@ -12,6 +12,7 @@ |
static bool s_perTilePaintingEnabled = false; |
static bool s_partialSwapEnabled = false; |
static bool s_acceleratedAnimationEnabled = false; |
+static bool s_pageScalePinchZoomEnabled = false; |
} // namespace |
namespace cc { |
@@ -25,6 +26,9 @@ |
bool CCSettings::acceleratedAnimationEnabled() { return s_acceleratedAnimationEnabled; } |
void CCSettings::setAcceleratedAnimationEnabled(bool enabled) { s_acceleratedAnimationEnabled = enabled; } |
+bool CCSettings::pageScalePinchZoomEnabled() { return s_pageScalePinchZoomEnabled; } |
+void CCSettings::setPageScalePinchZoomEnabled(bool enabled) { s_pageScalePinchZoomEnabled = enabled; } |
+ |
bool CCSettings::jankInsteadOfCheckerboard() |
{ |
return CommandLine::ForCurrentProcess()->HasSwitch(switches::kJankInsteadOfCheckerboard); |
@@ -40,6 +44,7 @@ |
s_perTilePaintingEnabled = false; |
s_partialSwapEnabled = false; |
s_acceleratedAnimationEnabled = false; |
+ s_pageScalePinchZoomEnabled = false; |
} |
} // namespace cc |