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

Issue 1760453004: Add operator* and operator safe-bool to sk_sp. (Closed)

Created:
4 years, 9 months ago by bungeman-skia
Modified:
4 years, 9 months ago
Reviewers:
hal.canary, mtklein, reed1
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Add operator* and operator safe-bool to sk_sp. This greatly reduces the need to use '.get()' in conditionals. Committed: https://skia.googlesource.com/skia/+/beab9e7ba06ea8bd01fcbfd44f2ca2ed69c8a1d9

Patch Set 1 #

Patch Set 2 : Correct signature, write test. #

Total comments: 5

Patch Set 3 : Test all the things. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -1 line) Patch
M include/core/SkRefCnt.h View 1 2 2 chunks +9 lines, -1 line 0 comments Download
M tests/RefCntTest.cpp View 1 2 2 chunks +27 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (18 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1760453004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1760453004/1
4 years, 9 months ago (2016-03-02 19:34:42 UTC) #4
bungeman-skia
This means we don't have to use '.get()' everywhere.
4 years, 9 months ago (2016-03-02 19:35:22 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Mac-Clang-Arm7-Debug-iOS-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Mac-Clang-Arm7-Debug-iOS-Trybot/builds/852)
4 years, 9 months ago (2016-03-02 19:36:52 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1760453004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1760453004/20001
4 years, 9 months ago (2016-03-02 19:46:37 UTC) #11
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Mac-Clang-Arm7-Debug-iOS-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Mac-Clang-Arm7-Debug-iOS-Trybot/builds/854)
4 years, 9 months ago (2016-03-02 19:49:11 UTC) #13
hal.canary
lgtm
4 years, 9 months ago (2016-03-02 19:59:56 UTC) #15
mtklein
https://codereview.chromium.org/1760453004/diff/20001/include/core/SkRefCnt.h File include/core/SkRefCnt.h (right): https://codereview.chromium.org/1760453004/diff/20001/include/core/SkRefCnt.h#newcode241 include/core/SkRefCnt.h:241: using unspecified_bool_type = T* sk_sp::*; // safe bool idiom. ...
4 years, 9 months ago (2016-03-02 20:05:11 UTC) #16
reed1
is it at all useful to explicit exercise if (!obj.get()) ... ?
4 years, 9 months ago (2016-03-02 20:08:21 UTC) #17
bungeman-skia
> is it at all useful to explicit exercise > > if (!obj.get()) ... ? ...
4 years, 9 months ago (2016-03-02 20:32:58 UTC) #19
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1760453004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1760453004/40001
4 years, 9 months ago (2016-03-02 20:49:59 UTC) #22
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Mac-Clang-Arm7-Debug-iOS-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Mac-Clang-Arm7-Debug-iOS-Trybot/builds/860)
4 years, 9 months ago (2016-03-02 20:52:36 UTC) #24
mtklein
lgtm "g" in wary quotes
4 years, 9 months ago (2016-03-02 22:04:05 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1760453004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1760453004/40001
4 years, 9 months ago (2016-03-02 22:12:56 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: skia_presubmit-Trybot on client.skia.fyi (JOB_FAILED, http://build.chromium.org/p/client.skia.fyi/builders/skia_presubmit-Trybot/builds/7220)
4 years, 9 months ago (2016-03-02 22:15:11 UTC) #30
reed1
api lgtm
4 years, 9 months ago (2016-03-02 22:34:59 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1760453004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1760453004/40001
4 years, 9 months ago (2016-03-03 15:49:35 UTC) #33
commit-bot: I haz the power
4 years, 9 months ago (2016-03-03 15:50:52 UTC) #35
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://skia.googlesource.com/skia/+/beab9e7ba06ea8bd01fcbfd44f2ca2ed69c8a1d9

Powered by Google App Engine
This is Rietveld 408576698