diff options
author | 2015-01-07 18:04:45 -0800 | |
---|---|---|
committer | 2015-01-07 18:04:45 -0800 | |
commit | 5965c8ae4ee960275da4bc40189bdba85aab8b5e (patch) | |
tree | dc7f14af5cbce088311191a981b6ae67c2286be6 /samplecode/SamplePicture.cpp | |
parent | 23d432080cb8506bf8e371b1637ce8f2de9c0c05 (diff) |
add ImageGenerator::NewFromData to porting layer
BUG=skia:3275
Review URL: https://codereview.chromium.org/834633006
Diffstat (limited to 'samplecode/SamplePicture.cpp')
-rw-r--r-- | samplecode/SamplePicture.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/samplecode/SamplePicture.cpp b/samplecode/SamplePicture.cpp index 46c57d7f39..c78571a89b 100644 --- a/samplecode/SamplePicture.cpp +++ b/samplecode/SamplePicture.cpp @@ -13,7 +13,7 @@ #include "SkColorFilter.h" #include "SkColorPriv.h" #include "SkData.h" -#include "SkDecodingImageGenerator.h" +#include "SkImageGenerator.h" #include "SkDumpCanvas.h" #include "SkGradientShader.h" #include "SkGraphics.h" @@ -40,8 +40,7 @@ static SkBitmap load_bitmap() { SkString pngFilename = GetResourcePath("mandrill_512.png"); SkAutoDataUnref data(SkData::NewFromFileName(pngFilename.c_str())); if (data.get() != NULL) { - SkInstallDiscardablePixelRef(SkDecodingImageGenerator::Create( - data, SkDecodingImageGenerator::Options()), &bm); + SkInstallDiscardablePixelRef(data, &bm); } return bm; } |