Index: src/ports/SkImageDecoder_CG.cpp |
diff --git a/src/ports/SkImageDecoder_CG.cpp b/src/ports/SkImageDecoder_CG.cpp |
index 7bebf394da5947dba78ea65b5cb01c95bf63d5bd..5b32502d8efa9ab0e6ca756f47cb7919fac624a8 100644 |
--- a/src/ports/SkImageDecoder_CG.cpp |
+++ b/src/ports/SkImageDecoder_CG.cpp |
@@ -300,6 +300,17 @@ static SkImageEncoder* sk_imageencoder_cg_factory(SkImageEncoder::Type t) { |
static SkImageEncoder_EncodeReg gEReg(sk_imageencoder_cg_factory); |
+#ifdef SK_BUILD_FOR_IOS |
+class SkPNGImageEncoder_IOS : public SkImageEncoder_CG { |
+public: |
+ SkPNGImageEncoder_IOS() |
+ : SkImageEncoder_CG(kPNG_Type) { |
+ } |
+}; |
+ |
+DEFINE_ENCODER_CREATOR(PNGImageEncoder_IOS); |
+#endif |
+ |
struct FormatConversion { |
CFStringRef fUTType; |
SkImageDecoder::Format fFormat; |