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

Issue 2486523002: Change code to not store Sk4* in data structures. (Closed)

Created:
4 years, 1 month ago by herb_g
Modified:
4 years, 1 month ago
Reviewers:
mtklein, mtklein_C
CC:
reviews_skia.org
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Change code to not store Sk4* in data structures. This allows the SkLinearBitmapPipeline system to avoid problems with alignment. This allows it to naturally fit with the rest of the system, and simplifies surrounding code. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2486523002 Committed: https://skia.googlesource.com/skia/+/93b0650084285400102f2d65d5c4411185111085

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address comments #

Total comments: 2

Patch Set 3 : Address comments 2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -90 lines) Patch
M src/core/SkLinearBitmapPipeline.h View 1 4 chunks +13 lines, -16 lines 0 comments Download
M src/core/SkLinearBitmapPipeline.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkLinearBitmapPipeline_matrix.h View 4 chunks +12 lines, -12 lines 0 comments Download
M src/core/SkLinearBitmapPipeline_sample.h View 1 2 1 chunk +6 lines, -4 lines 0 comments Download
M src/core/SkLinearBitmapPipeline_tile.h View 9 chunks +47 lines, -57 lines 0 comments Download

Messages

Total messages: 25 (14 generated)
herb_g
4 years, 1 month ago (2016-11-07 21:39:14 UTC) #6
mtklein_C
https://codereview.chromium.org/2486523002/diff/1/src/core/SkLinearBitmapPipeline.h File src/core/SkLinearBitmapPipeline.h (right): https://codereview.chromium.org/2486523002/diff/1/src/core/SkLinearBitmapPipeline.h#newcode168 src/core/SkLinearBitmapPipeline.h:168: alignas(SkLinearBitmapPipeline) mutable char fPipelineStorage[sizeof(SkLinearBitmapPipeline)]; Does this really need to ...
4 years, 1 month ago (2016-11-07 21:48:15 UTC) #8
herb_g
Address comments
4 years, 1 month ago (2016-11-08 14:58:35 UTC) #11
herb_g
PTRL https://codereview.chromium.org/2486523002/diff/1/src/core/SkLinearBitmapPipeline.h File src/core/SkLinearBitmapPipeline.h (right): https://codereview.chromium.org/2486523002/diff/1/src/core/SkLinearBitmapPipeline.h#newcode168 src/core/SkLinearBitmapPipeline.h:168: alignas(SkLinearBitmapPipeline) mutable char fPipelineStorage[sizeof(SkLinearBitmapPipeline)]; On 2016/11/07 21:48:15, mtklein_C ...
4 years, 1 month ago (2016-11-08 14:59:34 UTC) #12
mtklein_C
On 2016/11/08 at 14:59:34, herb wrote: > PTRL What's this mean?
4 years, 1 month ago (2016-11-08 15:33:48 UTC) #16
mtklein_C
lgtm https://codereview.chromium.org/2486523002/diff/20001/src/core/SkLinearBitmapPipeline_sample.h File src/core/SkLinearBitmapPipeline_sample.h (right): https://codereview.chromium.org/2486523002/diff/20001/src/core/SkLinearBitmapPipeline_sample.h#newcode69 src/core/SkLinearBitmapPipeline_sample.h:69: set_alpha(Sk4f_from_SkColor(tintColor), 1.0f).store(&fTintColor); I was thinking something more like ...
4 years, 1 month ago (2016-11-08 15:38:16 UTC) #17
herb_g
Address comments 2
4 years, 1 month ago (2016-11-08 15:46:40 UTC) #18
herb_g
On 2016/11/08 15:33:48, mtklein_C wrote: > On 2016/11/08 at 14:59:34, herb wrote: > > PTRL ...
4 years, 1 month ago (2016-11-08 15:47:48 UTC) #19
herb_g
https://codereview.chromium.org/2486523002/diff/20001/src/core/SkLinearBitmapPipeline_sample.h File src/core/SkLinearBitmapPipeline_sample.h (right): https://codereview.chromium.org/2486523002/diff/20001/src/core/SkLinearBitmapPipeline_sample.h#newcode69 src/core/SkLinearBitmapPipeline_sample.h:69: set_alpha(Sk4f_from_SkColor(tintColor), 1.0f).store(&fTintColor); On 2016/11/08 15:38:16, mtklein_C wrote: > I ...
4 years, 1 month ago (2016-11-08 15:48:24 UTC) #20
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/2486523002/40001
4 years, 1 month ago (2016-11-08 15:49:11 UTC) #23
commit-bot: I haz the power
4 years, 1 month ago (2016-11-08 16:19:10 UTC) #25
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://skia.googlesource.com/skia/+/93b0650084285400102f2d65d5c4411185111085

Powered by Google App Engine
This is Rietveld 408576698