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

Issue 2197243003: Replace old SkRecords RefBox with sk_sp. (Closed)

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

Description

Replace old SkRecords RefBox with sk_sp. The main differences are that RefBox's constructor reffed and sk_sp's doesn't, and that RefBox auto-casts to the underlying pointer while sk_sp doesn't. I've added a bunch of sk_ref_sp() and .get() to compensate. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2197243003 Committed: https://skia.googlesource.com/skia/+/da574d17f864ed70323a1c0fc6e4e969153a4c98

Patch Set 1 #

Patch Set 2 : builds #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -50 lines) Patch
M include/private/SkRecords.h View 7 chunks +11 lines, -27 lines 0 comments Download
M src/core/SkMiniRecorder.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkRecordDraw.cpp View 1 4 chunks +14 lines, -10 lines 0 comments Download
M src/core/SkRecorder.cpp View 7 chunks +16 lines, -12 lines 0 comments Download

Messages

Total messages: 17 (13 generated)
mtklein_C
This makes it a lot easier to replace images in SkRecords with their makeTextureImage().
4 years, 4 months ago (2016-08-01 17:09:58 UTC) #10
reed1
lgtm
4 years, 4 months ago (2016-08-01 18:22:37 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2197243003/20001
4 years, 4 months ago (2016-08-01 18:22:49 UTC) #15
commit-bot: I haz the power
4 years, 4 months ago (2016-08-01 18:24:06 UTC) #17
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://skia.googlesource.com/skia/+/da574d17f864ed70323a1c0fc6e4e969153a4c98

Powered by Google App Engine
This is Rietveld 408576698