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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/EffectPaintPropertyNode.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
Index: third_party/WebKit/Source/platform/graphics/paint/EffectPaintPropertyNode.h
diff --git a/third_party/WebKit/Source/platform/graphics/paint/EffectPaintPropertyNode.h b/third_party/WebKit/Source/platform/graphics/paint/EffectPaintPropertyNode.h
index 374281f2d8c509280ae1ad7beef74fb9375026cb..e2d6099eef69d68e8f08b6ab0bb7bec2d73f2f73 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/EffectPaintPropertyNode.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/EffectPaintPropertyNode.h
@@ -64,6 +64,24 @@ class PLATFORM_EXPORT EffectPaintPropertyNode
const EffectPaintPropertyNode* parent() const { return m_parent.get(); }
bool isRoot() const { return !m_parent; }
+#if DCHECK_IS_ON()
+ // The clone function is used by FindPropertiesNeedingUpdate.h for recording
+ // an effect node before it has been updated, to later detect changes.
+ PassRefPtr<EffectPaintPropertyNode> clone() const {
+ return adoptRef(new EffectPaintPropertyNode(
+ m_parent, m_localTransformSpace, m_outputClip, m_filter, m_opacity));
+ }
+
+ // The equality operator is used by FindPropertiesNeedingUpdate.h for checking
+ // if an effect node has changed.
+ bool operator==(const EffectPaintPropertyNode& o) const {
+ return m_parent == o.m_parent &&
+ m_localTransformSpace == o.m_localTransformSpace &&
+ m_outputClip == o.m_outputClip && m_filter == o.m_filter &&
+ m_opacity == o.m_opacity;
+ }
+#endif
+
private:
EffectPaintPropertyNode(
PassRefPtr<const EffectPaintPropertyNode> parent,

Powered by Google App Engine
This is Rietveld 408576698