| 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/debug/traced_value.h" | 10 #include "cc/debug/traced_value.h" |
| (...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 591 } | 591 } |
| 592 | 592 |
| 593 const ui::LatencyInfo& LayerTreeImpl::GetLatencyInfo() { | 593 const ui::LatencyInfo& LayerTreeImpl::GetLatencyInfo() { |
| 594 return latency_info_; | 594 return latency_info_; |
| 595 } | 595 } |
| 596 | 596 |
| 597 void LayerTreeImpl::ClearLatencyInfo() { | 597 void LayerTreeImpl::ClearLatencyInfo() { |
| 598 latency_info_.Clear(); | 598 latency_info_.Clear(); |
| 599 } | 599 } |
| 600 | 600 |
| 601 void LayerTreeImpl::WillModifyTilePriorities() { | 601 void LayerTreeImpl::DidModifyTilePriorities() { |
| 602 layer_tree_host_impl_->SetNeedsManageTiles(); | 602 layer_tree_host_impl_->DidModifyTilePriorities(); |
| 603 } | 603 } |
| 604 | 604 |
| 605 void LayerTreeImpl::set_ui_resource_request_queue( | 605 void LayerTreeImpl::set_ui_resource_request_queue( |
| 606 const UIResourceRequestQueue& queue) { | 606 const UIResourceRequestQueue& queue) { |
| 607 ui_resource_request_queue_ = queue; | 607 ui_resource_request_queue_ = queue; |
| 608 } | 608 } |
| 609 | 609 |
| 610 ResourceProvider::ResourceId LayerTreeImpl::ResourceIdForUIResource( | 610 ResourceProvider::ResourceId LayerTreeImpl::ResourceIdForUIResource( |
| 611 UIResourceId uid) const { | 611 UIResourceId uid) const { |
| 612 return layer_tree_host_impl_->ResourceIdForUIResource(uid); | 612 return layer_tree_host_impl_->ResourceIdForUIResource(uid); |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 658 const std::vector<LayerImpl*> LayerTreeImpl::LayersWithCopyOutputRequest() | 658 const std::vector<LayerImpl*> LayerTreeImpl::LayersWithCopyOutputRequest() |
| 659 const { | 659 const { |
| 660 // Only the active tree needs to know about layers with copy requests, as | 660 // Only the active tree needs to know about layers with copy requests, as |
| 661 // they are aborted if not serviced during draw. | 661 // they are aborted if not serviced during draw. |
| 662 DCHECK(IsActiveTree()); | 662 DCHECK(IsActiveTree()); |
| 663 | 663 |
| 664 return layers_with_copy_output_request_; | 664 return layers_with_copy_output_request_; |
| 665 } | 665 } |
| 666 | 666 |
| 667 } // namespace cc | 667 } // namespace cc |
| OLD | NEW |