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

Unified Diff: cc/layer_tree_impl.h

Issue 12094094: cc: Don't do full tree sync unless needed with impl painting. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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 | « cc/layer_tree_host_impl.cc ('k') | cc/layer_tree_impl.cc » ('j') | no next file with comments »
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 139b5f98c898d3b6fedf72c513cdf2c4a9b7a7a1..e9b14c72ebbb075125df39ad91f712a4023a8824 100644
--- a/cc/layer_tree_impl.h
+++ b/cc/layer_tree_impl.h
@@ -145,6 +145,9 @@ class CC_EXPORT LayerTreeImpl {
return needs_update_draw_properties_;
}
+ 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 ClearRenderSurfaces();
bool AreVisibleResourcesReady() const;
@@ -206,6 +209,10 @@ protected:
bool contents_textures_purged_;
bool needs_update_draw_properties_;
+ // In impl-side painting mode, this is true when the tree may contain
+ // structural differences relative to the active tree.
+ bool needs_full_tree_sync_;
+
DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl);
};
« no previous file with comments | « cc/layer_tree_host_impl.cc ('k') | cc/layer_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698