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

Unified Diff: cc/CCSettings.cpp

Issue 10916279: Chromium compositor change implementing page-scale driven pinch-zoom. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Reduce number of prepared tiles and correct existing tests. 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
« no previous file with comments | « cc/CCSettings.h ('k') | cc/CCThreadProxy.h » ('j') | cc/CCThreadProxy.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/CCSettings.cpp
===================================================================
--- cc/CCSettings.cpp (revision 157978)
+++ cc/CCSettings.cpp (working copy)
@@ -6,6 +6,9 @@
#include "CCSettings.h"
+#include "base/command_line.h"
+#include "content/public/common/content_switches.h"
+
namespace {
static bool s_perTilePaintingEnabled = false;
static bool s_partialSwapEnabled = false;
@@ -23,6 +26,12 @@
bool CCSettings::acceleratedAnimationEnabled() { return s_acceleratedAnimationEnabled; }
void CCSettings::setAcceleratedAnimationEnabled(bool enabled) { s_acceleratedAnimationEnabled = enabled; }
+bool CCSettings::pageScalePinchZoomEnabled()
+{
+ return CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnablePinchInCompositor);
Jeff Timanus 2012/09/21 18:10:01 Using the command line directly from within CC is
+}
+
void CCSettings::reset()
{
s_perTilePaintingEnabled = false;
« no previous file with comments | « cc/CCSettings.h ('k') | cc/CCThreadProxy.h » ('j') | cc/CCThreadProxy.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698