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_host_common.h" | 5 #include "cc/trees/layer_tree_host_common.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
10 #include "cc/base/math_util.h" | 10 #include "cc/base/math_util.h" |
11 #include "cc/layers/heads_up_display_layer_impl.h" | 11 #include "cc/layers/heads_up_display_layer_impl.h" |
12 #include "cc/layers/layer.h" | 12 #include "cc/layers/layer.h" |
13 #include "cc/layers/layer_impl.h" | 13 #include "cc/layers/layer_impl.h" |
14 #include "cc/layers/layer_iterator.h" | 14 #include "cc/layers/layer_iterator.h" |
15 #include "cc/layers/render_surface.h" | 15 #include "cc/layers/render_surface.h" |
16 #include "cc/layers/render_surface_impl.h" | 16 #include "cc/layers/render_surface_impl.h" |
17 #include "cc/trees/layer_sorter.h" | 17 #include "cc/trees/layer_sorter.h" |
18 #include "cc/trees/layer_tree_impl.h" | 18 #include "cc/trees/layer_tree_impl.h" |
19 #include "ui/gfx/rect_conversions.h" | 19 #include "ui/gfx/rect_conversions.h" |
20 #include "ui/gfx/transform.h" | 20 #include "ui/gfx/transform.h" |
21 | 21 |
22 namespace cc { | 22 namespace cc { |
23 | 23 |
24 ScrollAndScaleSet::ScrollAndScaleSet() {} | 24 ScrollAndScaleSet::ScrollAndScaleSet() {} |
25 | 25 |
26 ScrollAndScaleSet::~ScrollAndScaleSet() {} | 26 ScrollAndScaleSet::~ScrollAndScaleSet() {} |
27 | 27 |
| 28 LayerTreeHostCommon::CompositeTimingInfo::CompositeTimingInfo() { |
| 29 } |
| 30 |
| 31 LayerTreeHostCommon::CompositeTimingInfo::~CompositeTimingInfo() { |
| 32 } |
| 33 |
| 34 CompositeTimingSet::CompositeTimingSet() { |
| 35 } |
| 36 |
| 37 CompositeTimingSet::~CompositeTimingSet() { |
| 38 } |
| 39 |
28 static void SortLayers(LayerList::iterator forst, | 40 static void SortLayers(LayerList::iterator forst, |
29 LayerList::iterator end, | 41 LayerList::iterator end, |
30 void* layer_sorter) { | 42 void* layer_sorter) { |
31 NOTREACHED(); | 43 NOTREACHED(); |
32 } | 44 } |
33 | 45 |
34 static void SortLayers(LayerImplList::iterator first, | 46 static void SortLayers(LayerImplList::iterator first, |
35 LayerImplList::iterator end, | 47 LayerImplList::iterator end, |
36 LayerSorter* layer_sorter) { | 48 LayerSorter* layer_sorter) { |
37 DCHECK(layer_sorter); | 49 DCHECK(layer_sorter); |
(...skipping 2395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2433 inputs->current_render_surface_layer_list_id); | 2445 inputs->current_render_surface_layer_list_id); |
2434 | 2446 |
2435 // The dummy layer list should not have been used. | 2447 // The dummy layer list should not have been used. |
2436 DCHECK_EQ(0u, dummy_layer_list.size()); | 2448 DCHECK_EQ(0u, dummy_layer_list.size()); |
2437 // A root layer render_surface should always exist after | 2449 // A root layer render_surface should always exist after |
2438 // CalculateDrawProperties. | 2450 // CalculateDrawProperties. |
2439 DCHECK(inputs->root_layer->render_surface()); | 2451 DCHECK(inputs->root_layer->render_surface()); |
2440 } | 2452 } |
2441 | 2453 |
2442 } // namespace cc | 2454 } // namespace cc |
OLD | NEW |