Index: include/core/SkImageEncoder.h |
diff --git a/include/core/SkImageEncoder.h b/include/core/SkImageEncoder.h |
index fc999dcc189d4177de70c6b0a4810bb1e0165de1..bb3341f836ec330b6b04fa0baf51c6021a83afdc 100644 |
--- a/include/core/SkImageEncoder.h |
+++ b/include/core/SkImageEncoder.h |
@@ -12,6 +12,8 @@ |
#include "SkTRegistry.h" |
class SkBitmap; |
+class SkPixelSerializer; |
+class SkPixmap; |
class SkData; |
class SkWStream; |
@@ -64,11 +66,17 @@ public: |
Type, int quality); |
static SkData* EncodeData(const SkBitmap&, Type, int quality); |
+ static SkData* EncodeData(const SkPixmap&, Type, int quality); |
+ |
static bool EncodeFile(const char file[], const SkBitmap&, Type, |
int quality); |
static bool EncodeStream(SkWStream*, const SkBitmap&, Type, |
int quality); |
+ /** Uses SkImageEncoder to serialize images that are not already |
+ encoded as SkImageEncoder::kPNG_Type images. */ |
+ static SkPixelSerializer* CreatePixelSerializer(); |
+ |
protected: |
/** |
* Encode bitmap 'bm' in the desired format, writing results to |