commit | 6c7e325236b7fbb9c9b14ebb4715f88a59718695 | [log] [tgz] |
---|---|---|
author | robertphillips <robertphillips@google.com> | Wed Apr 27 10:47:51 2016 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Wed Apr 27 10:47:51 2016 -0700 |
tree | 892db20f12b2f02968a3d67b54719aca3a84a8df | |
parent | b4bb7d825566042ed64697be49457dbac060e6c4 [diff] [blame] |
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
diff --git a/src/gpu/GrLayerCache.cpp b/src/gpu/GrLayerCache.cpp index 3c7ab88..8bdc3fb 100644 --- a/src/gpu/GrLayerCache.cpp +++ b/src/gpu/GrLayerCache.cpp
@@ -468,8 +468,8 @@ SkASSERT(0 == fPictureHash.count()); if (fAtlas->getTextureOrNull()) { - SkAutoTUnref<GrDrawContext> drawContext( - fContext->drawContext(fAtlas->getTexture()->asRenderTarget())); + sk_sp<GrDrawContext> drawContext( + fContext->drawContext(sk_ref_sp(fAtlas->getTexture()->asRenderTarget()))); if (drawContext) { drawContext->discard();