Index: tests/CachedDecodingPixelRefTest.cpp |
diff --git a/tests/CachedDecodingPixelRefTest.cpp b/tests/CachedDecodingPixelRefTest.cpp |
index c69cd969f569c6fbd4d736015dfcc439ad1a67c5..721c0908f8e797f587bd4f982272e3726e7b1da0 100644 |
--- a/tests/CachedDecodingPixelRefTest.cpp |
+++ b/tests/CachedDecodingPixelRefTest.cpp |
@@ -239,8 +239,7 @@ static void check_pixelref(TestImageGenerator::TestType type, |
PixelRefType pixelRefType, |
SkDiscardableMemory::Factory* factory) { |
SkASSERT((pixelRefType >= 0) && (pixelRefType <= kLast_PixelRefType)); |
- SkAutoTDelete<SkImageGenerator> gen(SkNEW_ARGS(TestImageGenerator, |
- (type, reporter))); |
+ SkAutoTDelete<SkImageGenerator> gen(new TestImageGenerator(type, reporter)); |
REPORTER_ASSERT(reporter, gen.get() != NULL); |
SkBitmap lazy; |
bool success; |
@@ -317,7 +316,7 @@ DEF_TEST(Image_NewFromGenerator, r) { |
}; |
for (size_t i = 0; i < SK_ARRAY_COUNT(testTypes); ++i) { |
TestImageGenerator::TestType test = testTypes[i]; |
- SkImageGenerator* gen = SkNEW_ARGS(TestImageGenerator, (test, r)); |
+ SkImageGenerator* gen = new TestImageGenerator(test, r); |
SkAutoTUnref<SkImage> image(SkImage::NewFromGenerator(gen)); |
if (NULL == image.get()) { |
ERRORF(r, "SkImage::NewFromGenerator unexpecedly failed [" |