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

Issue 1894573002: Move SkImageFilter over to storing sk_sps (Closed)

Created:
4 years, 8 months ago by robertphillips
Modified:
4 years, 8 months ago
Reviewers:
f(malita), reed1
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Move SkImageFilter over to storing sk_sps This CL also removes the old bare-pointer style ctor. GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1894573002 Committed: https://skia.googlesource.com/skia/+/6b13473dd4d5915309cc2caddbab2e22f2f21d5f

Patch Set 1 #

Patch Set 2 : clean up #

Patch Set 3 : more clean up #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -71 lines) Patch
M include/core/SkImageFilter.h View 1 2 4 chunks +7 lines, -14 lines 2 comments Download
M src/core/SkImageFilter.cpp View 1 2 5 chunks +26 lines, -53 lines 0 comments Download
M src/effects/SkImageSource.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M tests/ImageFilterTest.cpp View 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 15 (7 generated)
robertphillips
4 years, 8 months ago (2016-04-15 16:28:59 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1894573002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1894573002/40001
4 years, 8 months ago (2016-04-15 16:29:29 UTC) #6
reed1
lgtm https://codereview.chromium.org/1894573002/diff/40001/include/core/SkImageFilter.h File include/core/SkImageFilter.h (right): https://codereview.chromium.org/1894573002/diff/40001/include/core/SkImageFilter.h#newcode333 include/core/SkImageFilter.h:333: sk_sp<SkImageFilter> getInput(int index) const { return fInputs[index]; } ...
4 years, 8 months ago (2016-04-15 16:33:43 UTC) #7
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-15 16:44:33 UTC) #9
robertphillips
https://codereview.chromium.org/1894573002/diff/40001/include/core/SkImageFilter.h File include/core/SkImageFilter.h (right): https://codereview.chromium.org/1894573002/diff/40001/include/core/SkImageFilter.h#newcode333 include/core/SkImageFilter.h:333: sk_sp<SkImageFilter> getInput(int index) const { return fInputs[index]; } On ...
4 years, 8 months ago (2016-04-15 16:56:05 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1894573002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1894573002/40001
4 years, 8 months ago (2016-04-15 16:57:42 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://skia.googlesource.com/skia/+/6b13473dd4d5915309cc2caddbab2e22f2f21d5f
4 years, 8 months ago (2016-04-15 16:58:43 UTC) #14
reed1
4 years, 8 months ago (2016-04-15 17:08:51 UTC) #15
Message was sent while issue was closed.
On 2016/04/15 16:56:05, robertphillips wrote:
>
https://codereview.chromium.org/1894573002/diff/40001/include/core/SkImageFil...
> File include/core/SkImageFilter.h (right):
> 
>
https://codereview.chromium.org/1894573002/diff/40001/include/core/SkImageFil...
> include/core/SkImageFilter.h:333: sk_sp<SkImageFilter>  getInput(int index)
> const { return fInputs[index]; }
> On 2016/04/15 16:33:43, reed1 wrote:
> > why does this getInput return sp, and the earlier one (up the this file)
> return
> > * ?
> 
> Callers of this method intend to take a ref on the returned image filter.
> Callers of the earlier accessor never do.

Understood, but doesn't seem clear from a reader looking at the file. Perhaps
rename the former to refInput(index) ?

Powered by Google App Engine
This is Rietveld 408576698