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

Issue 1837913003: Add support for serializing/deserializing of SkDrawable (Closed)

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

Description

Add support for serializing/deserializing of SkDrawable BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1837913003

Patch Set 1 : #

Patch Set 2 : Use flattenable #

Patch Set 3 : Improve testing #

Total comments: 1

Patch Set 4 : Rebase #

Patch Set 5 : Add SkDrawable support to SkPicture serialization pathway #

Total comments: 1

Patch Set 6 : Add ability to specify custom flattenable factories on SkReadBuffer #

Total comments: 4

Patch Set 7 : Custom factories without registration #

Patch Set 8 : Rebase #

Patch Set 9 : Rebase #

Patch Set 10 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+569 lines, -63 lines) Patch
M gyp/core.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M include/core/SkDrawable.h View 1 2 3 4 5 6 3 chunks +6 lines, -2 lines 0 comments Download
M include/core/SkFlattenable.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M src/core/SkGlobalInitialization_core.cpp View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -1 line 0 comments Download
M src/core/SkPictureData.h View 1 2 3 4 5 6 7 8 9 4 chunks +10 lines, -0 lines 0 comments Download
M src/core/SkPictureData.cpp View 1 2 3 4 5 6 5 chunks +32 lines, -0 lines 0 comments Download
M src/core/SkPictureFlat.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M src/core/SkPicturePlayback.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +9 lines, -0 lines 0 comments Download
M src/core/SkPictureRecord.h View 1 2 3 4 4 chunks +7 lines, -0 lines 0 comments Download
M src/core/SkPictureRecord.cpp View 1 2 3 4 5 6 7 8 9 3 chunks +29 lines, -0 lines 0 comments Download
M src/core/SkPictureRecorder.cpp View 1 2 3 4 2 chunks +1 line, -60 lines 0 comments Download
A src/core/SkRecordedDrawable.h View 1 2 3 4 5 6 7 1 chunk +43 lines, -0 lines 0 comments Download
A src/core/SkRecordedDrawable.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +102 lines, -0 lines 0 comments Download
A tests/FlattenDrawableTest.cpp View 1 2 3 4 5 6 7 8 1 chunk +321 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 27 (18 generated)
msarett
Here's a first attempt. I'm not really thrilled about using SkTRegistry, but I haven't found ...
4 years, 8 months ago (2016-03-28 21:41:08 UTC) #6
msarett
On second look, we can use SkFlattenable (when I use it correctly)... Thanks to Mike ...
4 years, 8 months ago (2016-03-28 23:31:36 UTC) #9
msarett
This version adds serialize/deserialize entry points to a header file in src/core and improves testing ...
4 years, 8 months ago (2016-03-29 15:29:18 UTC) #10
msarett
Please take a look. This has gotten more complicated, but I think it gives us ...
4 years, 8 months ago (2016-03-30 20:34:11 UTC) #14
djsollen
I'll defer to mtklein on if this is a good direction to go with the ...
4 years, 8 months ago (2016-03-31 12:54:00 UTC) #15
msarett
On 2016/03/31 12:54:00, djsollen wrote: > I'll defer to mtklein on if this is a ...
4 years, 8 months ago (2016-03-31 15:58:29 UTC) #17
reed1
This is a big interesting idea. Lets talk about it in person next Monday or ...
4 years, 8 months ago (2016-03-31 18:42:05 UTC) #19
msarett
"This is a big interesting idea. Lets talk about it in person next Monday or ...
4 years, 8 months ago (2016-04-01 14:11:44 UTC) #20
mtklein
4 years, 8 months ago (2016-04-01 14:14:53 UTC) #21
> But they seem pretty harmless, and can be used to suggest casts or for
validation.

I'm having a hard time thinking of a scenario where we want to deserialize
something but don't know what type we want to cast it to... I'd be happy to
delete.

Powered by Google App Engine
This is Rietveld 408576698