Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(969)

Unified Diff: src/pdf/SkPDFFormXObject.h

Issue 18585002: Implemented transparent gradients (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: More code review fixes. Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/pdf/SkPDFFormXObject.h
diff --git a/src/pdf/SkPDFFormXObject.h b/src/pdf/SkPDFFormXObject.h
index b1a6f7425d65176105a3d06ebb5285f1a29fc236..0b460e79e67029b4e0c2ee5fa687359e3924f035 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,
+ SkPDFDict* resourceDict, SkPDFArray* bbox);
+
SkTSet<SkPDFObject*> fResources;
};
« no previous file with comments | « src/pdf/SkPDFDevice.cpp ('k') | src/pdf/SkPDFFormXObject.cpp » ('j') | src/pdf/SkPDFShader.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698