diff options
author | robertphillips <robertphillips@google.com> | 2016-04-27 10:47:51 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-04-27 10:47:51 -0700 |
commit | 6c7e325236b7fbb9c9b14ebb4715f88a59718695 (patch) | |
tree | 892db20f12b2f02968a3d67b54719aca3a84a8df /gm/beziereffects.cpp | |
parent | b4bb7d825566042ed64697be49457dbac060e6c4 (diff) |
Bring sk_sp to GrDrawContext
This is split out of: https://codereview.chromium.org/1914883002/ (Refactor drawContext/RenderTarget creation)
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1918003003
Review-Url: https://codereview.chromium.org/1918003003
Diffstat (limited to 'gm/beziereffects.cpp')
-rw-r--r-- | gm/beziereffects.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gm/beziereffects.cpp b/gm/beziereffects.cpp index 61d3795225..015450895b 100644 --- a/gm/beziereffects.cpp +++ b/gm/beziereffects.cpp @@ -109,7 +109,7 @@ protected: return; } - SkAutoTUnref<GrDrawContext> drawContext(context->drawContext(rt)); + sk_sp<GrDrawContext> drawContext(context->drawContext(sk_ref_sp(rt))); if (!drawContext) { return; } @@ -248,7 +248,7 @@ protected: return; } - SkAutoTUnref<GrDrawContext> drawContext(context->drawContext(rt)); + sk_sp<GrDrawContext> drawContext(context->drawContext(sk_ref_sp(rt))); if (!drawContext) { return; } @@ -465,7 +465,7 @@ protected: return; } - SkAutoTUnref<GrDrawContext> drawContext(context->drawContext(rt)); + sk_sp<GrDrawContext> drawContext(context->drawContext(sk_ref_sp(rt))); if (!drawContext) { return; } |