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

Side by Side Diff: cc/trees/layer_tree_host.h

Issue 2795803002: Clear Image Decode Cache on Navigation (Closed)
Patch Set: fix conversion Created 3 years, 8 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/tiles/software_image_decode_cache_unittest.cc ('k') | cc/trees/layer_tree_host.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 #ifndef CC_TREES_LAYER_TREE_HOST_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_H_
6 #define CC_TREES_LAYER_TREE_HOST_H_ 6 #define CC_TREES_LAYER_TREE_HOST_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after
616 std::unordered_map<ElementId, Layer*, ElementIdHash> element_layers_map_; 616 std::unordered_map<ElementId, Layer*, ElementIdHash> element_layers_map_;
617 617
618 bool in_paint_layer_contents_ = false; 618 bool in_paint_layer_contents_ = false;
619 bool in_update_property_trees_ = false; 619 bool in_update_property_trees_ = false;
620 620
621 MutatorHost* mutator_host_; 621 MutatorHost* mutator_host_;
622 622
623 std::vector<std::pair<sk_sp<const SkImage>, base::Callback<void(bool)>>> 623 std::vector<std::pair<sk_sp<const SkImage>, base::Callback<void(bool)>>>
624 queued_image_decodes_; 624 queued_image_decodes_;
625 625
626 bool did_navigate_ = false;
627
626 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 628 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
627 }; 629 };
628 630
629 } // namespace cc 631 } // namespace cc
630 632
631 #endif // CC_TREES_LAYER_TREE_HOST_H_ 633 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW
« no previous file with comments | « cc/tiles/software_image_decode_cache_unittest.cc ('k') | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698