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

Issue 176873004: Builder class for SkLayerRasterizer. (Closed)

Created:
6 years, 10 months ago by Dominik Grewe
Modified:
6 years, 9 months ago
Reviewers:
scroggo, mtklein, reed1
CC:
skia-review_googlegroups.com
Base URL:
https://skia.googlesource.com/skia.git@master
Visibility:
Public.

Description

Builder class for SkLayerRasterizer. Provide builder class to make SkLayerRasterizer immutable. We have to keep the addLayer() methods for now because they are used in Chrome. They will be removed once this changed has been rolled into Chrome. An added benefit of this is that this class can only be allocated on the heap. BUG=skia:2187 Committed: http://code.google.com/p/skia/source/detail?r=13590

Patch Set 1 : #

Total comments: 3

Patch Set 2 : SK_SUPPORT_LEGACY_LAYERRASTERIZER_API #

Total comments: 5

Patch Set 3 : Make fLayers const. #

Patch Set 4 : Restore SkLayerRasterizer(SkReadBuffer&) #

Total comments: 2

Patch Set 5 : Make ReadLayers private #

Unified diffs Side-by-side diffs Delta from patch set Stats (+225 lines, -143 lines) Patch
M gm/texteffects.cpp View 3 chunks +40 lines, -40 lines 0 comments Download
M include/core/SkRasterizer.h View 2 chunks +1 line, -2 lines 0 comments Download
M include/effects/SkLayerRasterizer.h View 1 2 3 4 3 chunks +42 lines, -2 lines 0 comments Download
M samplecode/ClockFaceView.cpp View 2 chunks +6 lines, -6 lines 0 comments Download
M samplecode/SampleAll.cpp View 3 chunks +40 lines, -40 lines 0 comments Download
M samplecode/SamplePathEffects.cpp View 2 chunks +4 lines, -3 lines 0 comments Download
M samplecode/SampleSlides.cpp View 3 chunks +40 lines, -40 lines 0 comments Download
M src/effects/SkLayerRasterizer.cpp View 1 2 3 5 chunks +52 lines, -10 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
Dominik Grewe
PTAL, thanks.
6 years, 10 months ago (2014-02-24 11:45:19 UTC) #1
reed1
https://codereview.chromium.org/176873004/diff/30001/include/effects/SkLayerRasterizer.h File include/effects/SkLayerRasterizer.h (right): https://codereview.chromium.org/176873004/diff/30001/include/effects/SkLayerRasterizer.h#newcode51 include/effects/SkLayerRasterizer.h:51: void addLayer(const SkPaint& paint) { Consider adding a build-guard ...
6 years, 10 months ago (2014-02-24 13:35:40 UTC) #2
Dominik Grewe
https://codereview.chromium.org/176873004/diff/30001/include/effects/SkLayerRasterizer.h File include/effects/SkLayerRasterizer.h (right): https://codereview.chromium.org/176873004/diff/30001/include/effects/SkLayerRasterizer.h#newcode51 include/effects/SkLayerRasterizer.h:51: void addLayer(const SkPaint& paint) { On 2014/02/24 13:35:40, reed1 ...
6 years, 10 months ago (2014-02-24 13:54:34 UTC) #3
scroggo
From the description: > A side-effect of this is that this class can only be ...
6 years, 10 months ago (2014-02-24 13:57:51 UTC) #4
reed1
I like the guard. Some style nits. https://codereview.chromium.org/176873004/diff/100001/include/effects/SkLayerRasterizer.h File include/effects/SkLayerRasterizer.h (right): https://codereview.chromium.org/176873004/diff/100001/include/effects/SkLayerRasterizer.h#newcode81 include/effects/SkLayerRasterizer.h:81: SkDeque* fLayers; ...
6 years, 10 months ago (2014-02-24 13:59:48 UTC) #5
scroggo
https://codereview.chromium.org/176873004/diff/100001/include/effects/SkLayerRasterizer.h File include/effects/SkLayerRasterizer.h (right): https://codereview.chromium.org/176873004/diff/100001/include/effects/SkLayerRasterizer.h#newcode81 include/effects/SkLayerRasterizer.h:81: SkDeque* fLayers; In the interest of immutability, should these ...
6 years, 10 months ago (2014-02-24 14:00:21 UTC) #6
Dominik Grewe
I suppose side-effect sounds a bit negative :) I've updated the description. https://codereview.chromium.org/176873004/diff/100001/include/effects/SkLayerRasterizer.h File include/effects/SkLayerRasterizer.h ...
6 years, 10 months ago (2014-02-24 14:44:41 UTC) #7
scroggo
On 2014/02/24 14:44:41, Dominik Grewe wrote: > I suppose side-effect sounds a bit negative :) ...
6 years, 10 months ago (2014-02-24 14:48:09 UTC) #8
reed1
Not sure you have to remove the constructor(ReadBuffer&) -- without this we can't subclass this ...
6 years, 10 months ago (2014-02-24 14:54:57 UTC) #9
Dominik Grewe
On 2014/02/24 14:54:57, reed1 wrote: > Not sure you have to remove the constructor(ReadBuffer&) -- ...
6 years, 10 months ago (2014-02-24 14:57:31 UTC) #10
reed1
On 2014/02/24 14:57:31, Dominik Grewe wrote: > On 2014/02/24 14:54:57, reed1 wrote: > > Not ...
6 years, 10 months ago (2014-02-24 14:58:57 UTC) #11
Dominik Grewe
On 2014/02/24 14:58:57, reed1 wrote: > On 2014/02/24 14:57:31, Dominik Grewe wrote: > > On ...
6 years, 10 months ago (2014-02-24 15:11:16 UTC) #12
reed1
good catch on drawlooper lgtm w/ request to make ReadLayers private (if possible) https://codereview.chromium.org/176873004/diff/330001/include/effects/SkLayerRasterizer.h File ...
6 years, 10 months ago (2014-02-24 15:22:21 UTC) #13
Dominik Grewe
https://codereview.chromium.org/176873004/diff/330001/include/effects/SkLayerRasterizer.h File include/effects/SkLayerRasterizer.h (right): https://codereview.chromium.org/176873004/diff/330001/include/effects/SkLayerRasterizer.h#newcode75 include/effects/SkLayerRasterizer.h:75: static SkDeque* ReadLayers(SkReadBuffer& buffer); On 2014/02/24 15:22:22, reed1 wrote: ...
6 years, 10 months ago (2014-02-24 15:48:22 UTC) #14
scroggo
On 2014/02/24 15:48:22, Dominik Grewe wrote: > https://codereview.chromium.org/176873004/diff/330001/include/effects/SkLayerRasterizer.h > File include/effects/SkLayerRasterizer.h (right): > > https://codereview.chromium.org/176873004/diff/330001/include/effects/SkLayerRasterizer.h#newcode75 ...
6 years, 10 months ago (2014-02-24 15:54:09 UTC) #15
Dominik Grewe
The CQ bit was checked by dominikg@chromium.org
6 years, 10 months ago (2014-02-25 11:05:55 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/dominikg@chromium.org/176873004/370001
6 years, 10 months ago (2014-02-25 11:06:00 UTC) #17
Dominik Grewe
The CQ bit was unchecked by dominikg@chromium.org
6 years, 10 months ago (2014-02-25 11:07:01 UTC) #18
Dominik Grewe
The CQ bit was checked by dominikg@chromium.org
6 years, 9 months ago (2014-02-26 13:27:06 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/dominikg@chromium.org/176873004/370001
6 years, 9 months ago (2014-02-26 13:27:18 UTC) #20
commit-bot: I haz the power
6 years, 9 months ago (2014-02-26 13:27:41 UTC) #21
Message was sent while issue was closed.
Change committed as 13590

Powered by Google App Engine
This is Rietveld 408576698