Index: tests/TextureStorageAllocator.cpp |
diff --git a/tests/TextureStorageAllocator.cpp b/tests/TextureStorageAllocator.cpp |
index 5c9962e2c63d0e82522faa60558d094ce521f5fb..1d226861e2d9e77cc0a58f426c8d9c64d8116562 100644 |
--- a/tests/TextureStorageAllocator.cpp |
+++ b/tests/TextureStorageAllocator.cpp |
@@ -66,7 +66,7 @@ DEF_GPUTEST_FOR_RENDERING_CONTEXTS(CustomTexture, reporter, context, glContext) |
grAllocator.fDeallocateTextureStorage= &TestStorageAllocator::deallocateTextureStorage; |
grAllocator.fCtx = &allocator; |
- SkAutoTUnref<SkSurface> surface(SkSurface_Gpu::NewRenderTarget( |
+ auto surface(SkSurface_Gpu::MakeRenderTarget( |
context, SkBudgeted::kNo, SkImageInfo::MakeN32Premul(kWidth, kHeight), 0, |
NULL, grAllocator)); |
REPORTER_ASSERT(reporter, surface); |
@@ -100,7 +100,7 @@ DEF_GPUTEST_FOR_RENDERING_CONTEXTS(CustomTextureFailure, reporter, context, glCo |
grAllocator.fAllocateTextureStorage = &TestStorageAllocator::allocateTextureStorage; |
grAllocator.fDeallocateTextureStorage= &TestStorageAllocator::deallocateTextureStorage; |
grAllocator.fCtx = &allocator; |
- SkAutoTUnref<SkSurface> surface(SkSurface_Gpu::NewRenderTarget( |
+ auto surface(SkSurface_Gpu::MakeRenderTarget( |
context, SkBudgeted::kNo, SkImageInfo::MakeN32Premul(kWidth, kHeight), 0, |
NULL, grAllocator)); |
REPORTER_ASSERT(reporter, !surface); |