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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/TransformPaintPropertyNode.h

Issue 2404213004: Implement incremental paint property tree rebuilding (Closed)
Patch Set: Cleanup needsUpdate finder construction, tighten reasons for updating a property subtree, misc clea… Created 4 years, 2 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 | « third_party/WebKit/Source/platform/graphics/paint/ScrollPaintPropertyNode.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/graphics/paint/TransformPaintPropertyNode.h
diff --git a/third_party/WebKit/Source/platform/graphics/paint/TransformPaintPropertyNode.h b/third_party/WebKit/Source/platform/graphics/paint/TransformPaintPropertyNode.h
index 945464ccd8beef9b280648aa26a2f43d57207d9b..e76140ce2e30cf5a46525f171c54711e98f7c3d9 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/TransformPaintPropertyNode.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/TransformPaintPropertyNode.h
@@ -69,6 +69,25 @@ class PLATFORM_EXPORT TransformPaintPropertyNode
unsigned renderingContextID() const { return m_renderingContextID; }
bool hasRenderingContext() const { return m_renderingContextID; }
+#if DCHECK_IS_ON()
+ // The clone function is used by FindPropertiesNeedingUpdate.h for recording
+ // a transform node before it has been updated, to later detect changes.
+ PassRefPtr<TransformPaintPropertyNode> clone() const {
+ return adoptRef(new TransformPaintPropertyNode(m_matrix, m_origin, m_parent,
+ m_flattensInheritedTransform,
+ m_renderingContextID));
+ }
+
+ // The equality operator is used by FindPropertiesNeedingUpdate.h for checking
+ // if a transform node has changed.
+ bool operator==(const TransformPaintPropertyNode& o) const {
+ return m_matrix == o.m_matrix && m_origin == o.m_origin &&
+ m_parent == o.m_parent &&
+ m_flattensInheritedTransform == o.m_flattensInheritedTransform &&
+ m_renderingContextID == o.m_renderingContextID;
+ }
+#endif
+
private:
TransformPaintPropertyNode(
const TransformationMatrix& matrix,
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/paint/ScrollPaintPropertyNode.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698