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

Issue 2334123003: Add SkColor4f serialization (Closed)

Created:
4 years, 3 months ago by Brian Osman
Modified:
4 years, 2 months ago
Reviewers:
mtklein, reed1
CC:
reviews_skia.org
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Add SkColor4f serialization Adjusted usage in color shader, and will also be using this in gradients, soon. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2334123003 Committed: https://skia.googlesource.com/skia/+/97bbf8211fa35bbb0811d5835cb0eaaf37cc679e

Patch Set 1 #

Patch Set 2 : Just assume (and verify) that SkScalar == float #

Patch Set 3 : Fix stack overflow in test #

Total comments: 2

Patch Set 4 : Switched to memcpy, rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -9 lines) Patch
M include/core/SkWriteBuffer.h View 2 chunks +4 lines, -0 lines 0 comments Download
M src/core/SkColorShader.cpp View 2 chunks +2 lines, -8 lines 0 comments Download
M src/core/SkReadBuffer.h View 2 chunks +2 lines, -0 lines 0 comments Download
M src/core/SkReadBuffer.cpp View 1 2 3 2 chunks +8 lines, -0 lines 0 comments Download
M src/core/SkValidatingReadBuffer.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M src/core/SkValidatingReadBuffer.cpp View 1 2 3 2 chunks +11 lines, -0 lines 0 comments Download
M src/core/SkWriteBuffer.cpp View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download
M tests/SerializationTest.cpp View 1 2 3 3 chunks +21 lines, -1 line 0 comments Download
M tools/debugger/SkDrawCommand.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M tools/debugger/SkDrawCommand.cpp View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download
M tools/debugger/SkJsonWriteBuffer.h View 1 chunk +2 lines, -0 lines 0 comments Download
M tools/debugger/SkJsonWriteBuffer.cpp View 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (16 generated)
Brian Osman
4 years, 3 months ago (2016-09-13 19:52:43 UTC) #3
reed1
I weary a little of all of the one-off specializations in our "virtuals" for read/write ...
4 years, 3 months ago (2016-09-13 23:17:03 UTC) #13
reed1
https://codereview.chromium.org/2334123003/diff/40001/src/core/SkWriteBuffer.cpp File src/core/SkWriteBuffer.cpp (right): https://codereview.chromium.org/2334123003/diff/40001/src/core/SkWriteBuffer.cpp#newcode82 src/core/SkWriteBuffer.cpp:82: void SkBinaryWriteBuffer::writeColor4f(const SkColor4f& color) { I've bee using just ...
4 years, 3 months ago (2016-09-13 23:18:07 UTC) #14
Brian Osman
On 2016/09/13 23:18:07, reed1 wrote: > https://codereview.chromium.org/2334123003/diff/40001/src/core/SkWriteBuffer.cpp > File src/core/SkWriteBuffer.cpp (right): > > https://codereview.chromium.org/2334123003/diff/40001/src/core/SkWriteBuffer.cpp#newcode82 > ...
4 years, 3 months ago (2016-09-14 12:56:43 UTC) #15
Brian Osman
On 2016/09/14 12:56:43, Brian Osman wrote: > On 2016/09/13 23:18:07, reed1 wrote: > > > ...
4 years, 3 months ago (2016-09-14 12:58:46 UTC) #16
mtklein
On 2016/09/14 12:56:43, Brian Osman wrote: > On 2016/09/13 23:18:07, reed1 wrote: > > > ...
4 years, 3 months ago (2016-09-14 12:59:00 UTC) #17
reed1
I don't want to block progress : lgtm
4 years, 3 months ago (2016-09-14 13:46:22 UTC) #18
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/2334123003/60001
4 years, 2 months ago (2016-09-25 19:42:14 UTC) #23
commit-bot: I haz the power
4 years, 2 months ago (2016-09-25 20:16:03 UTC) #25
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://skia.googlesource.com/skia/+/97bbf8211fa35bbb0811d5835cb0eaaf37cc679e

Powered by Google App Engine
This is Rietveld 408576698