| Index: src/ports/SkImagesSupport_default.cpp
|
| diff --git a/src/ports/SkImagesSupport_default.cpp b/src/ports/SkImagesSupport_default.cpp
|
| index bf752d61703a1094bfcc94bdd3036529743b0a51..3bf6165c355f4e8e6ad55a483bdf982d460c5512 100644
|
| --- a/src/ports/SkImagesSupport_default.cpp
|
| +++ b/src/ports/SkImagesSupport_default.cpp
|
| @@ -6,6 +6,8 @@
|
| */
|
|
|
| #include "SkImagesSupport.h"
|
| +#include "SkPicture.h"
|
| +#include "SkImageDecoder.h"
|
|
|
| #if SK_SUPPORT_GPU && defined(SK_DEVELOPER)
|
| #include "GrSurface.h"
|
| @@ -16,6 +18,10 @@
|
|
|
| // This file should be compiled to images library when images library is part of the Skia library.
|
|
|
| +SkPicture* SkPicture::CreateFromStream(SkStream* stream) {
|
| + return SkPicture::CreateFromStream(stream, &SkImageDecoder::DecodeMemory);
|
| +}
|
| +
|
| #if SK_SUPPORT_GPU && defined(SK_DEVELOPER)
|
| bool SkSaveGrSurfacePixelsAsPNG(GrSurface* surface, const char* filename) {
|
| SkBitmap bm;
|
|
|