Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(472)

Issue 1385703002: SkScaledCodec should implement onRewind() (Closed)

Created:
5 years, 2 months ago by msarett
Modified:
5 years, 2 months ago
Reviewers:
scroggo, djsollen, reed1
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

SkScaledCodec should implement onRewind() This is a bug fix. I'm also adding a test. BUG=skia: Committed: https://skia.googlesource.com/skia/+/cc7f305c696144455ece3e55082d28f0316bbdc1

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -33 lines) Patch
M include/codec/SkScaledCodec.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M src/codec/SkScaledCodec.cpp View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M tests/CodexTest.cpp View 1 5 chunks +56 lines, -33 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 19 (7 generated)
msarett
Thoughts on making onRewind() a pure virtual? Only ICO and WEBP use the default implementation ...
5 years, 2 months ago (2015-10-02 20:27:29 UTC) #2
scroggo
lgtm On 2015/10/02 20:27:29, msarett wrote: > Thoughts on making onRewind() a pure virtual? > ...
5 years, 2 months ago (2015-10-02 20:56:06 UTC) #3
msarett
"Is the goal to ensure that any new classes we write override it?" Yes, I ...
5 years, 2 months ago (2015-10-05 14:26:51 UTC) #4
scroggo
lgtm
5 years, 2 months ago (2015-10-05 14:42:49 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1385703002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1385703002/20001
5 years, 2 months ago (2015-10-05 14:44:38 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: skia_presubmit-Trybot on client.skia.fyi (JOB_FAILED, http://build.chromium.org/p/client.skia.fyi/builders/skia_presubmit-Trybot/builds/3025)
5 years, 2 months ago (2015-10-05 14:45:39 UTC) #9
msarett
Derek, can you take a look at the API on this?
5 years, 2 months ago (2015-10-05 14:50:23 UTC) #11
msarett
5 years, 2 months ago (2015-10-05 21:04:50 UTC) #13
reed1
api lgtm
5 years, 2 months ago (2015-10-05 21:10:04 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1385703002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1385703002/40001
5 years, 2 months ago (2015-10-05 21:11:16 UTC) #17
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://skia.googlesource.com/skia/+/cc7f305c696144455ece3e55082d28f0316bbdc1
5 years, 2 months ago (2015-10-05 21:20:30 UTC) #18
scroggo
5 years, 2 months ago (2015-10-20 17:49:22 UTC) #19
Message was sent while issue was closed.
On 2015/10/05 21:20:30, commit-bot: I haz the power wrote:
> Committed patchset #3 (id:40001) as
> https://skia.googlesource.com/skia/+/cc7f305c696144455ece3e55082d28f0316bbdc1

I don't think this actually fixes anything.

SkScaledCodec does not have a stream, so we early exit out of rewindIfNeeded
without ever calling onRewind.

I tried removing the override (see crrev.com/1411203005), and the tests added in
this CL still pass.

Powered by Google App Engine
This is Rietveld 408576698