Index: tests/SkResourceCacheTest.cpp |
diff --git a/tests/SkResourceCacheTest.cpp b/tests/SkResourceCacheTest.cpp |
index bb12d667eeeb8a5d203e4effec551dce600af5fb..58ab7817259de31c326c5789aed4499775f1db46 100644 |
--- a/tests/SkResourceCacheTest.cpp |
+++ b/tests/SkResourceCacheTest.cpp |
@@ -97,10 +97,10 @@ DEF_TEST(BitmapCache_add_rect, reporter) { |
SkAutoTDelete<SkResourceCache> cache; |
if (factory) { |
- cache.reset(SkNEW_ARGS(SkResourceCache, (factory))); |
+ cache.reset(new SkResourceCache(factory)); |
} else { |
const size_t byteLimit = 100 * 1024; |
- cache.reset(SkNEW_ARGS(SkResourceCache, (byteLimit))); |
+ cache.reset(new SkResourceCache(byteLimit)); |
} |
SkBitmap cachedBitmap; |
make_bitmap(&cachedBitmap, SkImageInfo::MakeN32Premul(5, 5), allocator); |
@@ -243,10 +243,10 @@ DEF_TEST(BitmapCache_discarded_bitmap, reporter) { |
SkAutoTDelete<SkResourceCache> cache; |
if (factory) { |
- cache.reset(SkNEW_ARGS(SkResourceCache, (factory))); |
+ cache.reset(new SkResourceCache(factory)); |
} else { |
const size_t byteLimit = 100 * 1024; |
- cache.reset(SkNEW_ARGS(SkResourceCache, (byteLimit))); |
+ cache.reset(new SkResourceCache(byteLimit)); |
} |
SkBitmap cachedBitmap; |
make_bitmap(&cachedBitmap, SkImageInfo::MakeN32Premul(5, 5), allocator); |