OLD | NEW |
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 |
OLD | NEW |