| Index: tests/PixelRefTest.cpp
|
| diff --git a/tests/PixelRefTest.cpp b/tests/PixelRefTest.cpp
|
| index 8a6e8e3997571566edda20a0a778e3355ad813b2..775354c83d865dc60b3eb3f1d041b392f44770a4 100644
|
| --- a/tests/PixelRefTest.cpp
|
| +++ b/tests/PixelRefTest.cpp
|
| @@ -73,7 +73,7 @@ DEF_TEST(PixelRef_GenIDChange, r) {
|
|
|
| // Register a listener.
|
| int count = 0;
|
| - pixelRef->addGenIDChangeListener(SkNEW_ARGS(TestListener, (&count)));
|
| + pixelRef->addGenIDChangeListener(new TestListener(&count));
|
| REPORTER_ASSERT(r, 0 == count);
|
|
|
| // No one has looked at our pixelRef's generation ID, so invalidating it doesn't make sense.
|
| @@ -90,7 +90,7 @@ DEF_TEST(PixelRef_GenIDChange, r) {
|
|
|
| // Force the generation ID to be recalculated, then add a listener.
|
| REPORTER_ASSERT(r, 0 != pixelRef->getGenerationID());
|
| - pixelRef->addGenIDChangeListener(SkNEW_ARGS(TestListener, (&count)));
|
| + pixelRef->addGenIDChangeListener(new TestListener(&count));
|
| pixelRef->notifyPixelsChanged();
|
| REPORTER_ASSERT(r, 1 == count);
|
|
|
|
|