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

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

Issue 2857923004: cc: Keep PaintImage in DrawImage. (Closed)
Patch Set: addressed comments. Created 3 years, 7 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 <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 304
305 void LayerTreeImpl::BuildLayerListForTesting() { 305 void LayerTreeImpl::BuildLayerListForTesting() {
306 ClearLayerList(); 306 ClearLayerList();
307 LayerListIterator<LayerImpl> it(root_layer_for_testing_); 307 LayerListIterator<LayerImpl> it(root_layer_for_testing_);
308 for (; it != LayerListIterator<LayerImpl>(nullptr); ++it) { 308 for (; it != LayerListIterator<LayerImpl>(nullptr); ++it) {
309 AddToLayerList(*it); 309 AddToLayerList(*it);
310 } 310 }
311 } 311 }
312 312
313 void LayerTreeImpl::InvalidateRegionForImages( 313 void LayerTreeImpl::InvalidateRegionForImages(
314 const ImageIdFlatSet& images_to_invalidate) { 314 const PaintImageIdFlatSet& images_to_invalidate) {
315 DCHECK(IsSyncTree()); 315 DCHECK(IsSyncTree());
316 316
317 if (images_to_invalidate.empty()) 317 if (images_to_invalidate.empty())
318 return; 318 return;
319 319
320 for (auto* picture_layer : picture_layers_) 320 for (auto* picture_layer : picture_layers_)
321 picture_layer->InvalidateRegionForImages(images_to_invalidate); 321 picture_layer->InvalidateRegionForImages(images_to_invalidate);
322 } 322 }
323 323
324 bool LayerTreeImpl::IsRootLayer(const LayerImpl* layer) const { 324 bool LayerTreeImpl::IsRootLayer(const LayerImpl* layer) const {
(...skipping 1784 matching lines...) Expand 10 before | Expand all | Expand 10 after
2109 2109
2110 void LayerTreeImpl::ResetAllChangeTracking() { 2110 void LayerTreeImpl::ResetAllChangeTracking() {
2111 layers_that_should_push_properties_.clear(); 2111 layers_that_should_push_properties_.clear();
2112 // Iterate over all layers, including masks. 2112 // Iterate over all layers, including masks.
2113 for (auto& layer : *layers_) 2113 for (auto& layer : *layers_)
2114 layer->ResetChangeTracking(); 2114 layer->ResetChangeTracking();
2115 property_trees_.ResetAllChangeTracking(); 2115 property_trees_.ResetAllChangeTracking();
2116 } 2116 }
2117 2117
2118 } // namespace cc 2118 } // namespace cc
OLDNEW
« cc/tiles/software_image_decode_cache.h ('K') | « cc/trees/layer_tree_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698