| Index: tests/PictureTest.cpp
|
| diff --git a/tests/PictureTest.cpp b/tests/PictureTest.cpp
|
| index 3c53dd38381718db159b24c8fff0f639bee14c16..5d702bba198ea7b6163e3ce08523ecb02ddf036a 100644
|
| --- a/tests/PictureTest.cpp
|
| +++ b/tests/PictureTest.cpp
|
| @@ -11,6 +11,7 @@
|
| #include "SkData.h"
|
| #include "SkDecodingImageGenerator.h"
|
| #include "SkError.h"
|
| +#include "SkImageGenerator.h"
|
| #include "SkPaint.h"
|
| #include "SkPicture.h"
|
| #include "SkPictureUtils.h"
|
| @@ -379,7 +380,9 @@ static void test_bitmap_with_encoded_data(skiatest::Reporter* reporter) {
|
| SkAutoDataUnref data(wStream.copyToData());
|
|
|
| SkBitmap bm;
|
| - bool installSuccess = SkDecodingImageGenerator::Install(data, &bm);
|
| + bool installSuccess = SkInstallDiscardablePixelRef(
|
| + SkNewDecodingImageGenerator(data, SkDecoderOptions()), &bm, NULL);
|
| +
|
| REPORTER_ASSERT(reporter, installSuccess);
|
|
|
| // Write both bitmaps to pictures, and ensure that the resulting data streams are the same.
|
|
|