diff options
Diffstat (limited to 'src/codec/SkCodecPriv.h')
-rw-r--r-- | src/codec/SkCodecPriv.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/codec/SkCodecPriv.h b/src/codec/SkCodecPriv.h index 90b16323a7..0c45fddff1 100644 --- a/src/codec/SkCodecPriv.h +++ b/src/codec/SkCodecPriv.h @@ -31,6 +31,13 @@ SkSwizzler::GetResult(zeroAlpha, maxAlpha); /* + * If there is a color table, get a pointer to the colors, otherwise return NULL + */ +static const SkPMColor* get_color_ptr(SkColorTable* colorTable) { + return NULL != colorTable ? colorTable->readColors() : NULL; +} + +/* * * Copy the codec color table back to the client when kIndex8 color type is requested * |