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" |
(...skipping 19 matching lines...) Expand all Loading... |
30 , minimumContentsScale(0.0625f) | 30 , minimumContentsScale(0.0625f) |
31 , refreshRate(0) | 31 , refreshRate(0) |
32 , maxPartialTextureUpdates(std::numeric_limits<size_t>::max()) | 32 , maxPartialTextureUpdates(std::numeric_limits<size_t>::max()) |
33 , numRasterThreads(1) | 33 , numRasterThreads(1) |
34 , defaultTileSize(gfx::Size(256, 256)) | 34 , defaultTileSize(gfx::Size(256, 256)) |
35 , maxUntiledLayerSize(gfx::Size(512, 512)) | 35 , maxUntiledLayerSize(gfx::Size(512, 512)) |
36 , minimumOcclusionTrackingSize(gfx::Size(160, 160)) | 36 , minimumOcclusionTrackingSize(gfx::Size(160, 160)) |
37 { | 37 { |
38 // 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. |
39 compositorFrameMessage = CommandLine::ForCurrentProcess()->HasSwitch(cc::swi
tches::kEnableCompositorFrameMessage); | 39 compositorFrameMessage = CommandLine::ForCurrentProcess()->HasSwitch(cc::swi
tches::kEnableCompositorFrameMessage); |
40 implSidePainting = CommandLine::ForCurrentProcess()->HasSwitch(cc::switches:
:kEnableImplSidePainting); | |
41 partialSwapEnabled = CommandLine::ForCurrentProcess()->HasSwitch(switches::k
EnablePartialSwap); | 40 partialSwapEnabled = CommandLine::ForCurrentProcess()->HasSwitch(switches::k
EnablePartialSwap); |
42 backgroundColorInsteadOfCheckerboard = CommandLine::ForCurrentProcess()->Has
Switch(switches::kBackgroundColorInsteadOfCheckerboard); | 41 backgroundColorInsteadOfCheckerboard = CommandLine::ForCurrentProcess()->Has
Switch(switches::kBackgroundColorInsteadOfCheckerboard); |
43 showOverdrawInTracing = CommandLine::ForCurrentProcess()->HasSwitch(switches
::kTraceOverdraw); | 42 showOverdrawInTracing = CommandLine::ForCurrentProcess()->HasSwitch(switches
::kTraceOverdraw); |
44 | 43 |
45 // TODO(alokp): Remove this hard-coded setting. | 44 // TODO(alokp): Remove this hard-coded setting. |
46 // Platforms that need to disable LCD text must explicitly set this value. | 45 // Platforms that need to disable LCD text must explicitly set this value. |
47 #if defined(OS_ANDROID) | 46 #if defined(OS_ANDROID) |
48 canUseLCDText = false; | 47 canUseLCDText = false; |
49 #endif | 48 #endif |
50 | 49 |
(...skipping 29 matching lines...) Expand all Loading... |
80 num_raster_threads; | 79 num_raster_threads; |
81 } | 80 } |
82 } | 81 } |
83 } | 82 } |
84 | 83 |
85 LayerTreeSettings::~LayerTreeSettings() | 84 LayerTreeSettings::~LayerTreeSettings() |
86 { | 85 { |
87 } | 86 } |
88 | 87 |
89 } // namespace cc | 88 } // namespace cc |
OLD | NEW |