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_host.h" | 5 #include "cc/layer_tree_host.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/debug/trace_event.h" | 8 #include "base/debug/trace_event.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "cc/font_atlas.h" | 10 #include "cc/font_atlas.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 namespace { | 31 namespace { |
32 static int numLayerTreeInstances; | 32 static int numLayerTreeInstances; |
33 } | 33 } |
34 | 34 |
35 namespace cc { | 35 namespace cc { |
36 | 36 |
37 bool LayerTreeHost::s_needsFilterContext = false; | 37 bool LayerTreeHost::s_needsFilterContext = false; |
38 | 38 |
39 LayerTreeSettings::LayerTreeSettings() | 39 LayerTreeSettings::LayerTreeSettings() |
40 : acceleratePainting(false) | 40 : acceleratePainting(false) |
| 41 , showDebugBorders(false) |
41 , showPlatformLayerTree(false) | 42 , showPlatformLayerTree(false) |
42 , showPaintRects(false) | 43 , showPaintRects(false) |
43 , showPropertyChangedRects(false) | 44 , showPropertyChangedRects(false) |
44 , showSurfaceDamageRects(false) | 45 , showSurfaceDamageRects(false) |
45 , showScreenSpaceRects(false) | 46 , showScreenSpaceRects(false) |
46 , showReplicaScreenSpaceRects(false) | 47 , showReplicaScreenSpaceRects(false) |
47 , showOccludingRects(false) | 48 , showOccludingRects(false) |
48 , renderVSyncEnabled(true) | 49 , renderVSyncEnabled(true) |
49 , perTilePaintingEnabled(false) | 50 , perTilePaintingEnabled(false) |
50 , partialSwapEnabled(false) | 51 , partialSwapEnabled(false) |
(...skipping 801 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
852 else | 853 else |
853 layer->notifyAnimationFinished(wallClockTime.ToDoubleT()); | 854 layer->notifyAnimationFinished(wallClockTime.ToDoubleT()); |
854 } | 855 } |
855 } | 856 } |
856 | 857 |
857 for (size_t childIndex = 0; childIndex < layer->children().size(); ++childIn
dex) | 858 for (size_t childIndex = 0; childIndex < layer->children().size(); ++childIn
dex) |
858 setAnimationEventsRecursive(events, layer->children()[childIndex].get(),
wallClockTime); | 859 setAnimationEventsRecursive(events, layer->children()[childIndex].get(),
wallClockTime); |
859 } | 860 } |
860 | 861 |
861 } // namespace cc | 862 } // namespace cc |
OLD | NEW |