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 #include "cc/layer_tree_settings.h" | 5 #include "cc/layer_tree_settings.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/string_number_conversions.h" | 11 #include "base/string_number_conversions.h" |
12 #include "cc/switches.h" | 12 #include "cc/switches.h" |
13 | 13 |
14 namespace cc { | 14 namespace cc { |
15 | 15 |
16 LayerTreeSettings::LayerTreeSettings() | 16 LayerTreeSettings::LayerTreeSettings() |
17 : acceleratePainting(false) | 17 : acceleratePainting(false) |
18 , compositorFrameMessage(false) | 18 , compositorFrameMessage(false) |
19 , implSidePainting(false) | 19 , implSidePainting(false) |
20 , renderVSyncEnabled(true) | 20 , renderVSyncEnabled(true) |
21 , perTilePaintingEnabled(false) | 21 , perTilePaintingEnabled(false) |
22 , partialSwapEnabled(false) | 22 , partialSwapEnabled(false) |
23 , acceleratedAnimationEnabled(true) | 23 , acceleratedAnimationEnabled(true) |
24 , pageScalePinchZoomEnabled(false) | 24 , pageScalePinchZoomEnabled(false) |
25 , backgroundColorInsteadOfCheckerboard(false) | 25 , backgroundColorInsteadOfCheckerboard(false) |
26 , showOverdrawInTracing(false) | 26 , showOverdrawInTracing(false) |
27 , canUseLCDText(true) | 27 , canUseLCDText(true) |
28 , shouldClearRootRenderPass(true) | 28 , shouldClearRootRenderPass(true) |
29 , useLinearFadeScrollbarAnimator(false) | 29 , useLinearFadeScrollbarAnimator(false) |
| 30 , minimumContentsScale(0.0625f) |
30 , refreshRate(0) | 31 , refreshRate(0) |
31 , maxPartialTextureUpdates(std::numeric_limits<size_t>::max()) | 32 , maxPartialTextureUpdates(std::numeric_limits<size_t>::max()) |
32 , numRasterThreads(1) | 33 , numRasterThreads(1) |
33 , defaultTileSize(gfx::Size(256, 256)) | 34 , defaultTileSize(gfx::Size(256, 256)) |
34 , maxUntiledLayerSize(gfx::Size(512, 512)) | 35 , maxUntiledLayerSize(gfx::Size(512, 512)) |
35 , minimumOcclusionTrackingSize(gfx::Size(160, 160)) | 36 , minimumOcclusionTrackingSize(gfx::Size(160, 160)) |
36 { | 37 { |
37 // TODO(danakj): Move this to chromium when we don't go through the WebKit A
PI anymore. | 38 // TODO(danakj): Move this to chromium when we don't go through the WebKit A
PI anymore. |
38 compositorFrameMessage = CommandLine::ForCurrentProcess()->HasSwitch(cc::swi
tches::kEnableCompositorFrameMessage); | 39 compositorFrameMessage = CommandLine::ForCurrentProcess()->HasSwitch(cc::swi
tches::kEnableCompositorFrameMessage); |
39 implSidePainting = CommandLine::ForCurrentProcess()->HasSwitch(cc::switches:
:kEnableImplSidePainting); | 40 implSidePainting = CommandLine::ForCurrentProcess()->HasSwitch(cc::switches:
:kEnableImplSidePainting); |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 num_raster_threads; | 80 num_raster_threads; |
80 } | 81 } |
81 } | 82 } |
82 } | 83 } |
83 | 84 |
84 LayerTreeSettings::~LayerTreeSettings() | 85 LayerTreeSettings::~LayerTreeSettings() |
85 { | 86 { |
86 } | 87 } |
87 | 88 |
88 } // namespace cc | 89 } // namespace cc |
OLD | NEW |