| Index: tests/RectangleTextureTest.cpp
|
| diff --git a/tests/RectangleTextureTest.cpp b/tests/RectangleTextureTest.cpp
|
| index 3c2a50d630f66b070ea23f286b80c978436e503b..8c3bdd6a4a55b6507d8feb61c154fae8131baa9f 100644
|
| --- a/tests/RectangleTextureTest.cpp
|
| +++ b/tests/RectangleTextureTest.cpp
|
| @@ -89,7 +89,8 @@ static void test_copy_surface_dst(skiatest::Reporter* reporter, GrContext* conte
|
| static void test_clear(skiatest::Reporter* reporter, GrContext* context,
|
| GrTexture* rectangleTexture) {
|
| if (rectangleTexture->asRenderTarget()) {
|
| - SkAutoTUnref<GrDrawContext> dc(context->drawContext(rectangleTexture->asRenderTarget()));
|
| + sk_sp<GrDrawContext> dc(
|
| + context->drawContext(sk_ref_sp(rectangleTexture->asRenderTarget())));
|
| if (!dc) {
|
| ERRORF(reporter, "Could not get GrDrawContext for rectangle texture.");
|
| return;
|
|
|