Index: gm/beziereffects.cpp |
diff --git a/gm/beziereffects.cpp b/gm/beziereffects.cpp |
index 61d3795225ee0b3c9c20f276b8543382e00eb261..015450895bf15f4b3bdc12cd6f101602ae637731 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))); |
bsalomon
2016/04/26 13:09:25
It seems strange that we need to ref the rt here w
robertphillips
2016/04/26 13:36:53
GrContext::drawContext should now take an sk_sp
|
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; |
} |