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/trace_event/trace_event.h" | 9 #include "base/trace_event/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/draw_property_utils.h" | 17 #include "cc/trees/draw_property_utils.h" |
18 #include "cc/trees/layer_tree_host.h" | 18 #include "cc/trees/layer_tree_host.h" |
19 #include "cc/trees/layer_tree_impl.h" | 19 #include "cc/trees/layer_tree_impl.h" |
20 #include "ui/gfx/geometry/rect_conversions.h" | 20 #include "ui/gfx/geometry/rect_conversions.h" |
21 #include "ui/gfx/geometry/vector2d_conversions.h" | 21 #include "ui/gfx/geometry/vector2d_conversions.h" |
22 #include "ui/gfx/transform.h" | 22 #include "ui/gfx/transform.h" |
23 #include "ui/gfx/transform_util.h" | 23 #include "ui/gfx/transform_util.h" |
24 | 24 |
25 namespace cc { | 25 namespace cc { |
26 | 26 |
| 27 Mutation::Mutation() { |
| 28 } |
| 29 Mutation::~Mutation() { |
| 30 } |
| 31 |
27 ScrollAndScaleSet::ScrollAndScaleSet() | 32 ScrollAndScaleSet::ScrollAndScaleSet() |
28 : page_scale_delta(1.f), top_controls_delta(0.f) { | 33 : page_scale_delta(1.f), top_controls_delta(0.f) { |
29 } | 34 } |
30 | 35 |
31 ScrollAndScaleSet::~ScrollAndScaleSet() {} | 36 ScrollAndScaleSet::~ScrollAndScaleSet() {} |
32 | 37 |
33 template <typename LayerType> | 38 template <typename LayerType> |
34 static gfx::Vector2dF GetEffectiveScrollDelta(LayerType* layer) { | 39 static gfx::Vector2dF GetEffectiveScrollDelta(LayerType* layer) { |
35 // Layer's scroll offset can have an integer part and fractional part. | 40 // Layer's scroll offset can have an integer part and fractional part. |
36 // Due to Blink's limitation, it only counter-scrolls the position-fixed | 41 // Due to Blink's limitation, it only counter-scrolls the position-fixed |
(...skipping 2520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2557 inputs->current_render_surface_layer_list_id); | 2562 inputs->current_render_surface_layer_list_id); |
2558 | 2563 |
2559 // The dummy layer list should not have been used. | 2564 // The dummy layer list should not have been used. |
2560 DCHECK_EQ(0u, dummy_layer_list.size()); | 2565 DCHECK_EQ(0u, dummy_layer_list.size()); |
2561 // A root layer render_surface should always exist after | 2566 // A root layer render_surface should always exist after |
2562 // CalculateDrawProperties. | 2567 // CalculateDrawProperties. |
2563 DCHECK(inputs->root_layer->render_surface()); | 2568 DCHECK(inputs->root_layer->render_surface()); |
2564 } | 2569 } |
2565 | 2570 |
2566 } // namespace cc | 2571 } // namespace cc |
OLD | NEW |