Index: tests/SpecialImageTest.cpp |
diff --git a/tests/SpecialImageTest.cpp b/tests/SpecialImageTest.cpp |
index 18d023f9cdc370b5caccd7b980738608435b4f4e..f5174478ef27e672adbb439918b9cb63c33d8f83 100644 |
--- a/tests/SpecialImageTest.cpp |
+++ b/tests/SpecialImageTest.cpp |
@@ -243,10 +243,10 @@ DEF_GPUTEST_FOR_RENDERING_CONTEXTS(SpecialImage_MakeTexture, reporter, ctxInfo) |
desc.fWidth = kFullSize; |
desc.fHeight = kFullSize; |
- SkAutoTUnref<GrTexture> texture(context->textureProvider()->createTexture(desc, |
- SkBudgeted::kNo, |
- bm.getPixels(), |
- 0)); |
+ sk_sp<GrTexture> texture(context->textureProvider()->createTexture(desc, |
+ SkBudgeted::kNo, |
+ bm.getPixels(), |
+ 0)); |
if (!texture) { |
return; |
} |
@@ -255,7 +255,7 @@ DEF_GPUTEST_FOR_RENDERING_CONTEXTS(SpecialImage_MakeTexture, reporter, ctxInfo) |
SkIRect::MakeWH(kFullSize, |
kFullSize), |
kNeedNewImageUniqueID_SpecialImage, |
- texture)); |
+ std::move(texture))); |
{ |
sk_sp<SkSpecialImage> fromGPU(gpuImage->makeTextureImage(context)); |
@@ -281,9 +281,9 @@ DEF_GPUTEST_FOR_RENDERING_CONTEXTS(SpecialImage_Gpu, reporter, ctxInfo) { |
desc.fWidth = kFullSize; |
desc.fHeight = kFullSize; |
- SkAutoTUnref<GrTexture> texture(context->textureProvider()->createTexture(desc, |
- SkBudgeted::kNo, |
- bm.getPixels(), 0)); |
+ sk_sp<GrTexture> texture(context->textureProvider()->createTexture(desc, |
+ SkBudgeted::kNo, |
+ bm.getPixels(), 0)); |
if (!texture) { |
return; |
} |