Index: tests/SpecialSurfaceTest.cpp |
diff --git a/tests/SpecialSurfaceTest.cpp b/tests/SpecialSurfaceTest.cpp |
index 7169b5e8e2204149d4c90de0facb49a5ba1b70ca..8c560fef7990312b3247bd9a4dd448de87c26d83 100644 |
--- a/tests/SpecialSurfaceTest.cpp |
+++ b/tests/SpecialSurfaceTest.cpp |
@@ -98,12 +98,12 @@ DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS(SpecialSurface_Gpu2, reporter, ctxInfo) { |
desc.fWidth = kFullSize; |
desc.fHeight = kFullSize; |
- SkAutoTUnref<GrTexture> temp(ctxInfo.fGrContext->textureProvider()->createApproxTexture(desc)); |
+ sk_sp<GrTexture> temp(ctxInfo.fGrContext->textureProvider()->createApproxTexture(desc)); |
SkASSERT_RELEASE(temp); |
const SkIRect subset = SkIRect::MakeXYWH(kPad, kPad, kSmallerSize, kSmallerSize); |
- sk_sp<SkSpecialSurface> surf(SkSpecialSurface::MakeFromTexture(subset, temp)); |
+ sk_sp<SkSpecialSurface> surf(SkSpecialSurface::MakeFromTexture(subset, std::move(temp))); |
test_surface(surf, reporter, kPad); |