| Index: src/codec/SkCodecPriv.h
|
| diff --git a/src/codec/SkCodecPriv.h b/src/codec/SkCodecPriv.h
|
| index 1bad7b3028af46ac2289289980c42f3a601d84f8..73767aa26cbe925755e965c222527e277739bf1e 100644
|
| --- a/src/codec/SkCodecPriv.h
|
| +++ b/src/codec/SkCodecPriv.h
|
| @@ -31,6 +31,8 @@
|
| #define COMPUTE_RESULT_ALPHA \
|
| SkSwizzler::GetResult(zeroAlpha, maxAlpha);
|
|
|
| +inline float get_scale_from_sample_size(uint32_t sampleSize) { return 1.0f / (float) sampleSize; }
|
| +
|
| /*
|
| * returns a scaled dimension based on the original dimension and the sampleSize
|
| * NOTE: we round down here for scaled dimension to match the behavior of SkImageDecoder
|
|
|