| 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/geometry/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 : page_scale_delta(1.f), top_controls_delta(0.f) { | 25 : page_scale_delta(1.f), top_controls_delta(0.f) { |
| 26 } | 26 } |
| 27 | 27 |
| 28 ScrollAndScaleSet::~ScrollAndScaleSet() {} | 28 ScrollAndScaleSet::~ScrollAndScaleSet() {} |
| 29 | 29 |
| (...skipping 2408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2438 inputs->current_render_surface_layer_list_id); | 2438 inputs->current_render_surface_layer_list_id); |
| 2439 | 2439 |
| 2440 // The dummy layer list should not have been used. | 2440 // The dummy layer list should not have been used. |
| 2441 DCHECK_EQ(0u, dummy_layer_list.size()); | 2441 DCHECK_EQ(0u, dummy_layer_list.size()); |
| 2442 // A root layer render_surface should always exist after | 2442 // A root layer render_surface should always exist after |
| 2443 // CalculateDrawProperties. | 2443 // CalculateDrawProperties. |
| 2444 DCHECK(inputs->root_layer->render_surface()); | 2444 DCHECK(inputs->root_layer->render_surface()); |
| 2445 } | 2445 } |
| 2446 | 2446 |
| 2447 } // namespace cc | 2447 } // namespace cc |
| OLD | NEW |