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

Issue 175293002: Factory methods for heap-allocated SkColorFilter objects. (Closed)

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

Description

Factory methods for heap-allocated SkColorFilter objects. This is part of an effort to ensure that all SkPaint effects can only be allocated on the heap. This patch makes the constructors of SkColorFilter and its subclasses non-public and instead provides factory methods for creating these objects on the heap. We temporarily keep constructor of publicly visible classes public behind a flag. BUG=skia:2187 Committed: http://code.google.com/p/skia/source/detail?r=13539

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -16 lines) Patch
M bench/ColorFilterBench.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M gm/colorfilterimagefilter.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M gm/colormatrix.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M gm/imagefiltersgraph.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M include/effects/SkColorMatrixFilter.h View 2 chunks +12 lines, -2 lines 0 comments Download
M src/effects/SkColorFilterImageFilter.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/effects/SkColorFilters.cpp View 1 chunk +1 line, -1 line 0 comments Download
M tests/GLProgramsTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M tests/ImageFilterTest.cpp View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Dominik Grewe
I've looked at SkColorFilter this time. Apart from SkColorMatrixFilter all subclasses were either not public ...
6 years, 10 months ago (2014-02-21 16:16:47 UTC) #1
scroggo
On 2014/02/21 16:16:47, Dominik Grewe wrote: > I've looked at SkColorFilter this time. Apart from ...
6 years, 10 months ago (2014-02-21 16:25:21 UTC) #2
reed1
lgtm
6 years, 10 months ago (2014-02-21 17:06:23 UTC) #3
Dominik Grewe
The CQ bit was checked by dominikg@chromium.org
6 years, 10 months ago (2014-02-21 17:21:49 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/dominikg@chromium.org/175293002/1
6 years, 10 months ago (2014-02-21 17:21:53 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/dominikg@chromium.org/175293002/1
6 years, 10 months ago (2014-02-21 18:23:52 UTC) #6
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-21 18:23:55 UTC) #7
commit-bot: I haz the power
Failed to apply patch for bench/ColorFilterBench.cpp: While running git apply --index -p1; Created missing directory ...
6 years, 10 months ago (2014-02-21 18:23:55 UTC) #8
mtklein
The CQ bit was checked by mtklein@google.com
6 years, 10 months ago (2014-02-21 18:30:57 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/dominikg@chromium.org/175293002/1
6 years, 10 months ago (2014-02-21 18:31:02 UTC) #10
commit-bot: I haz the power
6 years, 10 months ago (2014-02-21 18:46:34 UTC) #11
Message was sent while issue was closed.
Change committed as 13539

Powered by Google App Engine
This is Rietveld 408576698