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

Unified Diff: cc/trees/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: Add early-out and unit test Created 7 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 side-by-side diff with in-line comments
Download patch
Index: cc/trees/layer_tree_impl.h
diff --git a/cc/trees/layer_tree_impl.h b/cc/trees/layer_tree_impl.h
index 4681fc1243b8cd8671539464d9c1ba2d3a81bce8..3182946bfc168172a0aceffe04e14a8156b7e7aa 100644
--- a/cc/trees/layer_tree_impl.h
+++ b/cc/trees/layer_tree_impl.h
@@ -121,12 +121,6 @@ class CC_EXPORT LayerTreeImpl {
has_transparent_background_ = transparent;
}
- enum UpdateDrawPropertiesReason {
- UPDATE_PENDING_TREE,
- UPDATE_ACTIVE_TREE,
- UPDATE_ACTIVE_TREE_FOR_DRAW
- };
-
void SetPageScaleFactorAndLimits(float page_scale_factor,
float min_page_scale_factor, float max_page_scale_factor);
void SetPageScaleDelta(float delta);
@@ -142,8 +136,10 @@ class CC_EXPORT LayerTreeImpl {
}
float sent_page_scale_delta() const { return sent_page_scale_delta_; }
- // Updates draw properties and render surface layer list
- void UpdateDrawProperties(UpdateDrawPropertiesReason reason);
+ // Updates draw properties and render surface layer list, as well as tile
+ // priorities.
+ void UpdateDrawProperties();
+
void set_needs_update_draw_properties() {
needs_update_draw_properties_ = true;
}

Powered by Google App Engine
This is Rietveld 408576698