commit | 501b7344f116ccc821d437d324aa7883d7ce97bf | [log] [tgz] |
---|---|---|
author | scroggo <scroggo@chromium.org> | Tue Nov 03 07:55:11 2015 -0800 |
committer | Commit bot <commit-bot@chromium.org> | Tue Nov 03 07:55:12 2015 -0800 |
tree | 6be104babfba2a62fc82d4645bc85bf9a7d948fb | |
parent | f7de08a52b5287cb16b2e89a8e3691676a4dbe5f [diff] |
Combine native sampling with sampling In SkSampledCodec, allow the native codec to do its scaling first, then sample on top of that. Since the only codec which can do native scaling is JPEG, and we know what it can do, hard-code for JPEG. Check to see if the sampleSize is something JPEG supports, or a multiple of something it supports. If so, use JPEG directly or combine them. BUG=skia:4320 Review URL: https://codereview.chromium.org/1417583009