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 538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
549 } | 549 } |
550 | 550 |
551 void LayerTreeImpl::ClearLatencyInfo() { | 551 void LayerTreeImpl::ClearLatencyInfo() { |
552 latency_info_.Clear(); | 552 latency_info_.Clear(); |
553 } | 553 } |
554 | 554 |
555 void LayerTreeImpl::WillModifyTilePriorities() { | 555 void LayerTreeImpl::WillModifyTilePriorities() { |
556 layer_tree_host_impl_->SetNeedsManageTiles(); | 556 layer_tree_host_impl_->SetNeedsManageTiles(); |
557 } | 557 } |
558 | 558 |
| 559 |
| 560 ResourceProvider::ResourceId |
| 561 LayerTreeImpl::ResourceIdForUIResource(UIResourceId uid) const { |
| 562 return layer_tree_host_impl_->ResourceIdForUIResource(uid); |
| 563 } |
| 564 |
| 565 |
559 void LayerTreeImpl::AddLayerWithCopyOutputRequest(LayerImpl* layer) { | 566 void LayerTreeImpl::AddLayerWithCopyOutputRequest(LayerImpl* layer) { |
560 // Only the active tree needs to know about layers with copy requests, as | 567 // Only the active tree needs to know about layers with copy requests, as |
561 // they are aborted if not serviced during draw. | 568 // they are aborted if not serviced during draw. |
562 DCHECK(IsActiveTree()); | 569 DCHECK(IsActiveTree()); |
563 | 570 |
564 DCHECK(std::find(layers_with_copy_output_request_.begin(), | 571 DCHECK(std::find(layers_with_copy_output_request_.begin(), |
565 layers_with_copy_output_request_.end(), | 572 layers_with_copy_output_request_.end(), |
566 layer) == layers_with_copy_output_request_.end()); | 573 layer) == layers_with_copy_output_request_.end()); |
567 layers_with_copy_output_request_.push_back(layer); | 574 layers_with_copy_output_request_.push_back(layer); |
568 } | 575 } |
(...skipping 15 matching lines...) Expand all Loading... |
584 const std::vector<LayerImpl*> LayerTreeImpl::LayersWithCopyOutputRequest() | 591 const std::vector<LayerImpl*> LayerTreeImpl::LayersWithCopyOutputRequest() |
585 const { | 592 const { |
586 // Only the active tree needs to know about layers with copy requests, as | 593 // Only the active tree needs to know about layers with copy requests, as |
587 // they are aborted if not serviced during draw. | 594 // they are aborted if not serviced during draw. |
588 DCHECK(IsActiveTree()); | 595 DCHECK(IsActiveTree()); |
589 | 596 |
590 return layers_with_copy_output_request_; | 597 return layers_with_copy_output_request_; |
591 } | 598 } |
592 | 599 |
593 } // namespace cc | 600 } // namespace cc |
OLD | NEW |