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

Unified Diff: cc/layer_tree_impl.h

Issue 12259027: cc: Simplify the logic for deciding to update tile priorities. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Avoid project more agressively. Don't save state for tile prio if we didn't compute tile prio. Created 7 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | cc/layer_tree_impl.cc » ('j') | cc/layer_tree_impl.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layer_tree_impl.h
diff --git a/cc/layer_tree_impl.h b/cc/layer_tree_impl.h
index 729c3d452816f9baab5e17e851f0e74394e385b8..8e2ee91c7e97b869541d9f13bdacbd3662b599e2 100644
--- a/cc/layer_tree_impl.h
+++ b/cc/layer_tree_impl.h
@@ -152,6 +152,10 @@ class CC_EXPORT LayerTreeImpl {
void set_needs_full_tree_sync(bool needs) { needs_full_tree_sync_ = needs; }
bool needs_full_tree_sync() const { return needs_full_tree_sync_; }
+ void set_needs_update_tile_priorities() {
+ needs_update_tile_priorities_ = true;
+ }
+
void ClearRenderSurfaces();
bool AreVisibleResourcesReady() const;
@@ -219,6 +223,7 @@ protected:
bool contents_textures_purged_;
bool viewport_size_invalid_;
bool needs_update_draw_properties_;
+ bool needs_update_tile_priorities_;
// In impl-side painting mode, this is true when the tree may contain
// structural differences relative to the active tree.
« no previous file with comments | « no previous file | cc/layer_tree_impl.cc » ('j') | cc/layer_tree_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698