OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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 #ifndef CC_LAYER_TREE_SETTINGS_H_ | 5 #ifndef CC_LAYER_TREE_SETTINGS_H_ |
6 #define CC_LAYER_TREE_SETTINGS_H_ | 6 #define CC_LAYER_TREE_SETTINGS_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "cc/cc_export.h" | 9 #include "cc/cc_export.h" |
10 #include "cc/layer_tree_debug_state.h" | 10 #include "cc/layer_tree_debug_state.h" |
| 11 #include "third_party/skia/include/core/SkColor.h" |
11 #include "ui/gfx/size.h" | 12 #include "ui/gfx/size.h" |
12 | 13 |
13 namespace cc { | 14 namespace cc { |
14 | 15 |
15 class CC_EXPORT LayerTreeSettings { | 16 class CC_EXPORT LayerTreeSettings { |
16 public: | 17 public: |
17 LayerTreeSettings(); | 18 LayerTreeSettings(); |
18 ~LayerTreeSettings(); | 19 ~LayerTreeSettings(); |
19 | 20 |
20 bool acceleratePainting; | 21 bool acceleratePainting; |
21 bool compositorFrameMessage; | 22 bool compositorFrameMessage; |
22 bool implSidePainting; | 23 bool implSidePainting; |
23 bool renderVSyncEnabled; | 24 bool renderVSyncEnabled; |
24 bool perTilePaintingEnabled; | 25 bool perTilePaintingEnabled; |
25 bool partialSwapEnabled; | 26 bool partialSwapEnabled; |
26 bool cacheRenderPassContents; | 27 bool cacheRenderPassContents; |
27 bool rightAlignedSchedulingEnabled; | 28 bool rightAlignedSchedulingEnabled; |
28 bool acceleratedAnimationEnabled; | 29 bool acceleratedAnimationEnabled; |
29 bool pageScalePinchZoomEnabled; | 30 bool pageScalePinchZoomEnabled; |
30 bool backgroundColorInsteadOfCheckerboard; | 31 bool backgroundColorInsteadOfCheckerboard; |
31 bool showOverdrawInTracing; | 32 bool showOverdrawInTracing; |
32 bool canUseLCDText; | 33 bool canUseLCDText; |
33 bool shouldClearRootRenderPass; | 34 bool shouldClearRootRenderPass; |
34 bool useLinearFadeScrollbarAnimator; | 35 bool useLinearFadeScrollbarAnimator; |
| 36 bool solidColorScrollbars; |
| 37 SkColor solidColorScrollbarColor; |
| 38 int solidColorScrollbarThicknessDIP; |
35 bool calculateTopControlsPosition; | 39 bool calculateTopControlsPosition; |
36 bool useCheapnessEstimator; | 40 bool useCheapnessEstimator; |
37 bool useMemoryManagement; | 41 bool useMemoryManagement; |
38 float minimumContentsScale; | 42 float minimumContentsScale; |
39 float lowResContentsScaleFactor; | 43 float lowResContentsScaleFactor; |
40 float topControlsHeight; | 44 float topControlsHeight; |
41 double refreshRate; | 45 double refreshRate; |
42 size_t maxPartialTextureUpdates; | 46 size_t maxPartialTextureUpdates; |
43 size_t numRasterThreads; | 47 size_t numRasterThreads; |
44 gfx::Size defaultTileSize; | 48 gfx::Size defaultTileSize; |
45 gfx::Size maxUntiledLayerSize; | 49 gfx::Size maxUntiledLayerSize; |
46 gfx::Size minimumOcclusionTrackingSize; | 50 gfx::Size minimumOcclusionTrackingSize; |
47 | 51 |
48 LayerTreeDebugState initialDebugState; | 52 LayerTreeDebugState initialDebugState; |
49 }; | 53 }; |
50 | 54 |
51 } // namespace cc | 55 } // namespace cc |
52 | 56 |
53 #endif // CC_LAYER_TREE_SETTINGS_H_ | 57 #endif // CC_LAYER_TREE_SETTINGS_H_ |
OLD | NEW |