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

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: Remove the LTI variable 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 fdda05d92538012a0907dd2b489df79b5db5116c..7bc2be74c14b105cd47108a942fd6d9612e304a3 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
- };
-
gfx::Transform ImplTransform() const;
void SetPageScaleFactorAndLimits(float page_scale_factor,
@@ -144,8 +138,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