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

Side by Side Diff: Source/core/layout/svg/LayoutSVGResourceMasker.h

Issue 1160183003: Use SkPictureBuilder in SVGShapePainter, and generalize SkPictureBuilder. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. 2 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 virtual void removeClientFromCache(LayoutObject*, bool markForInvalidation = true) override; 43 virtual void removeClientFromCache(LayoutObject*, bool markForInvalidation = true) override;
44 44
45 FloatRect resourceBoundingBox(const LayoutObject*); 45 FloatRect resourceBoundingBox(const LayoutObject*);
46 46
47 SVGUnitTypes::SVGUnitType maskUnits() const { return toSVGMaskElement(elemen t())->maskUnits()->currentValue()->enumValue(); } 47 SVGUnitTypes::SVGUnitType maskUnits() const { return toSVGMaskElement(elemen t())->maskUnits()->currentValue()->enumValue(); }
48 SVGUnitTypes::SVGUnitType maskContentUnits() const { return toSVGMaskElement (element())->maskContentUnits()->currentValue()->enumValue(); } 48 SVGUnitTypes::SVGUnitType maskContentUnits() const { return toSVGMaskElement (element())->maskContentUnits()->currentValue()->enumValue(); }
49 49
50 static const LayoutSVGResourceType s_resourceType = MaskerResourceType; 50 static const LayoutSVGResourceType s_resourceType = MaskerResourceType;
51 virtual LayoutSVGResourceType resourceType() const override { return s_resou rceType; } 51 virtual LayoutSVGResourceType resourceType() const override { return s_resou rceType; }
52 52
53 PassRefPtr<const SkPicture> createContentPicture(AffineTransform&, const Flo atRect&); 53 PassRefPtr<const SkPicture> createContentPicture(AffineTransform&, const Flo atRect&, GraphicsContext*);
54 54
55 private: 55 private:
56 void calculateMaskContentPaintInvalidationRect(); 56 void calculateMaskContentPaintInvalidationRect();
57 57
58 RefPtr<const SkPicture> m_maskContentPicture; 58 RefPtr<const SkPicture> m_maskContentPicture;
59 FloatRect m_maskContentBoundaries; 59 FloatRect m_maskContentBoundaries;
60 }; 60 };
61 61
62 DEFINE_LAYOUT_SVG_RESOURCE_TYPE_CASTS(LayoutSVGResourceMasker, MaskerResourceTyp e); 62 DEFINE_LAYOUT_SVG_RESOURCE_TYPE_CASTS(LayoutSVGResourceMasker, MaskerResourceTyp e);
63 63
64 } 64 }
65 65
66 #endif 66 #endif
OLDNEW
« no previous file with comments | « Source/core/layout/svg/LayoutSVGResourceClipper.cpp ('k') | Source/core/layout/svg/LayoutSVGResourceMasker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698