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

Issue 2187613002: Deserialize pictures with custom image-deserializer (Closed)

Created:
4 years, 4 months ago by reed1
Modified:
4 years, 4 months ago
Reviewers:
msarett, f(malita), mtklein
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Deserialize pictures with custom image-deserializer BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2187613002 Committed: https://skia.googlesource.com/skia/+/a9ca05ca5e604b9ee18e9cce19b059085ca0e22c

Patch Set 1 #

Patch Set 2 : rebase #

Total comments: 4

Patch Set 3 : read old bitmaps as images #

Patch Set 4 : rebase #

Patch Set 5 : update SkBitmapProcShader_CreateProc #

Patch Set 6 : move new class to its own header #

Patch Set 7 : use std::nullptr_t trick #

Patch Set 8 : fix build #

Total comments: 6

Patch Set 9 : change signature to either data or memory #

Patch Set 10 : always have a deserializer #

Patch Set 11 : move nullptr_t alias behind guard #

Total comments: 3

Patch Set 12 : fix legacy case, remove null-check #

Unified diffs Side-by-side diffs Delta from patch set Stats (+210 lines, -177 lines) Patch
A include/core/SkImageDeserializer.h View 1 2 3 4 5 6 7 8 1 chunk +36 lines, -0 lines 0 comments Download
M include/core/SkPicture.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +12 lines, -7 lines 0 comments Download
M src/core/SkPicture.cpp View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +32 lines, -11 lines 0 comments Download
M src/core/SkPictureData.h View 4 chunks +7 lines, -6 lines 0 comments Download
M src/core/SkPictureData.cpp View 1 2 3 11 chunks +18 lines, -24 lines 0 comments Download
M src/core/SkPicturePlayback.cpp View 1 2 3 3 chunks +13 lines, -14 lines 0 comments Download
M src/core/SkPictureRecord.h View 1 2 3 2 chunks +13 lines, -15 lines 0 comments Download
M src/core/SkReadBuffer.h View 1 2 3 4 5 6 7 8 9 4 chunks +8 lines, -14 lines 0 comments Download
M src/core/SkReadBuffer.cpp View 1 2 3 4 5 6 7 8 9 10 11 11 chunks +51 lines, -71 lines 0 comments Download
M src/image/SkImage.cpp View 1 2 3 4 5 6 7 8 1 chunk +11 lines, -0 lines 0 comments Download
M src/image/SkImageShader.cpp View 1 2 3 4 2 chunks +4 lines, -8 lines 0 comments Download
M src/utils/SkBitmapSourceDeserializer.cpp View 1 chunk +4 lines, -6 lines 0 comments Download
M tests/PictureTest.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 44 (29 generated)
reed1
Incomplete, but worth looking at
4 years, 4 months ago (2016-07-26 20:59:56 UTC) #3
f(malita)
https://codereview.chromium.org/2187613002/diff/20001/src/core/SkBitmapProcShader.cpp File src/core/SkBitmapProcShader.cpp (right): https://codereview.chromium.org/2187613002/diff/20001/src/core/SkBitmapProcShader.cpp#newcode287 src/core/SkBitmapProcShader.cpp:287: sk_sp<SkImage> image = buffer.readBitmapAsImage(); Is nullptr an error condition, ...
4 years, 4 months ago (2016-07-26 21:29:43 UTC) #5
reed1
4 years, 4 months ago (2016-07-26 21:55:36 UTC) #8
reed1
-- still think I can remove writeBitmap entirely .. https://codereview.chromium.org/2187613002/diff/20001/src/core/SkBitmapProcShader.cpp File src/core/SkBitmapProcShader.cpp (right): https://codereview.chromium.org/2187613002/diff/20001/src/core/SkBitmapProcShader.cpp#newcode287 src/core/SkBitmapProcShader.cpp:287: ...
4 years, 4 months ago (2016-07-29 13:12:04 UTC) #9
reed1
ptal
4 years, 4 months ago (2016-08-10 19:05:40 UTC) #20
mtklein
https://codereview.chromium.org/2187613002/diff/140001/include/core/SkImageDeserializer.h File include/core/SkImageDeserializer.h (right): https://codereview.chromium.org/2187613002/diff/140001/include/core/SkImageDeserializer.h#newcode26 include/core/SkImageDeserializer.h:26: virtual sk_sp<SkImage> deserialize(sk_sp<SkData>, const SkIRect* subset); const sk_sp<SkData>& ? ...
4 years, 4 months ago (2016-08-10 21:48:32 UTC) #27
reed1
https://codereview.chromium.org/2187613002/diff/140001/include/core/SkImageDeserializer.h File include/core/SkImageDeserializer.h (right): https://codereview.chromium.org/2187613002/diff/140001/include/core/SkImageDeserializer.h#newcode26 include/core/SkImageDeserializer.h:26: virtual sk_sp<SkImage> deserialize(sk_sp<SkData>, const SkIRect* subset); On 2016/08/10 21:48:31, ...
4 years, 4 months ago (2016-08-10 23:43:19 UTC) #28
reed1
ptal
4 years, 4 months ago (2016-08-11 00:32:52 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2187613002/180001
4 years, 4 months ago (2016-08-11 00:33:02 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2187613002/200001
4 years, 4 months ago (2016-08-11 00:40:11 UTC) #35
mtklein
lgtm https://codereview.chromium.org/2187613002/diff/200001/src/core/SkReadBuffer.cpp File src/core/SkReadBuffer.cpp (right): https://codereview.chromium.org/2187613002/diff/200001/src/core/SkReadBuffer.cpp#newcode106 src/core/SkReadBuffer.cpp:106: fImageDeserializer = deserializer ? deserializer : &gDefaultImageDeserializer; Don't ...
4 years, 4 months ago (2016-08-11 01:02:55 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/249300)
4 years, 4 months ago (2016-08-11 01:50:49 UTC) #38
reed1
https://codereview.chromium.org/2187613002/diff/200001/src/core/SkReadBuffer.cpp File src/core/SkReadBuffer.cpp (right): https://codereview.chromium.org/2187613002/diff/200001/src/core/SkReadBuffer.cpp#newcode297 src/core/SkReadBuffer.cpp:297: if (fImageDeserializer) { On 2016/08/11 01:02:55, mtklein wrote: > ...
4 years, 4 months ago (2016-08-11 10:34:25 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2187613002/220001
4 years, 4 months ago (2016-08-11 10:34:39 UTC) #42
commit-bot: I haz the power
4 years, 4 months ago (2016-08-11 10:55:21 UTC) #44
Message was sent while issue was closed.
Committed patchset #12 (id:220001) as
https://skia.googlesource.com/skia/+/a9ca05ca5e604b9ee18e9cce19b059085ca0e22c

Powered by Google App Engine
This is Rietveld 408576698