Chromium Code Reviews| Index: third_party/WebKit/Source/platform/graphics/paint/PaintProperties.h |
| diff --git a/third_party/WebKit/Source/platform/graphics/paint/PaintProperties.h b/third_party/WebKit/Source/platform/graphics/paint/PaintProperties.h |
| index 69a6651de7ed9dc39f562fcb2b79e711512dbbb6..916c4bde03155b9b0330a1802768e9013d43c174 100644 |
| --- a/third_party/WebKit/Source/platform/graphics/paint/PaintProperties.h |
| +++ b/third_party/WebKit/Source/platform/graphics/paint/PaintProperties.h |
| @@ -5,21 +5,26 @@ |
| #ifndef PaintProperties_h |
| #define PaintProperties_h |
| +#include "platform/graphics/paint/TransformPaintPropertyNode.h" |
| + |
| #include <iosfwd> |
| namespace blink { |
| -// The set of paint properties applying to a |PaintChunk|. |
| -// In particular, this does not mean properties like background-color, but |
| -// rather the hierarchy of transforms, clips, effects, etc. that apply to a |
| -// contiguous chunk of drawings. |
| +// The set of paint properties applying to a |PaintChunk|. These properties are |
| +// not simple color changes but instead represent the hierarchy of transforms, |
|
chrishtr
2015/10/07 21:14:28
"not local-only paint style parameters such as col
pdr.
2015/10/07 22:15:59
Done
|
| +// clips, effects, etc, that apply to a contiguous chunk of display items. |
| +// A single DisplayItemClient can generate multiple properties of the same type |
| +// and this struct represents the total state of all properties for a given |
| +// |PaintChunk|. |
| struct PaintProperties { |
|
chrishtr
2015/10/07 21:14:28
PaintChunkProperties
pdr.
2015/10/07 22:15:59
Done
|
| - // TODO(jbroman): Add actual properties. |
| + // TODO(pdr): Add clip, scroll, and effect properties. |
| + RefPtr<TransformPaintPropertyNode> transform; |
| }; |
| -inline bool operator==(const PaintProperties&, const PaintProperties&) |
| +inline bool operator==(const PaintProperties& a, const PaintProperties& b) |
| { |
| - return true; |
| + return a.transform.get() == b.transform.get(); |
| } |
| inline bool operator!=(const PaintProperties& a, const PaintProperties& b) |