diff options
-rw-r--r-- | samplecode/SampleAll.cpp | 2 | ||||
-rw-r--r-- | src/core/SkComposeShader.cpp | 2 | ||||
-rw-r--r-- | src/effects/SkTransparentShader.cpp | 2 | ||||
-rw-r--r-- | src/utils/SkUnitMappers.cpp | 2 |
4 files changed, 8 insertions, 0 deletions
diff --git a/samplecode/SampleAll.cpp b/samplecode/SampleAll.cpp index 201dfe7a2d..303059be42 100644 --- a/samplecode/SampleAll.cpp +++ b/samplecode/SampleAll.cpp @@ -250,6 +250,8 @@ private: typedef Sk2DPathEffect INHERITED; }; +SK_DEFINE_FLATTENABLE_REGISTRAR(Line2DPathEffect) + static void r9(SkLayerRasterizer* rast, SkPaint& p) { rast->addLayer(p); diff --git a/src/core/SkComposeShader.cpp b/src/core/SkComposeShader.cpp index 6f3eccd5e0..90e4953422 100644 --- a/src/core/SkComposeShader.cpp +++ b/src/core/SkComposeShader.cpp @@ -165,3 +165,5 @@ void SkComposeShader::shadeSpan(int x, int y, SkPMColor result[], int count) { } } +SK_DEFINE_FLATTENABLE_REGISTRAR(SkComposeShader) + diff --git a/src/effects/SkTransparentShader.cpp b/src/effects/SkTransparentShader.cpp index 28b075f4e2..419a33052e 100644 --- a/src/effects/SkTransparentShader.cpp +++ b/src/effects/SkTransparentShader.cpp @@ -125,3 +125,5 @@ void SkTransparentShader::shadeSpan16(int x, int y, uint16_t span[], int count) memcpy(span, src, count << 1); } } + +SK_DEFINE_FLATTENABLE_REGISTRAR(SkTransparentShader) diff --git a/src/utils/SkUnitMappers.cpp b/src/utils/SkUnitMappers.cpp index df9771d538..929447e489 100644 --- a/src/utils/SkUnitMappers.cpp +++ b/src/utils/SkUnitMappers.cpp @@ -57,3 +57,5 @@ uint16_t SkCosineMapper::mapUnit16(uint16_t input) SkCosineMapper::SkCosineMapper(SkFlattenableReadBuffer& rb) : SkUnitMapper(rb) {} +SK_DEFINE_FLATTENABLE_REGISTRAR(SkDiscreteMapper) +SK_DEFINE_FLATTENABLE_REGISTRAR(SkCosineMapper) |