Chromium Code Reviews| Index: src/codec/SkCodecPriv.h |
| diff --git a/src/codec/SkCodecPriv.h b/src/codec/SkCodecPriv.h |
| index 90b16323a76969dc691f00844bf00963a162fbf2..2b0226f88d930619dc83d0dee0bd800e9097ad8f 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 |
|
scroggo
2015/08/05 14:36:20
Otherwise return NULL. (/nullptr. Apparently we ar
msarett
2015/08/05 15:29:42
Updating the comment. I share your mixed feelings
|
| + */ |
| +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 |
| * |