diff options
author | mtklein <mtklein@chromium.org> | 2016-08-01 11:24:03 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-08-01 11:24:03 -0700 |
commit | da574d17f864ed70323a1c0fc6e4e969153a4c98 (patch) | |
tree | 1a45e595208f7b4ddb835a515f0609c2d66769e6 /src/core/SkMiniRecorder.cpp | |
parent | 2dad769dc9e6a2974c4a7de1ffa945706274fab8 (diff) |
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
Review-Url: https://codereview.chromium.org/2197243003
Diffstat (limited to 'src/core/SkMiniRecorder.cpp')
-rw-r--r-- | src/core/SkMiniRecorder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/SkMiniRecorder.cpp b/src/core/SkMiniRecorder.cpp index a5d676aed9..51ff5acbbc 100644 --- a/src/core/SkMiniRecorder.cpp +++ b/src/core/SkMiniRecorder.cpp @@ -79,7 +79,7 @@ bool SkMiniRecorder::drawPath(const SkPath& path, const SkPaint& paint) { } bool SkMiniRecorder::drawTextBlob(const SkTextBlob* b, SkScalar x, SkScalar y, const SkPaint& p) { - TRY_TO_STORE(DrawTextBlob, p, b, x, y); + TRY_TO_STORE(DrawTextBlob, p, sk_ref_sp(b), x, y); } #undef TRY_TO_STORE |