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

Side by Side 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: Change m_unpinchedViewportSize and remove unnecessary >1 page scale clamping. Created 8 years, 2 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 6
7 #include "CCSettings.h" 7 #include "CCSettings.h"
8 8
9 namespace { 9 namespace {
10 static bool s_perTilePaintingEnabled = false; 10 static bool s_perTilePaintingEnabled = false;
11 static bool s_partialSwapEnabled = false; 11 static bool s_partialSwapEnabled = false;
12 static bool s_acceleratedAnimationEnabled = false; 12 static bool s_acceleratedAnimationEnabled = false;
13 static bool s_pageScalePinchZoomEnabled = false;
13 } // namespace 14 } // namespace
14 15
15 namespace cc { 16 namespace cc {
16 17
17 bool CCSettings::perTilePaintingEnabled() { return s_perTilePaintingEnabled; } 18 bool CCSettings::perTilePaintingEnabled() { return s_perTilePaintingEnabled; }
18 void CCSettings::setPerTilePaintingEnabled(bool enabled) { s_perTilePaintingEnab led = enabled; } 19 void CCSettings::setPerTilePaintingEnabled(bool enabled) { s_perTilePaintingEnab led = enabled; }
19 20
20 bool CCSettings::partialSwapEnabled() { return s_partialSwapEnabled; } 21 bool CCSettings::partialSwapEnabled() { return s_partialSwapEnabled; }
21 void CCSettings::setPartialSwapEnabled(bool enabled) { s_partialSwapEnabled = en abled; } 22 void CCSettings::setPartialSwapEnabled(bool enabled) { s_partialSwapEnabled = en abled; }
22 23
23 bool CCSettings::acceleratedAnimationEnabled() { return s_acceleratedAnimationEn abled; } 24 bool CCSettings::acceleratedAnimationEnabled() { return s_acceleratedAnimationEn abled; }
24 void CCSettings::setAcceleratedAnimationEnabled(bool enabled) { s_acceleratedAni mationEnabled = enabled; } 25 void CCSettings::setAcceleratedAnimationEnabled(bool enabled) { s_acceleratedAni mationEnabled = enabled; }
25 26
27 bool CCSettings::pageScalePinchZoomEnabled() { return s_pageScalePinchZoomEnable d; }
28 void CCSettings::setPageScalePinchZoomEnabled(bool enabled) { s_pageScalePinchZo omEnabled = enabled; }
29
26 void CCSettings::reset() 30 void CCSettings::reset()
27 { 31 {
28 s_perTilePaintingEnabled = false; 32 s_perTilePaintingEnabled = false;
29 s_partialSwapEnabled = false; 33 s_partialSwapEnabled = false;
30 s_acceleratedAnimationEnabled = false; 34 s_acceleratedAnimationEnabled = false;
35 s_pageScalePinchZoomEnabled = false;
31 } 36 }
32 37
33 } // namespace cc 38 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698