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

Issue 2085653003: Enable flattening and unflattening of SkColorSpace (Closed)

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

Description

Enable flattening and unflattening of SkColorSpace BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2085653003 Committed: https://skia.googlesource.com/skia/+/111a42d9cebf0bb8844c5d24f67fac57cc619d29

Patch Set 1 #

Total comments: 3

Patch Set 2 : Serialize without SkFlattenable #

Total comments: 6

Patch Set 3 : Response to comments #

Total comments: 2

Patch Set 4 : Add ColorSpaceHeader #

Total comments: 8

Patch Set 5 : Save 12 floats instead of 16 #

Total comments: 6

Patch Set 6 : Return null on error #

Total comments: 2

Patch Set 7 : Rebase #

Patch Set 8 : Fix debug build #

Patch Set 9 : Fix unit tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+256 lines, -88 lines) Patch
M include/core/SkColorSpace.h View 1 2 3 4 5 6 2 chunks +10 lines, -2 lines 0 comments Download
M include/core/SkMatrix44.h View 1 2 3 4 5 2 chunks +11 lines, -0 lines 0 comments Download
M src/core/SkColorSpace.cpp View 1 2 3 4 5 6 7 9 chunks +162 lines, -13 lines 0 comments Download
M src/core/SkColorSpace_Base.h View 1 chunk +2 lines, -4 lines 0 comments Download
M src/core/SkImageInfo.cpp View 1 2 3 4 5 2 chunks +13 lines, -66 lines 0 comments Download
M src/core/SkMatrix44.cpp View 1 2 3 4 5 6 7 8 2 chunks +19 lines, -0 lines 0 comments Download
M tests/ColorSpaceTest.cpp View 1 2 3 4 5 6 7 8 1 chunk +38 lines, -0 lines 0 comments Download
M tests/ImageIsOpaqueTest.cpp View 1 2 3 4 5 6 1 chunk +1 line, -3 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 54 (22 generated)
msarett
https://codereview.chromium.org/2085653003/diff/1/include/core/SkColorSpace.h File include/core/SkColorSpace.h (right): https://codereview.chromium.org/2085653003/diff/1/include/core/SkColorSpace.h#newcode14 include/core/SkColorSpace.h:14: class SK_API SkColorSpace : public SkFlattenable { We can ...
4 years, 6 months ago (2016-06-20 22:41:59 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/2085653003/1
4 years, 6 months ago (2016-06-20 22:43:03 UTC) #5
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-20 23:02:36 UTC) #7
reed1
My first thought was to not be a flattenable either, for simplicity and since we ...
4 years, 6 months ago (2016-06-21 01:40:30 UTC) #8
msarett
On 2016/06/21 01:40:30, reed1 wrote: > My first thought was to not be a flattenable ...
4 years, 6 months ago (2016-06-21 13:22:24 UTC) #10
Brian Osman
If the caller needs to know about SkData anyway (for serialize), is it too much ...
4 years, 6 months ago (2016-06-21 13:38:19 UTC) #11
reed1
I'm fine if we also offer a Deserialize that takes SkData. Requiring it seems odd, ...
4 years, 6 months ago (2016-06-21 14:18:07 UTC) #12
reed1
/self wonders if we should offer SkImageInfo.serialize as well, just for fun :) https://codereview.chromium.org/2085653003/diff/40001/include/core/SkColorSpace.h File ...
4 years, 6 months ago (2016-06-21 14:19:19 UTC) #13
msarett
"If the caller needs to know about SkData anyway (for serialize), is it too much ...
4 years, 6 months ago (2016-06-21 14:41:56 UTC) #14
Brian Osman
lgtm
4 years, 6 months ago (2016-06-21 14:43:46 UTC) #15
reed1
https://codereview.chromium.org/2085653003/diff/60001/src/core/SkColorSpace.cpp File src/core/SkColorSpace.cpp (right): https://codereview.chromium.org/2085653003/diff/60001/src/core/SkColorSpace.cpp#newcode1211 src/core/SkColorSpace.cpp:1211: /////////////////////////////////////////////////////////////////////////////////////////////////// Some thoughts. I think we should be more ...
4 years, 6 months ago (2016-06-21 14:58:34 UTC) #16
msarett
PTAL https://codereview.chromium.org/2085653003/diff/60001/src/core/SkColorSpace.cpp File src/core/SkColorSpace.cpp (right): https://codereview.chromium.org/2085653003/diff/60001/src/core/SkColorSpace.cpp#newcode1211 src/core/SkColorSpace.cpp:1211: /////////////////////////////////////////////////////////////////////////////////////////////////// On 2016/06/21 14:58:34, reed1 wrote: > Some ...
4 years, 6 months ago (2016-06-21 16:41:57 UTC) #17
reed1
I know I'm being picky, but it really sucks if we get the format wrong ...
4 years, 6 months ago (2016-06-21 18:21:23 UTC) #18
msarett
> I know I'm being picky, but it really sucks if we get the format ...
4 years, 6 months ago (2016-06-21 20:28:13 UTC) #19
reed1
Looking good. Possibly we'll want create SkColorSpace_serialize.cpp or something if this gets much bigger, just ...
4 years, 6 months ago (2016-06-21 20:45:01 UTC) #20
msarett
> Two follow-on thoughts: > 1. Sure seems like we should get ready to fuzz ...
4 years, 6 months ago (2016-06-21 21:47:45 UTC) #22
msarett
https://codereview.chromium.org/2085653003/diff/120001/include/core/SkColorSpace.h File include/core/SkColorSpace.h (right): https://codereview.chromium.org/2085653003/diff/120001/include/core/SkColorSpace.h#newcode81 include/core/SkColorSpace.h:81: * Returns nullptr on failure. Fails when we fallback ...
4 years, 6 months ago (2016-06-21 21:48:54 UTC) #23
reed1
lgtm
4 years, 6 months ago (2016-06-21 23:57:34 UTC) #24
reed1
Thinking about "serializing" SkImageInfo as well (after looking at the chrome code), we may end ...
4 years, 6 months ago (2016-06-22 00:00:12 UTC) #25
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2085653003/120001
4 years, 6 months ago (2016-06-22 12:22:23 UTC) #27
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Test-Ubuntu-GCC-ShuttleA-GPU-GTX660-x86_64-Release-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-ShuttleA-GPU-GTX660-x86_64-Release-Trybot/builds/4278) skia_presubmit-Trybot on ...
4 years, 6 months ago (2016-06-22 12:23:55 UTC) #29
kjlubick
lgtm https://codereview.chromium.org/2085653003/diff/120001/include/core/SkColorSpace.h File include/core/SkColorSpace.h (right): https://codereview.chromium.org/2085653003/diff/120001/include/core/SkColorSpace.h#newcode86 include/core/SkColorSpace.h:86: static sk_sp<SkColorSpace> Deserialize(const void* data, size_t length); That's ...
4 years, 6 months ago (2016-06-22 12:30:58 UTC) #30
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2085653003/140001
4 years, 6 months ago (2016-06-22 12:43:42 UTC) #32
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot/builds/9216) Build-Ubuntu-GCC-Arm7-Debug-Android-Trybot on ...
4 years, 6 months ago (2016-06-22 12:45:53 UTC) #34
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2085653003/160001
4 years, 6 months ago (2016-06-22 12:51:02 UTC) #36
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot/builds/9192)
4 years, 6 months ago (2016-06-22 13:01:08 UTC) #38
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2085653003/180001
4 years, 6 months ago (2016-06-22 13:04:16 UTC) #40
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2085653003/200001
4 years, 6 months ago (2016-06-22 13:24:21 UTC) #44
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2085653003/220001
4 years, 6 months ago (2016-06-22 13:39:42 UTC) #46
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-22 14:03:16 UTC) #48
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2085653003/200001
4 years, 6 months ago (2016-06-22 15:17:37 UTC) #52
commit-bot: I haz the power
4 years, 6 months ago (2016-06-22 15:18:58 UTC) #54
Message was sent while issue was closed.
Committed patchset #9 (id:200001) as
https://skia.googlesource.com/skia/+/111a42d9cebf0bb8844c5d24f67fac57cc619d29

Powered by Google App Engine
This is Rietveld 408576698