diff options
Diffstat (limited to 'tests/PictureTest.cpp')
-rw-r--r-- | tests/PictureTest.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/PictureTest.cpp b/tests/PictureTest.cpp index a66185b95b..c2e1bb103c 100644 --- a/tests/PictureTest.cpp +++ b/tests/PictureTest.cpp @@ -12,7 +12,7 @@ #include "SkColorPriv.h" #include "SkDashPathEffect.h" #include "SkData.h" -#include "SkDecodingImageGenerator.h" +#include "SkImageGenerator.h" #include "SkError.h" #include "SkImageEncoder.h" #include "SkImageGenerator.h" @@ -1495,8 +1495,7 @@ static void test_bitmap_with_encoded_data(skiatest::Reporter* reporter) { SkAutoDataUnref data(wStream.copyToData()); SkBitmap bm; - bool installSuccess = SkInstallDiscardablePixelRef( - SkDecodingImageGenerator::Create(data, SkDecodingImageGenerator::Options()), &bm); + bool installSuccess = SkInstallDiscardablePixelRef(data, &bm); REPORTER_ASSERT(reporter, installSuccess); // Write both bitmaps to pictures, and ensure that the resulting data streams are the same. |