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 <algorithm> | 7 #include <algorithm> |
8 #include <limits> | 8 #include <limits> |
9 #include <set> | 9 #include <set> |
10 | 10 |
(...skipping 1083 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1094 | 1094 |
1095 void LayerTreeImpl::DidModifyTilePriorities() { | 1095 void LayerTreeImpl::DidModifyTilePriorities() { |
1096 layer_tree_host_impl_->DidModifyTilePriorities(); | 1096 layer_tree_host_impl_->DidModifyTilePriorities(); |
1097 } | 1097 } |
1098 | 1098 |
1099 void LayerTreeImpl::set_ui_resource_request_queue( | 1099 void LayerTreeImpl::set_ui_resource_request_queue( |
1100 const UIResourceRequestQueue& queue) { | 1100 const UIResourceRequestQueue& queue) { |
1101 ui_resource_request_queue_ = queue; | 1101 ui_resource_request_queue_ = queue; |
1102 } | 1102 } |
1103 | 1103 |
1104 ResourceProvider::ResourceId LayerTreeImpl::ResourceIdForUIResource( | 1104 ResourceId LayerTreeImpl::ResourceIdForUIResource(UIResourceId uid) const { |
1105 UIResourceId uid) const { | |
1106 return layer_tree_host_impl_->ResourceIdForUIResource(uid); | 1105 return layer_tree_host_impl_->ResourceIdForUIResource(uid); |
1107 } | 1106 } |
1108 | 1107 |
1109 bool LayerTreeImpl::IsUIResourceOpaque(UIResourceId uid) const { | 1108 bool LayerTreeImpl::IsUIResourceOpaque(UIResourceId uid) const { |
1110 return layer_tree_host_impl_->IsUIResourceOpaque(uid); | 1109 return layer_tree_host_impl_->IsUIResourceOpaque(uid); |
1111 } | 1110 } |
1112 | 1111 |
1113 void LayerTreeImpl::ProcessUIResourceRequestQueue() { | 1112 void LayerTreeImpl::ProcessUIResourceRequestQueue() { |
1114 for (const auto& req : ui_resource_request_queue_) { | 1113 for (const auto& req : ui_resource_request_queue_) { |
1115 switch (req.GetType()) { | 1114 switch (req.GetType()) { |
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1568 scoped_ptr<PendingPageScaleAnimation> pending_animation) { | 1567 scoped_ptr<PendingPageScaleAnimation> pending_animation) { |
1569 pending_page_scale_animation_ = pending_animation.Pass(); | 1568 pending_page_scale_animation_ = pending_animation.Pass(); |
1570 } | 1569 } |
1571 | 1570 |
1572 scoped_ptr<PendingPageScaleAnimation> | 1571 scoped_ptr<PendingPageScaleAnimation> |
1573 LayerTreeImpl::TakePendingPageScaleAnimation() { | 1572 LayerTreeImpl::TakePendingPageScaleAnimation() { |
1574 return pending_page_scale_animation_.Pass(); | 1573 return pending_page_scale_animation_.Pass(); |
1575 } | 1574 } |
1576 | 1575 |
1577 } // namespace cc | 1576 } // namespace cc |
OLD | NEW |