Index: tests/ResourceCacheTest.cpp |
diff --git a/tests/ResourceCacheTest.cpp b/tests/ResourceCacheTest.cpp |
index b6f13e69bb3178935130037ba40c7c1d839aea3f..3e4efb108fefceb03359aec14230cda56e6ea09e 100644 |
--- a/tests/ResourceCacheTest.cpp |
+++ b/tests/ResourceCacheTest.cpp |
@@ -221,13 +221,14 @@ DEF_GPUTEST_FOR_RENDERING_CONTEXTS(ResourceCacheWrappedResources, reporter, ctxI |
desc.fHeight = kH; |
desc.fTextureHandle = texHandles[0]; |
- SkAutoTUnref<GrTexture> borrowed(context->textureProvider()->wrapBackendTexture( |
- desc, kBorrow_GrWrapOwnership)); |
+ sk_sp<GrTexture> borrowed(context->textureProvider()->wrapBackendTexture( |
+ desc, kBorrow_GrWrapOwnership)); |
desc.fTextureHandle = texHandles[1]; |
- SkAutoTUnref<GrTexture> adopted(context->textureProvider()->wrapBackendTexture( |
- desc, kAdopt_GrWrapOwnership)); |
+ sk_sp<GrTexture> adopted(context->textureProvider()->wrapBackendTexture( |
+ desc, kAdopt_GrWrapOwnership)); |
+ printf("\nborrowed: %p, adopted: %p\n", borrowed.get(), adopted.get()); |
REPORTER_ASSERT(reporter, borrowed != nullptr && adopted != nullptr); |
if (!borrowed || !adopted) { |
return; |