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

Issue 232913003: Make sure SkDrawLooper objects can only be allocated on the heap. (Closed)

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

Description

Make sure SkDrawLooper objects can only be allocated on the heap. Make constructors of SkLayerDrawLooper and SkBlurDrawLooper non-public. Remove addLayer* methods from SkLayerDrawLooper. SkLayerDrawLooper::Builder is used to create new objects. Provide factory method for creating SkBlurDrawLooper. BUG=2141 Committed: http://code.google.com/p/skia/source/detail?r=14200

Patch Set 1 : #

Total comments: 6

Patch Set 2 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -142 lines) Patch
M bench/BlurRoundRectBench.cpp View 3 chunks +4 lines, -4 lines 0 comments Download
M bench/RectoriBench.cpp View 3 chunks +4 lines, -4 lines 0 comments Download
M gm/blurroundrect.cpp View 3 chunks +4 lines, -4 lines 0 comments Download
M gm/circles.cpp View 1 chunk +6 lines, -6 lines 0 comments Download
M gm/drawlooper.cpp View 3 chunks +3 lines, -2 lines 0 comments Download
M gm/megalooper.cpp View 5 chunks +6 lines, -6 lines 0 comments Download
M gm/rects.cpp View 1 chunk +6 lines, -6 lines 0 comments Download
M gm/shadows.cpp View 1 chunk +28 lines, -28 lines 0 comments Download
M gm/tilemodes_scaled.cpp View 1 4 chunks +7 lines, -4 lines 0 comments Download
M include/effects/SkBlurDrawLooper.h View 2 chunks +10 lines, -3 lines 0 comments Download
M include/effects/SkLayerDrawLooper.h View 3 chunks +2 lines, -21 lines 0 comments Download
M samplecode/SampleTextOnPath.cpp View 1 chunk +4 lines, -4 lines 0 comments Download
M samplecode/SampleTiling.cpp View 1 3 chunks +7 lines, -7 lines 0 comments Download
M samplecode/SampleUnpremul.cpp View 1 chunk +4 lines, -4 lines 0 comments Download
M src/effects/SkBlurDrawLooper.cpp View 1 chunk +2 lines, -0 lines 0 comments Download
M src/effects/SkLayerDrawLooper.cpp View 1 chunk +0 lines, -38 lines 0 comments Download
M tests/PaintTest.cpp View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 16 (0 generated)
Dominik Grewe
I didn't use guards for the addLayer* methods last time, so I missed a few ...
6 years, 8 months ago (2014-04-11 09:38:26 UTC) #1
reed1
Derek: What is the status of removing blurdrawlooper from android entirely, and just using layerdrawlooper ...
6 years, 8 months ago (2014-04-11 12:57:10 UTC) #2
Dominik Grewe
https://codereview.chromium.org/232913003/diff/20001/include/effects/SkBlurDrawLooper.h File include/effects/SkBlurDrawLooper.h (right): https://codereview.chromium.org/232913003/diff/20001/include/effects/SkBlurDrawLooper.h#newcode44 include/effects/SkBlurDrawLooper.h:44: SkBlurDrawLooper(SkScalar radius, SkScalar dx, SkScalar dy, SkColor color, On ...
6 years, 8 months ago (2014-04-11 12:59:21 UTC) #3
djsollen
I had no plans to remove BlurDrawLooper in Android? Are you planning on removing the ...
6 years, 8 months ago (2014-04-11 13:44:43 UTC) #4
Dominik Grewe
On 2014/04/11 13:44:43, djsollen wrote: > I had no plans to remove BlurDrawLooper in Android? ...
6 years, 8 months ago (2014-04-11 13:50:46 UTC) #5
djsollen
On 2014/04/11 13:50:46, Dominik Grewe wrote: > On 2014/04/11 13:44:43, djsollen wrote: > > I ...
6 years, 8 months ago (2014-04-11 13:57:17 UTC) #6
Dominik Grewe
On 2014/04/11 13:57:17, djsollen wrote: > On 2014/04/11 13:50:46, Dominik Grewe wrote: > > On ...
6 years, 8 months ago (2014-04-11 14:03:01 UTC) #7
scroggo
On 2014/04/11 12:57:10, reed1 wrote: > Derek: What is the status of removing blurdrawlooper from ...
6 years, 8 months ago (2014-04-11 14:31:03 UTC) #8
Dominik Grewe
https://codereview.chromium.org/232913003/diff/20001/include/effects/SkLayerDrawLooper.h File include/effects/SkLayerDrawLooper.h (left): https://codereview.chromium.org/232913003/diff/20001/include/effects/SkLayerDrawLooper.h#oldcode82 include/effects/SkLayerDrawLooper.h:82: SkPaint* addLayer(const LayerInfo&); On 2014/04/11 14:31:03, scroggo wrote: > ...
6 years, 8 months ago (2014-04-11 17:48:04 UTC) #9
scroggo
https://codereview.chromium.org/232913003/diff/20001/include/effects/SkLayerDrawLooper.h File include/effects/SkLayerDrawLooper.h (left): https://codereview.chromium.org/232913003/diff/20001/include/effects/SkLayerDrawLooper.h#oldcode82 include/effects/SkLayerDrawLooper.h:82: SkPaint* addLayer(const LayerInfo&); On 2014/04/11 17:48:05, Dominik Grewe wrote: ...
6 years, 8 months ago (2014-04-11 17:56:07 UTC) #10
Dominik Grewe
Any more comments?
6 years, 8 months ago (2014-04-15 12:29:17 UTC) #11
scroggo
On 2014/04/15 12:29:17, Dominik Grewe wrote: > Any more comments? lgtm
6 years, 8 months ago (2014-04-15 13:10:53 UTC) #12
reed1
lgtm
6 years, 8 months ago (2014-04-15 13:47:52 UTC) #13
Dominik Grewe
The CQ bit was checked by dominikg@chromium.org
6 years, 8 months ago (2014-04-15 15:20:49 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/dominikg@chromium.org/232913003/40001
6 years, 8 months ago (2014-04-15 15:21:08 UTC) #15
commit-bot: I haz the power
6 years, 8 months ago (2014-04-15 15:48:43 UTC) #16
Message was sent while issue was closed.
Change committed as 14200

Powered by Google App Engine
This is Rietveld 408576698