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

Unified Diff: include/core/SkDocument.h

Issue 963953002: XPS, DM: add SkDocument::CreateXPS (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix conics Created 5 years, 10 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
« no previous file with comments | « gyp/xps.gyp ('k') | include/device/xps/SkXPSDevice.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « gyp/xps.gyp ('k') | include/device/xps/SkXPSDevice.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698