Index: tests/SkResourceCacheTest.cpp |
diff --git a/tests/SkResourceCacheTest.cpp b/tests/SkResourceCacheTest.cpp |
index 7ae5f6486f8be6138c5595d3034b99d5ce16f4c8..3c0d1ffee3a467d00c6e35545a3ed1b003c73942 100644 |
--- a/tests/SkResourceCacheTest.cpp |
+++ b/tests/SkResourceCacheTest.cpp |
@@ -264,7 +264,7 @@ DEF_TEST(BitmapCache_discarded_bitmap, reporter) { |
static void test_discarded_image(skiatest::Reporter* reporter, const SkMatrix& transform, |
sk_sp<SkImage> (*buildImage)()) { |
- SkAutoTUnref<SkSurface> surface(SkSurface::NewRasterN32Premul(10, 10)); |
+ auto surface(SkSurface::MakeRasterN32Premul(10, 10)); |
SkCanvas* canvas = surface->getCanvas(); |
// SkBitmapCache is global, so other threads could be evicting our bitmaps. Loop a few times |
@@ -313,7 +313,7 @@ DEF_TEST(BitmapCache_discarded_image, reporter) { |
for (size_t i = 0; i < SK_ARRAY_COUNT(xforms); ++i) { |
test_discarded_image(reporter, xforms[i], []() { |
- SkAutoTUnref<SkSurface> surface(SkSurface::NewRasterN32Premul(10, 10)); |
+ auto surface(SkSurface::MakeRasterN32Premul(10, 10)); |
surface->getCanvas()->clear(SK_ColorCYAN); |
return surface->makeImageSnapshot(); |
}); |