| 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 15 matching lines...) Expand all Loading... |
| 26 , backgroundColorInsteadOfCheckerboard(false) | 26 , backgroundColorInsteadOfCheckerboard(false) |
| 27 , showOverdrawInTracing(false) | 27 , showOverdrawInTracing(false) |
| 28 , canUseLCDText(true) | 28 , canUseLCDText(true) |
| 29 , shouldClearRootRenderPass(true) | 29 , shouldClearRootRenderPass(true) |
| 30 , useLinearFadeScrollbarAnimator(false) | 30 , useLinearFadeScrollbarAnimator(false) |
| 31 , calculateTopControlsPosition(false) | 31 , calculateTopControlsPosition(false) |
| 32 , useCheapnessEstimator(false) | 32 , useCheapnessEstimator(false) |
| 33 , minimumContentsScale(0.0625f) | 33 , minimumContentsScale(0.0625f) |
| 34 , lowResContentsScaleFactor(0.125f) | 34 , lowResContentsScaleFactor(0.125f) |
| 35 , topControlsHeight(0.f) | 35 , topControlsHeight(0.f) |
| 36 , topControlsShowThreshold(0.5f) |
| 37 , topControlsHideThreshold(0.5f) |
| 36 , refreshRate(0) | 38 , refreshRate(0) |
| 37 , maxPartialTextureUpdates(std::numeric_limits<size_t>::max()) | 39 , maxPartialTextureUpdates(std::numeric_limits<size_t>::max()) |
| 38 , numRasterThreads(1) | 40 , numRasterThreads(1) |
| 39 , defaultTileSize(gfx::Size(256, 256)) | 41 , defaultTileSize(gfx::Size(256, 256)) |
| 40 , maxUntiledLayerSize(gfx::Size(512, 512)) | 42 , maxUntiledLayerSize(gfx::Size(512, 512)) |
| 41 , minimumOcclusionTrackingSize(gfx::Size(160, 160)) | 43 , minimumOcclusionTrackingSize(gfx::Size(160, 160)) |
| 42 { | 44 { |
| 43 // TODO(danakj): Move this to chromium when we don't go through the WebKit A
PI anymore. | 45 // TODO(danakj): Move this to chromium when we don't go through the WebKit A
PI anymore. |
| 44 compositorFrameMessage = CommandLine::ForCurrentProcess()->HasSwitch(cc::swi
tches::kEnableCompositorFrameMessage); | 46 compositorFrameMessage = CommandLine::ForCurrentProcess()->HasSwitch(cc::swi
tches::kEnableCompositorFrameMessage); |
| 45 partialSwapEnabled = CommandLine::ForCurrentProcess()->HasSwitch(switches::k
EnablePartialSwap); | 47 partialSwapEnabled = CommandLine::ForCurrentProcess()->HasSwitch(switches::k
EnablePartialSwap); |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 num_raster_threads; | 94 num_raster_threads; |
| 93 } | 95 } |
| 94 } | 96 } |
| 95 } | 97 } |
| 96 | 98 |
| 97 LayerTreeSettings::~LayerTreeSettings() | 99 LayerTreeSettings::~LayerTreeSettings() |
| 98 { | 100 { |
| 99 } | 101 } |
| 100 | 102 |
| 101 } // namespace cc | 103 } // namespace cc |
| OLD | NEW |