Implemented transparent gradients
R=vandebo@chromium.org, edisonn@google.com
Author: richardlin@chromium.org
Review URL: https://chromiumcodereview.appspot.com/18585002
git-svn-id: http://skia.googlecode.com/svn/trunk@10297 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/pdf/SkPDFFormXObject.h b/src/pdf/SkPDFFormXObject.h
index b1a6f74..38c04b1 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 @@
* @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(SkStream* content,
+ SkRect bbox,
+ SkPDFResourceDict* resourceDict);
virtual ~SkPDFFormXObject();
// The SkPDFObject interface.
@@ -43,6 +52,9 @@
SkTSet<SkPDFObject*>* newResourceObjects);
private:
+ void init(const char* colorSpace,
+ SkPDFDict* resourceDict, SkPDFArray* bbox);
+
SkTSet<SkPDFObject*> fResources;
};