Index: src/pdf/SkPDFImage.h |
diff --git a/src/pdf/SkPDFImage.h b/src/pdf/SkPDFImage.h |
index 10f8be627077f7c6e7f84e220934a2db35e5eb60..5c026dac9ad961a54b08a325641155fa4ee99469 100644 |
--- a/src/pdf/SkPDFImage.h |
+++ b/src/pdf/SkPDFImage.h |
@@ -17,9 +17,20 @@ |
#include "SkRefCnt.h" |
class SkBitmap; |
+class SkData; |
class SkPDFCatalog; |
struct SkIRect; |
+/** |
+ * Return the mose efficient availible encoding of the given bitmap. |
+ * |
+ * If the bitmap has encoded JPEG data and that data can be embedded |
+ * into the PDF output stream directly, use that. Otherwise, fall |
+ * back on SkPDFImage::CreateImage. |
+ */ |
+SkPDFObject* SkPDFCreateImageObject( |
+ const SkBitmap&, const SkIRect& subset, SkPicture::EncodeBitmap); |
+ |
/** \class SkPDFImage |
An image XObject. |