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

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

Issue 2495893002: Implement incremental paint property tree rebuilding (Closed)
Patch Set: Suppress main thread scrolling invalidation failures Created 4 years, 1 month 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 0aca67ec9779578b786aeeec7709ec8453cc388a..712761a642a93751d913156b9fe87ac2d629d85d 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/TransformPaintPropertyNode.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/TransformPaintPropertyNode.h
@@ -71,6 +71,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