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

Unified Diff: include/effects/SkStippleMaskFilter.h

Issue 173633003: Factory methods for heap-allocated SkMaskFilter objects. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Add SkTableMaskFilter::Create(table) and remove deprecated SkEmbossMaskFilter constructor. Created 6 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
« no previous file with comments | « include/effects/SkKernel33MaskFilter.h ('k') | include/effects/SkTableMaskFilter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/effects/SkStippleMaskFilter.h
diff --git a/include/effects/SkStippleMaskFilter.h b/include/effects/SkStippleMaskFilter.h
index ee32ae1fe35ed856210a1ee3587573e99b1a6acc..ad7f767e495421b7e6c41265566f086d3520d7a9 100644
--- a/include/effects/SkStippleMaskFilter.h
+++ b/include/effects/SkStippleMaskFilter.h
@@ -15,7 +15,8 @@
*/
class SK_API SkStippleMaskFilter : public SkMaskFilter {
public:
- SkStippleMaskFilter() : INHERITED() {
+ static SkStippleMaskFilter* Create() {
+ return SkNEW(SkStippleMaskFilter);
}
virtual bool filterMask(SkMask* dst, const SkMask& src,
@@ -35,6 +36,12 @@ protected:
: SkMaskFilter(buffer) {
}
+#ifdef SK_SUPPORT_LEGACY_PUBLICEFFECTCONSTRUCTORS
+public:
+#endif
+ SkStippleMaskFilter() : INHERITED() {
+ }
+
private:
typedef SkMaskFilter INHERITED;
};
« no previous file with comments | « include/effects/SkKernel33MaskFilter.h ('k') | include/effects/SkTableMaskFilter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698