Chromium Code Reviews| Index: Source/core/layout/svg/LayoutSVGResourceMasker.h |
| diff --git a/Source/core/layout/svg/LayoutSVGResourceMasker.h b/Source/core/layout/svg/LayoutSVGResourceMasker.h |
| index bbe482657fbabc7d18d3bf48729c6f68a92e324e..8ec6a37ca0f5025c0e0506e7941b2274f24f4968 100644 |
| --- a/Source/core/layout/svg/LayoutSVGResourceMasker.h |
| +++ b/Source/core/layout/svg/LayoutSVGResourceMasker.h |
| @@ -31,6 +31,7 @@ |
| #include "wtf/OwnPtr.h" |
| class SkPicture; |
| +class AffineTransform; |
| namespace blink { |
| @@ -46,9 +47,6 @@ public: |
| virtual void removeAllClientsFromCache(bool markForInvalidation = true) override; |
| virtual void removeClientFromCache(LayoutObject*, bool markForInvalidation = true) override; |
| - bool prepareEffect(LayoutObject*, GraphicsContext*); |
| - void finishEffect(LayoutObject*, GraphicsContext*); |
| - |
| FloatRect resourceBoundingBox(const LayoutObject*); |
| SVGUnitTypes::SVGUnitType maskUnits() const { return toSVGMaskElement(element())->maskUnits()->currentValue()->enumValue(); } |
| @@ -57,9 +55,10 @@ public: |
| static const LayoutSVGResourceType s_resourceType = MaskerResourceType; |
| virtual LayoutSVGResourceType resourceType() const override { return s_resourceType; } |
| + PassRefPtr<const SkPicture> setupDrawMaskForRenderer(AffineTransform&, const FloatRect&); |
|
fs
2015/03/03 12:04:37
I think I would've called this "getContentPicture"
Erik Dahlström (inactive)
2015/03/03 13:08:58
Ok, changed the name for now.
|
| + |
| private: |
| void calculateMaskContentPaintInvalidationRect(); |
| - void drawMaskForRenderer(GraphicsContext*, DisplayItemClient, const FloatRect& targetBoundingBox); |
| PassRefPtr<const SkPicture> createContentPicture(); |
| RefPtr<const SkPicture> m_maskContentPicture; |