diff options
author | dan sinclair <dsinclair@chromium.org> | 2017-05-12 21:22:08 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-05-15 15:40:43 +0000 |
commit | d2afac1e9200478997e308eecc582a073185d7ab (patch) | |
tree | 1ec1a2c69168cb2ab3f1418fae0e9f1c754cebdb /core/fxge/win32/cfx_psrenderer.h | |
parent | 017ebba6940e0fe5ff39122c033600f88f24539a (diff) | |
download | pdfium-d2afac1e9200478997e308eecc582a073185d7ab.tar.xz |
Convert CPSOutput to an IFX_WriteStream
This Cl updates CPSOutput to inherit from IFX_WriteStream and converts
the CFX_PSRenderer to accept an IFX_WriteStream instead of a CPSOutput.
Change-Id: Ibde5c7da1c2f6df0a10cb6e9a470e18fbab167b8
Reviewed-on: https://pdfium-review.googlesource.com/5431
Reviewed-by: Nicolás Peña <npm@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fxge/win32/cfx_psrenderer.h')
-rw-r--r-- | core/fxge/win32/cfx_psrenderer.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/core/fxge/win32/cfx_psrenderer.h b/core/fxge/win32/cfx_psrenderer.h index 5768d0770f..01a9001b62 100644 --- a/core/fxge/win32/cfx_psrenderer.h +++ b/core/fxge/win32/cfx_psrenderer.h @@ -10,10 +10,11 @@ #include <memory> #include <vector> +#include "core/fxcrt/cfx_retain_ptr.h" #include "core/fxcrt/fx_coordinates.h" +#include "core/fxcrt/fx_stream.h" #include "core/fxcrt/fx_system.h" #include "core/fxge/cfx_graphstatedata.h" -#include "core/fxge/win32/cpsoutput.h" class CFX_DIBSource; class CFX_FaceCache; @@ -29,7 +30,7 @@ class CFX_PSRenderer { CFX_PSRenderer(); ~CFX_PSRenderer(); - void Init(CPSOutput* pOutput, + void Init(const CFX_RetainPtr<IFX_WriteStream>& stream, int pslevel, int width, int height, @@ -85,7 +86,7 @@ class CFX_PSRenderer { int* ps_glyphindex); void WritePSBinary(const uint8_t* data, int len); - CPSOutput* m_pOutput; + CFX_RetainPtr<IFX_WriteStream> m_pStream; int m_PSLevel; CFX_GraphStateData m_CurGraphState; bool m_bGraphStateSet; |