Index: include/core/SkDocument.h |
diff --git a/include/core/SkDocument.h b/include/core/SkDocument.h |
index db8113f0e2501b53281ec1951e1239e47d76a793..9adb48fe7132b65715b0e4b98f78f24bae4aa0b0 100644 |
--- a/include/core/SkDocument.h |
+++ b/include/core/SkDocument.h |
@@ -63,6 +63,20 @@ public: |
static SkDocument* CreatePDF(const char outputFilePath[], |
SkScalar dpi = SK_ScalarDefaultRasterDPI); |
+#ifdef SK_SUPPORT_XPS |
reed1
2015/03/02 21:32:27
Why does this check need to be here? Can it not ju
reed1
2015/03/02 21:41:32
As a factory, it is allowed to return NULL even on
hal.canary
2015/03/02 23:08:24
Done.
|
+ /** |
+ * Create a XPS-backed document, writing the results into the stream. |
+ */ |
+ static SkDocument* CreateXPS(SkWStream* stream, |
+ SkScalar dpi = SK_ScalarDefaultRasterDPI); |
+ |
+ /** |
+ * Create a XPS-backed document, writing the results into a file. |
+ */ |
+ static SkDocument* CreateXPS(const char path[], |
+ SkScalar dpi = SK_ScalarDefaultRasterDPI); |
+#endif // SK_SUPPORT_XPS |
+ |
/** |
* Begin a new page for the document, returning the canvas that will draw |
* into the page. The document owns this canvas, and it will go out of |