Index: include/effects/SkTableMaskFilter.h |
diff --git a/include/effects/SkTableMaskFilter.h b/include/effects/SkTableMaskFilter.h |
index 1c2bbd7a1b6c6fa65f87de461494856ff46bb664..63b32b2bd348aeea18303b7a7a87381345448b37 100644 |
--- a/include/effects/SkTableMaskFilter.h |
+++ b/include/effects/SkTableMaskFilter.h |
@@ -18,8 +18,6 @@ |
*/ |
class SK_API SkTableMaskFilter : public SkMaskFilter { |
public: |
- SkTableMaskFilter(); |
- SkTableMaskFilter(const uint8_t table[256]); |
virtual ~SkTableMaskFilter(); |
/** Utility that sets the gamma table |
@@ -31,6 +29,10 @@ public: |
*/ |
static void MakeClipTable(uint8_t table[256], uint8_t min, uint8_t max); |
+ static SkTableMaskFilter* Create(const uint8_t table[256]) { |
+ return SkNEW_ARGS(SkTableMaskFilter, (table)); |
+ } |
+ |
static SkTableMaskFilter* CreateGamma(SkScalar gamma) { |
uint8_t table[256]; |
MakeGammaTable(table, gamma); |
@@ -54,6 +56,12 @@ protected: |
SkTableMaskFilter(SkReadBuffer& rb); |
virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; |
+#ifdef SK_SUPPORT_LEGACY_PUBLICEFFECTCONSTRUCTORS |
+public: |
+#endif |
+ SkTableMaskFilter(); |
+ SkTableMaskFilter(const uint8_t table[256]); |
+ |
private: |
uint8_t fTable[256]; |