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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/paint/PropertyTreeState.h

Issue 2573883002: Refactor PaintChunkProperties to use PropertyTreeState (Closed)
Patch Set: none Created 4 years 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PropertyTreeState_h 5 #ifndef PropertyTreeState_h
6 #define PropertyTreeState_h 6 #define PropertyTreeState_h
7 7
8 #include "platform/graphics/paint/ClipPaintPropertyNode.h" 8 #include "platform/graphics/paint/ClipPaintPropertyNode.h"
9 #include "platform/graphics/paint/EffectPaintPropertyNode.h" 9 #include "platform/graphics/paint/EffectPaintPropertyNode.h"
10 #include "platform/graphics/paint/ScrollPaintPropertyNode.h" 10 #include "platform/graphics/paint/ScrollPaintPropertyNode.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 m_scroll = node; 67 m_scroll = node;
68 DCHECK(!node->hasOneRef()); 68 DCHECK(!node->hasOneRef());
69 } 69 }
70 70
71 private: 71 private:
72 RefPtr<const TransformPaintPropertyNode> m_transform; 72 RefPtr<const TransformPaintPropertyNode> m_transform;
73 RefPtr<const ClipPaintPropertyNode> m_clip; 73 RefPtr<const ClipPaintPropertyNode> m_clip;
74 RefPtr<const EffectPaintPropertyNode> m_effect; 74 RefPtr<const EffectPaintPropertyNode> m_effect;
75 RefPtr<const ScrollPaintPropertyNode> m_scroll; 75 RefPtr<const ScrollPaintPropertyNode> m_scroll;
76 }; 76 };
77
78 inline bool operator==(const PropertyTreeState& a, const PropertyTreeState& b) {
79 return a.transform() == b.transform() && a.clip() == b.clip() &&
80 a.effect() == b.effect() && a.scroll() == b.scroll();
81 }
82
77 } // namespace blink 83 } // namespace blink
78 84
79 #endif // PropertyTreeState_h 85 #endif // PropertyTreeState_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698