Index: src/pdf/SkPDFFormXObject.h |
diff --git a/src/pdf/SkPDFFormXObject.h b/src/pdf/SkPDFFormXObject.h |
index b1a6f7425d65176105a3d06ebb5285f1a29fc236..179ca531f604335afec58094d13068b2b60d21ea 100644 |
--- a/src/pdf/SkPDFFormXObject.h |
+++ b/src/pdf/SkPDFFormXObject.h |
@@ -12,7 +12,9 @@ |
#include "SkPDFStream.h" |
#include "SkPDFTypes.h" |
+#include "SkRect.h" |
#include "SkRefCnt.h" |
+#include "SkPDFResourceDict.h" |
#include "SkString.h" |
class SkMatrix; |
@@ -36,6 +38,13 @@ public: |
* @param device The set of graphical elements on this form. |
*/ |
explicit SkPDFFormXObject(SkPDFDevice* device); |
+ /** |
+ * Create a PDF form XObject from a raw content stream and associated |
+ * resources. |
+ */ |
+ explicit SkPDFFormXObject(SkData* content, |
+ SkRect bbox, |
+ SkPDFResourceDict* resourceDict); |
virtual ~SkPDFFormXObject(); |
// The SkPDFObject interface. |
@@ -43,6 +52,9 @@ public: |
SkTSet<SkPDFObject*>* newResourceObjects); |
private: |
+ void init(const char colorSpace[], |
vandebo (ex-Chrome)
2013/07/11 22:22:23
nit: const char* colorSpace. IIRC, once you aren't
ducky
2013/07/12 03:40:00
Done.
I looked this up (out of curiosity), and it
|
+ SkPDFDict* resourceDict, SkPDFArray* bbox); |
+ |
SkTSet<SkPDFObject*> fResources; |
}; |