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 584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
595 } | 595 } |
596 | 596 |
597 const ui::LatencyInfo& LayerTreeImpl::GetLatencyInfo() { | 597 const ui::LatencyInfo& LayerTreeImpl::GetLatencyInfo() { |
598 return latency_info_; | 598 return latency_info_; |
599 } | 599 } |
600 | 600 |
601 void LayerTreeImpl::ClearLatencyInfo() { | 601 void LayerTreeImpl::ClearLatencyInfo() { |
602 latency_info_.Clear(); | 602 latency_info_.Clear(); |
603 } | 603 } |
604 | 604 |
605 void LayerTreeImpl::WillModifyTilePriorities() { | 605 void LayerTreeImpl::DidModifyTilePriorities() { |
606 layer_tree_host_impl_->SetNeedsManageTiles(); | 606 layer_tree_host_impl_->DidModifyTilePriorities(); |
607 } | 607 } |
608 | 608 |
609 void LayerTreeImpl::set_ui_resource_request_queue( | 609 void LayerTreeImpl::set_ui_resource_request_queue( |
610 const UIResourceRequestQueue& queue) { | 610 const UIResourceRequestQueue& queue) { |
611 ui_resource_request_queue_ = queue; | 611 ui_resource_request_queue_ = queue; |
612 } | 612 } |
613 | 613 |
614 ResourceProvider::ResourceId LayerTreeImpl::ResourceIdForUIResource( | 614 ResourceProvider::ResourceId LayerTreeImpl::ResourceIdForUIResource( |
615 UIResourceId uid) const { | 615 UIResourceId uid) const { |
616 return layer_tree_host_impl_->ResourceIdForUIResource(uid); | 616 return layer_tree_host_impl_->ResourceIdForUIResource(uid); |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
667 const std::vector<LayerImpl*> LayerTreeImpl::LayersWithCopyOutputRequest() | 667 const std::vector<LayerImpl*> LayerTreeImpl::LayersWithCopyOutputRequest() |
668 const { | 668 const { |
669 // Only the active tree needs to know about layers with copy requests, as | 669 // Only the active tree needs to know about layers with copy requests, as |
670 // they are aborted if not serviced during draw. | 670 // they are aborted if not serviced during draw. |
671 DCHECK(IsActiveTree()); | 671 DCHECK(IsActiveTree()); |
672 | 672 |
673 return layers_with_copy_output_request_; | 673 return layers_with_copy_output_request_; |
674 } | 674 } |
675 | 675 |
676 } // namespace cc | 676 } // namespace cc |
OLD | NEW |