| Index: tests/CachedDecodingPixelRefTest.cpp
|
| diff --git a/tests/CachedDecodingPixelRefTest.cpp b/tests/CachedDecodingPixelRefTest.cpp
|
| index 434724d0cf9532e4e83b805aa04ddd60d062cc9c..04eddd907075193a1323a7768f9b0c0bf039a524 100644
|
| --- a/tests/CachedDecodingPixelRefTest.cpp
|
| +++ b/tests/CachedDecodingPixelRefTest.cpp
|
| @@ -146,14 +146,11 @@
|
| ////////////////////////////////////////////////////////////////////////////////
|
| static bool install_skCachingPixelRef(SkData* encoded, SkBitmap* dst) {
|
| return SkCachingPixelRef::Install(
|
| - SkDecodingImageGenerator::Create(
|
| - encoded, SkDecodingImageGenerator::Options()), dst);
|
| + SkNEW_ARGS(SkDecodingImageGenerator, (encoded)), dst);
|
| }
|
| static bool install_skDiscardablePixelRef(SkData* encoded, SkBitmap* dst) {
|
| // Use system-default discardable memory.
|
| - return SkInstallDiscardablePixelRef(
|
| - SkDecodingImageGenerator::Create(
|
| - encoded, SkDecodingImageGenerator::Options()), dst, NULL);
|
| + return SkDecodingImageGenerator::Install(encoded, dst, NULL);
|
| }
|
|
|
| ////////////////////////////////////////////////////////////////////////////////
|
| @@ -216,12 +213,10 @@
|
| }
|
| return true;
|
| }
|
| -
|
| private:
|
| const TestType fType;
|
| skiatest::Reporter* const fReporter;
|
| };
|
| -
|
| void CheckTestImageGeneratorBitmap(skiatest::Reporter* reporter,
|
| const SkBitmap& bm) {
|
| REPORTER_ASSERT(reporter, TestImageGenerator::Width() == bm.width());
|
|
|