| 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_impl.h" | 5 #include "cc/trees/layer_tree_impl.h" |
| 6 | 6 |
| 7 #include "base/debug/trace_event.h" | 7 #include "base/debug/trace_event.h" |
| 8 #include "cc/animation/keyframed_animation_curve.h" | 8 #include "cc/animation/keyframed_animation_curve.h" |
| 9 #include "cc/animation/scrollbar_animation_controller.h" | 9 #include "cc/animation/scrollbar_animation_controller.h" |
| 10 #include "cc/base/math_util.h" | 10 #include "cc/base/math_util.h" |
| 11 #include "cc/base/util.h" | 11 #include "cc/base/util.h" |
| 12 #include "cc/debug/traced_value.h" | 12 #include "cc/debug/traced_value.h" |
| 13 #include "cc/layers/heads_up_display_layer_impl.h" | 13 #include "cc/layers/heads_up_display_layer_impl.h" |
| 14 #include "cc/layers/layer.h" | 14 #include "cc/layers/layer.h" |
| 15 #include "cc/layers/layer_iterator.h" |
| 15 #include "cc/layers/render_surface_impl.h" | 16 #include "cc/layers/render_surface_impl.h" |
| 16 #include "cc/layers/scrollbar_layer_impl_base.h" | 17 #include "cc/layers/scrollbar_layer_impl_base.h" |
| 17 #include "cc/resources/ui_resource_request.h" | 18 #include "cc/resources/ui_resource_request.h" |
| 18 #include "cc/trees/layer_tree_host_common.h" | 19 #include "cc/trees/layer_tree_host_common.h" |
| 19 #include "cc/trees/layer_tree_host_impl.h" | 20 #include "cc/trees/layer_tree_host_impl.h" |
| 20 #include "ui/gfx/size_conversions.h" | 21 #include "ui/gfx/size_conversions.h" |
| 21 #include "ui/gfx/vector2d_conversions.h" | 22 #include "ui/gfx/vector2d_conversions.h" |
| 22 | 23 |
| 23 namespace cc { | 24 namespace cc { |
| 24 | 25 |
| (...skipping 932 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 957 const std::vector<LayerImpl*>& LayerTreeImpl::LayersWithCopyOutputRequest() | 958 const std::vector<LayerImpl*>& LayerTreeImpl::LayersWithCopyOutputRequest() |
| 958 const { | 959 const { |
| 959 // Only the active tree needs to know about layers with copy requests, as | 960 // Only the active tree needs to know about layers with copy requests, as |
| 960 // they are aborted if not serviced during draw. | 961 // they are aborted if not serviced during draw. |
| 961 DCHECK(IsActiveTree()); | 962 DCHECK(IsActiveTree()); |
| 962 | 963 |
| 963 return layers_with_copy_output_request_; | 964 return layers_with_copy_output_request_; |
| 964 } | 965 } |
| 965 | 966 |
| 966 } // namespace cc | 967 } // namespace cc |
| OLD | NEW |