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/trees/layer_tree_settings.h" | 5 #include "cc/trees/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/base/switches.h" | 12 #include "cc/base/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 , renderVSyncNotificationEnabled(false) |
21 , perTilePaintingEnabled(false) | 22 , perTilePaintingEnabled(false) |
22 , partialSwapEnabled(false) | 23 , partialSwapEnabled(false) |
23 , cacheRenderPassContents(true) | 24 , cacheRenderPassContents(true) |
24 , rightAlignedSchedulingEnabled(false) | 25 , rightAlignedSchedulingEnabled(false) |
25 , acceleratedAnimationEnabled(true) | 26 , acceleratedAnimationEnabled(true) |
26 , backgroundColorInsteadOfCheckerboard(false) | 27 , backgroundColorInsteadOfCheckerboard(false) |
27 , showOverdrawInTracing(false) | 28 , showOverdrawInTracing(false) |
28 , canUseLCDText(true) | 29 , canUseLCDText(true) |
29 , shouldClearRootRenderPass(true) | 30 , shouldClearRootRenderPass(true) |
30 , useLinearFadeScrollbarAnimator(false) | 31 , useLinearFadeScrollbarAnimator(false) |
(...skipping 20 matching lines...) Expand all Loading... |
51 { | 52 { |
52 // TODO(danakj): Renable surface caching when we can do it more realiably. c
rbug.com/170713 | 53 // TODO(danakj): Renable surface caching when we can do it more realiably. c
rbug.com/170713 |
53 cacheRenderPassContents = false; | 54 cacheRenderPassContents = false; |
54 } | 55 } |
55 | 56 |
56 LayerTreeSettings::~LayerTreeSettings() | 57 LayerTreeSettings::~LayerTreeSettings() |
57 { | 58 { |
58 } | 59 } |
59 | 60 |
60 } // namespace cc | 61 } // namespace cc |
OLD | NEW |