DescriptionCombine 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
Committed: https://skia.googlesource.com/skia/+/501b7344f116ccc821d437d324aa7883d7ce97bf
Patch Set 1 #
Total comments: 11
Patch Set 2 : Respond to comments in patch set 1 #Patch Set 3 : Move sampleSize == 1 check into base class, always call getSampledDimensions #Patch Set 4 : Turn subset decode into full decode #
Total comments: 7
Patch Set 5 : Add more scales to Codec_Dimensions test #Patch Set 6 : Add more sampleSizes to nanobench #Patch Set 7 : Work around missing initializer_list on mac #
Messages
Total messages: 16 (6 generated)
|