diff options
Diffstat (limited to 'tests/SkResourceCacheTest.cpp')
-rw-r--r-- | tests/SkResourceCacheTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/SkResourceCacheTest.cpp b/tests/SkResourceCacheTest.cpp index 7ae5f6486f..3c0d1ffee3 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(); }); |