diff options
author | Hal Canary <halcanary@google.com> | 2017-02-06 09:26:49 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-02-06 17:13:38 +0000 |
commit | abc88d26365efa14b58d26ca3b8fbfb58a7dcbad (patch) | |
tree | fb67e60271b59650ff09dba4c4cfdce1fa8393e1 /src/xps/SkXPSDevice.h | |
parent | ef46b2f8e44e45b6cb9723df09ddbc5493afd3e9 (diff) |
SkXPS: Begin refactoring SkXPSDevice
A later CL will move all document-level fields and methods into
SkXPSDocument.
* SkXPSDocument cnstructor requires a xps factory ptr.
* All device layers share ownership of a single factory.
* renames SkDocument_XPS to the easier-to-say SkXPSDocument.
* Moves autocoinitialize to DM.
TODO: pipe the IXpsOMObjectFactory* into the SkDocument api.
No change in rendered documents.
Change-Id: I8a4680a3603951b1ce5f6c1de48714d4902061a9
Reviewed-on: https://skia-review.googlesource.com/7998
Reviewed-by: Ben Wagner <bungeman@google.com>
Commit-Queue: Hal Canary <halcanary@google.com>
Diffstat (limited to 'src/xps/SkXPSDevice.h')
-rw-r--r-- | src/xps/SkXPSDevice.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/xps/SkXPSDevice.h b/src/xps/SkXPSDevice.h index db8436d5e8..0ad9939509 100644 --- a/src/xps/SkXPSDevice.h +++ b/src/xps/SkXPSDevice.h @@ -40,7 +40,7 @@ public: SK_API SkXPSDevice(SkISize); SK_API virtual ~SkXPSDevice(); - bool beginPortfolio(SkWStream* outputStream); + bool beginPortfolio(SkWStream* outputStream, IXpsOMObjectFactory*); /** @param unitsPerMeter converts geometry units into physical units. @param pixelsPerMeter resolution to use when geometry must be rasterized. @@ -161,9 +161,8 @@ private: }; friend HRESULT subset_typeface(TypefaceUse* current); - SkXPSDevice(SkISize, IXpsOMObjectFactory*); + bool createCanvasForLayer(); - SkAutoCoInitialize fAutoCo; SkTScopedComPtr<IXpsOMObjectFactory> fXpsFactory; SkTScopedComPtr<IStream> fOutputStream; SkTScopedComPtr<IXpsOMPackageWriter> fPackageWriter; |