OLD | NEW |
1 // Copyright 2010 The Chromium Authors. All rights reserved. | 1 // Copyright 2010 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/layers/layer.h" | 5 #include "cc/layers/layer.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/atomic_sequence_num.h" | 9 #include "base/atomic_sequence_num.h" |
10 #include "base/location.h" | 10 #include "base/location.h" |
11 #include "base/metrics/histogram.h" | 11 #include "base/metrics/histogram.h" |
12 #include "base/single_thread_task_runner.h" | 12 #include "base/single_thread_task_runner.h" |
13 #include "base/time/time.h" | 13 #include "base/time/time.h" |
14 #include "base/trace_event/trace_event.h" | 14 #include "base/trace_event/trace_event.h" |
15 #include "cc/animation/animation.h" | 15 #include "cc/animation/animation.h" |
16 #include "cc/animation/animation_events.h" | 16 #include "cc/animation/animation_events.h" |
17 #include "cc/animation/animation_registrar.h" | 17 #include "cc/animation/animation_registrar.h" |
18 #include "cc/animation/keyframed_animation_curve.h" | 18 #include "cc/animation/keyframed_animation_curve.h" |
19 #include "cc/animation/layer_animation_controller.h" | 19 #include "cc/animation/layer_animation_controller.h" |
20 #include "cc/base/simple_enclosed_region.h" | 20 #include "cc/base/simple_enclosed_region.h" |
21 #include "cc/debug/frame_viewer_instrumentation.h" | 21 #include "cc/debug/frame_viewer_instrumentation.h" |
22 #include "cc/layers/layer_client.h" | 22 #include "cc/layers/layer_client.h" |
23 #include "cc/layers/layer_impl.h" | 23 #include "cc/layers/layer_impl.h" |
24 #include "cc/layers/layer_proto_converter.h" | 24 #include "cc/layers/layer_proto_converter.h" |
| 25 #include "cc/layers/layer_settings.h" |
25 #include "cc/layers/scrollbar_layer_interface.h" | 26 #include "cc/layers/scrollbar_layer_interface.h" |
26 #include "cc/output/copy_output_request.h" | 27 #include "cc/output/copy_output_request.h" |
27 #include "cc/output/copy_output_result.h" | 28 #include "cc/output/copy_output_result.h" |
28 #include "cc/proto/layer.pb.h" | 29 #include "cc/proto/layer.pb.h" |
29 #include "cc/trees/draw_property_utils.h" | 30 #include "cc/trees/draw_property_utils.h" |
30 #include "cc/trees/layer_tree_host.h" | 31 #include "cc/trees/layer_tree_host.h" |
31 #include "cc/trees/layer_tree_impl.h" | 32 #include "cc/trees/layer_tree_impl.h" |
32 #include "third_party/skia/include/core/SkImageFilter.h" | 33 #include "third_party/skia/include/core/SkImageFilter.h" |
33 #include "ui/gfx/geometry/rect_conversions.h" | 34 #include "ui/gfx/geometry/rect_conversions.h" |
34 #include "ui/gfx/geometry/vector2d_conversions.h" | 35 #include "ui/gfx/geometry/vector2d_conversions.h" |
(...skipping 1790 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1825 this, layer_tree_host_->property_trees()->transform_tree); | 1826 this, layer_tree_host_->property_trees()->transform_tree); |
1826 } | 1827 } |
1827 | 1828 |
1828 gfx::Transform Layer::screen_space_transform() const { | 1829 gfx::Transform Layer::screen_space_transform() const { |
1829 DCHECK_NE(transform_tree_index_, -1); | 1830 DCHECK_NE(transform_tree_index_, -1); |
1830 return ScreenSpaceTransformFromPropertyTrees( | 1831 return ScreenSpaceTransformFromPropertyTrees( |
1831 this, layer_tree_host_->property_trees()->transform_tree); | 1832 this, layer_tree_host_->property_trees()->transform_tree); |
1832 } | 1833 } |
1833 | 1834 |
1834 } // namespace cc | 1835 } // namespace cc |
OLD | NEW |