Chromium Code Reviews| Index: src/codec/SkCodecPriv.h |
| diff --git a/src/codec/SkCodecPriv.h b/src/codec/SkCodecPriv.h |
| index 0442625dd20b858ee7e9cd84877f3417124fcbd1..2f1b3c1c0bcf4832308de2ac557c8effab518cdc 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; } |
|
scroggo
2015/10/08 20:16:07
This change (moving this function here, removing S
msarett
2015/10/09 20:03:44
I'll remove this from the change.
Right now, get_
|
| + |
| /* |
| * 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 |