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

Unified Diff: cc/trees/property_tree.h

Issue 1697613002: cc :: Move tracking of layer_property_changed to main thread (2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | « cc/trees/layer_tree_impl_unittest.cc ('k') | cc/trees/property_tree.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/property_tree.h
diff --git a/cc/trees/property_tree.h b/cc/trees/property_tree.h
index dac4c9201c3aa731c05694f4ced8896e92c4dc95..89a3094252c5e2e7a2390cb55ee958971083328c 100644
--- a/cc/trees/property_tree.h
+++ b/cc/trees/property_tree.h
@@ -135,6 +135,9 @@ struct CC_EXPORT TransformNodeData {
// layer scale factor should include the page scale factor.
bool in_subtree_of_page_scale_layer : 1;
+ // We need to track changes to to_screen transform to compute the damage rect.
+ bool transform_changed : 1;
+
// TODO(vollick): will be moved when accelerated effects are implemented.
float post_local_scale_factor;
@@ -385,6 +388,7 @@ class CC_EXPORT TransformTree final : public PropertyTree<TransformNode> {
// aligned with respect to one another.
bool Are2DAxisAligned(int source_id, int dest_id) const;
+ void ResetChangeTracking();
// Updates the parent, target, and screen space transforms and snapping.
void UpdateTransforms(int id);
@@ -474,6 +478,9 @@ class CC_EXPORT TransformTree final : public PropertyTree<TransformNode> {
TransformNode* parent_node);
void UndoSnapping(TransformNode* node);
void UpdateSnapping(TransformNode* node);
+ void UpdateTransformChanged(TransformNode* node,
+ TransformNode* parent_node,
+ TransformNode* source_node);
void UpdateNodeAndAncestorsHaveIntegerTranslations(
TransformNode* node,
TransformNode* parent_node);
« no previous file with comments | « cc/trees/layer_tree_impl_unittest.cc ('k') | cc/trees/property_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698