Index: tests/ResourceCacheTest.cpp |
diff --git a/tests/ResourceCacheTest.cpp b/tests/ResourceCacheTest.cpp |
index 784ae7e94db5efc40bdd0f03bcb2bdfb3f211412..0931876cf13fd6a99e0dbb352b61f711cb3feca8 100644 |
--- a/tests/ResourceCacheTest.cpp |
+++ b/tests/ResourceCacheTest.cpp |
@@ -37,8 +37,7 @@ DEF_GPUTEST_FOR_RENDERING_CONTEXTS(ResourceCacheCache, reporter, context) { |
desc.fWidth = gWidth; |
desc.fHeight = gHeight; |
SkImageInfo info = SkImageInfo::MakeN32Premul(gWidth, gHeight); |
- SkAutoTUnref<SkSurface> surface(SkSurface::NewRenderTarget(context, |
- SkBudgeted::kNo, info)); |
+ auto surface(SkSurface::MakeRenderTarget(context, SkBudgeted::kNo, info)); |
SkCanvas* canvas = surface->getCanvas(); |
const SkIRect size = SkIRect::MakeWH(gWidth, gHeight); |