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

Issue 1199473002: change old picture serialization to really handle images (Closed)

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

Description

change old picture serialization to really handle images BUG=skia:3965 Committed: https://skia.googlesource.com/skia/+/871872f3f247f6b699617f6d9ef50ef5da6fbe74

Patch Set 1 #

Patch Set 2 : #

Total comments: 1

Patch Set 3 : #

Patch Set 4 : add test for encode #

Patch Set 5 : add test for subset (and fix bugs) #

Patch Set 6 : oops, add the test #

Patch Set 7 : #

Patch Set 8 : disable opaque check, and filed skbug.com/3965 #

Patch Set 9 : #

Total comments: 20

Patch Set 10 : address scroggo comments #

Total comments: 2

Patch Set 11 : fix check in new_array function #

Unified diffs Side-by-side diffs Delta from patch set Stats (+458 lines, -102 lines) Patch
M gm/cgm.c View 1 1 chunk +1 line, -1 line 0 comments Download
M gm/factory.cpp View 1 chunk +4 lines, -4 lines 0 comments Download
M gm/image.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M include/c/sk_image.h View 1 1 chunk +1 line, -1 line 0 comments Download
M include/c/sk_types.h View 1 1 chunk +7 lines, -0 lines 0 comments Download
M include/core/SkImage.h View 1 2 3 4 5 6 7 8 9 4 chunks +39 lines, -4 lines 0 comments Download
M include/core/SkPicture.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M include/core/SkWriteBuffer.h View 2 chunks +2 lines, -0 lines 0 comments Download
M src/c/sk_surface.cpp View 1 1 chunk +3 lines, -2 lines 0 comments Download
M src/core/SkBitmap.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -1 line 0 comments Download
M src/core/SkImageGeneratorPriv.h View 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkPictureData.h View 3 chunks +8 lines, -0 lines 0 comments Download
M src/core/SkPictureData.cpp View 1 2 3 4 5 6 7 8 9 10 7 chunks +97 lines, -51 lines 0 comments Download
M src/core/SkPictureFlat.h View 1 chunk +3 lines, -1 line 0 comments Download
M src/core/SkPicturePlayback.cpp View 1 chunk +13 lines, -0 lines 0 comments Download
M src/core/SkPictureRecord.h View 3 chunks +6 lines, -0 lines 0 comments Download
M src/core/SkPictureRecord.cpp View 3 chunks +35 lines, -7 lines 0 comments Download
M src/core/SkPixelRef.cpp View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M src/core/SkReadBuffer.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/core/SkWriteBuffer.cpp View 1 2 1 chunk +28 lines, -0 lines 0 comments Download
M src/image/SkImage.cpp View 1 2 3 4 5 6 3 chunks +29 lines, -5 lines 0 comments Download
M src/image/SkImage_Base.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M src/image/SkImage_Raster.cpp View 1 2 4 chunks +16 lines, -3 lines 0 comments Download
M src/lazy/SkDiscardablePixelRef.h View 2 chunks +2 lines, -2 lines 0 comments Download
M src/lazy/SkDiscardablePixelRef.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +28 lines, -10 lines 0 comments Download
M src/ports/SkImageDecoder_CG.cpp View 1 2 3 1 chunk +12 lines, -1 line 0 comments Download
M src/utils/SkLua.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M tests/CachedDecodingPixelRefTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M tests/DrawBitmapRectTest.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
A tests/ImageTest.cpp View 1 2 3 4 5 6 7 1 chunk +105 lines, -0 lines 0 comments Download
M tests/SurfaceTest.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M tools/LazyDecodeBitmap.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 33 (17 generated)
reed1
5 years, 6 months ago (2015-06-19 16:09:08 UTC) #2
robertphillips
lgtm but I would prefer others to weigh in https://codereview.chromium.org/1199473002/diff/20001/gm/factory.cpp File gm/factory.cpp (right): https://codereview.chromium.org/1199473002/diff/20001/gm/factory.cpp#newcode63 gm/factory.cpp:63: ...
5 years, 6 months ago (2015-06-19 17:24:14 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1199473002/70001
5 years, 6 months ago (2015-06-19 20:20:51 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1199473002/110001
5 years, 6 months ago (2015-06-19 20:26:07 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1199473002/130001
5 years, 6 months ago (2015-06-19 20:52:59 UTC) #14
scroggo
lgtm https://codereview.chromium.org/1199473002/diff/150001/include/core/SkImage.h File include/core/SkImage.h (right): https://codereview.chromium.org/1199473002/diff/150001/include/core/SkImage.h#newcode167 include/core/SkImage.h:167: * the true, and if pixmap is not ...
5 years, 6 months ago (2015-06-22 17:40:01 UTC) #16
reed1
https://codereview.chromium.org/1199473002/diff/150001/include/core/SkImage.h File include/core/SkImage.h (right): https://codereview.chromium.org/1199473002/diff/150001/include/core/SkImage.h#newcode167 include/core/SkImage.h:167: * the true, and if pixmap is not NULL, ...
5 years, 6 months ago (2015-06-22 18:41:51 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1199473002/170001
5 years, 6 months ago (2015-06-22 18:42:24 UTC) #20
scroggo
https://codereview.chromium.org/1199473002/diff/170001/src/core/SkPictureData.cpp File src/core/SkPictureData.cpp (right): https://codereview.chromium.org/1199473002/diff/170001/src/core/SkPictureData.cpp#newcode458 src/core/SkPictureData.cpp:458: if (!buffer.validate((0 == inCount) && (NULL == array))) { ...
5 years, 6 months ago (2015-06-22 18:48:05 UTC) #22
reed1
https://codereview.chromium.org/1199473002/diff/170001/src/core/SkPictureData.cpp File src/core/SkPictureData.cpp (right): https://codereview.chromium.org/1199473002/diff/170001/src/core/SkPictureData.cpp#newcode458 src/core/SkPictureData.cpp:458: if (!buffer.validate((0 == inCount) && (NULL == array))) { ...
5 years, 6 months ago (2015-06-22 19:19:35 UTC) #23
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1199473002/190001
5 years, 6 months ago (2015-06-22 19:33:41 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1199473002/190001
5 years, 6 months ago (2015-06-22 19:46:31 UTC) #29
commit-bot: I haz the power
Committed patchset #11 (id:190001) as https://skia.googlesource.com/skia/+/871872f3f247f6b699617f6d9ef50ef5da6fbe74
5 years, 6 months ago (2015-06-22 19:48:30 UTC) #30
mtklein
Hey, this is weird. If you have the SKP sp_desk_carsvg.skp laying around, try running it ...
5 years, 6 months ago (2015-06-22 21:12:33 UTC) #31
mtklein
Note to self / others: all SKPs are on google storage somewhere. I'll find the ...
5 years, 6 months ago (2015-06-22 21:17:36 UTC) #32
mtklein
5 years, 6 months ago (2015-06-22 21:20:54 UTC) #33
Message was sent while issue was closed.
herb sez maybe SKP_VERSION = 382

Powered by Google App Engine
This is Rietveld 408576698