| Index: include/effects/SkColorCubeFilter.h
|
| diff --git a/include/effects/SkColorCubeFilter.h b/include/effects/SkColorCubeFilter.h
|
| index 8d63667c3232c295bf8c93b855cac0adbda716a5..8b621292b03bdba9eb1bead4e21ab25122ee392c 100644
|
| --- a/include/effects/SkColorCubeFilter.h
|
| +++ b/include/effects/SkColorCubeFilter.h
|
| @@ -20,7 +20,11 @@ public:
|
| * This cube contains a transform where (x,y,z) maps to the (r,g,b).
|
| * The alpha components of the colors must be 0xFF.
|
| */
|
| + static sk_sp<SkColorFilter> Make(sk_sp<SkData> cubeData, int cubeDimension);
|
| +
|
| +#ifdef SK_SUPPORT_LEGACY_COLORFILTER_PTR
|
| static SkColorFilter* Create(SkData* cubeData, int cubeDimension);
|
| +#endif
|
|
|
| void filterSpan(const SkPMColor src[], int count, SkPMColor[]) const override;
|
| uint32_t getFlags() const override;
|
| @@ -33,7 +37,7 @@ public:
|
| SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkColorCubeFilter)
|
|
|
| protected:
|
| - SkColorCubeFilter(SkData* cubeData, int cubeDimension);
|
| + SkColorCubeFilter(sk_sp<SkData> cubeData, int cubeDimension);
|
| void flatten(SkWriteBuffer&) const override;
|
|
|
| private:
|
|
|