Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Unified Diff: src/ports/SkImagesSupport_default.cpp

Issue 647973006: Remove a SkImageDecoder reference from SkPicture.h (Closed) Base URL: https://skia.googlesource.com/skia.git@separate-image-encoder-02-debug-functionality
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/pdf/SkPDFDeviceFlattener.cpp ('k') | src/ports/SkImagesSupport_noimages.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « src/pdf/SkPDFDeviceFlattener.cpp ('k') | src/ports/SkImagesSupport_noimages.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698