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

Unified Diff: Source/core/layout/svg/LayoutSVGResourceMasker.h

Issue 967543002: [S.P.] Move svg mask painting to SVGMaskPainter (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: review fixes Created 5 years, 10 months 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: Source/core/layout/svg/LayoutSVGResourceMasker.h
diff --git a/Source/core/layout/svg/LayoutSVGResourceMasker.h b/Source/core/layout/svg/LayoutSVGResourceMasker.h
index bbe482657fbabc7d18d3bf48729c6f68a92e324e..4084dbed082531f610cd90668adb4466c0feffdf 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> getContentPicture(AffineTransform&, const FloatRect&);
+
private:
void calculateMaskContentPaintInvalidationRect();
- void drawMaskForRenderer(GraphicsContext*, DisplayItemClient, const FloatRect& targetBoundingBox);
PassRefPtr<const SkPicture> createContentPicture();
RefPtr<const SkPicture> m_maskContentPicture;
« no previous file with comments | « Source/core/layout/svg/LayoutSVGResourceContainer.h ('k') | Source/core/layout/svg/LayoutSVGResourceMasker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698