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