aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/batches
diff options
context:
space:
mode:
authorGravatar scroggo <scroggo@chromium.org>2016-10-17 14:32:41 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-10-17 14:32:41 -0700
commit4f2a88cdf0e72d6cdf8d870c5130f45c70c48e09 (patch)
treed2c573e4944d07d7fee5479336821164d0562ce5 /src/gpu/batches
parentfa1a45ee1317ce603be78e96cdeb6d5ea1b91b30 (diff)
Incremental decode: only use subset for subsetting
In the initial patch, we modified the subset passed to incremental decoding to account for sampling in Y. This allowed SkSampledCodec to use a tighter bounds. But it also means that the implementation cannot distinguish between lines that are excluded due to subsetting and those excluded at the beginning and end due to sampling. This becomes problematic in GIF (crrev.com/2045293002), which may need to fill, requiring it to reconstruct the actual destination. In truth, SkGifCodec does not need to support subsets, but cannot distinguish between the tighter bounds and a true subset. Fix this by passing the scaled subset to incremental decode, without using the tighter bounds. Make SkSampler::rowNeeded take the starting coordinate into account. In SkPngCodec, compute the number of rows needed in the output, and use that as a signal to stop. GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2420843003 Review-Url: https://codereview.chromium.org/2420843003
Diffstat (limited to 'src/gpu/batches')
0 files changed, 0 insertions, 0 deletions