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