Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(157)

Side by Side Diff: cc/trees/layer_tree_impl.cc

Issue 23495022: CC: Add a scheduled action for ManageTiles (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add to AsValue Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 581 matching lines...) Expand 10 before | Expand all | Expand 10 after
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::WillModifyTilePriorities() {
602 layer_tree_host_impl_->SetNeedsManageTiles(); 602 layer_tree_host_impl_->WillModifyTilePriorities();
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698