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

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

Issue 2322943003: cc: Move UI Resource management out of LayerTreeHost. (Closed)
Patch Set: virtual dtor Created 4 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
« no previous file with comments | « cc/trees/layer_tree_impl.h ('k') | cc/trees/proxy_main.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 1538 matching lines...) Expand 10 before | Expand all | Expand 10 after
1549 // |persistent_swap_promises| must remain active even when swap fails. 1549 // |persistent_swap_promises| must remain active even when swap fails.
1550 pinned_swap_promise_list_ = std::move(persistent_swap_promises); 1550 pinned_swap_promise_list_ = std::move(persistent_swap_promises);
1551 } 1551 }
1552 } 1552 }
1553 1553
1554 void LayerTreeImpl::DidModifyTilePriorities() { 1554 void LayerTreeImpl::DidModifyTilePriorities() {
1555 layer_tree_host_impl_->DidModifyTilePriorities(); 1555 layer_tree_host_impl_->DidModifyTilePriorities();
1556 } 1556 }
1557 1557
1558 void LayerTreeImpl::set_ui_resource_request_queue( 1558 void LayerTreeImpl::set_ui_resource_request_queue(
1559 const UIResourceRequestQueue& queue) { 1559 UIResourceRequestQueue queue) {
1560 ui_resource_request_queue_ = queue; 1560 ui_resource_request_queue_ = std::move(queue);
1561 } 1561 }
1562 1562
1563 ResourceId LayerTreeImpl::ResourceIdForUIResource(UIResourceId uid) const { 1563 ResourceId LayerTreeImpl::ResourceIdForUIResource(UIResourceId uid) const {
1564 return layer_tree_host_impl_->ResourceIdForUIResource(uid); 1564 return layer_tree_host_impl_->ResourceIdForUIResource(uid);
1565 } 1565 }
1566 1566
1567 bool LayerTreeImpl::IsUIResourceOpaque(UIResourceId uid) const { 1567 bool LayerTreeImpl::IsUIResourceOpaque(UIResourceId uid) const {
1568 return layer_tree_host_impl_->IsUIResourceOpaque(uid); 1568 return layer_tree_host_impl_->IsUIResourceOpaque(uid);
1569 } 1569 }
1570 1570
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
2076 2076
2077 void LayerTreeImpl::ResetAllChangeTracking() { 2077 void LayerTreeImpl::ResetAllChangeTracking() {
2078 layers_that_should_push_properties_.clear(); 2078 layers_that_should_push_properties_.clear();
2079 // Iterate over all layers, including masks and replicas. 2079 // Iterate over all layers, including masks and replicas.
2080 for (auto& layer : *layers_) 2080 for (auto& layer : *layers_)
2081 layer->ResetChangeTracking(); 2081 layer->ResetChangeTracking();
2082 property_trees_.ResetAllChangeTracking(); 2082 property_trees_.ResetAllChangeTracking();
2083 } 2083 }
2084 2084
2085 } // namespace cc 2085 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_impl.h ('k') | cc/trees/proxy_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698