summaryrefslogtreecommitdiff
path: root/xfa/fxfa/cxfa_rendercontext.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-05-04 14:08:01 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-05-04 18:34:17 +0000
commitcf53b788ca1c097c0cbbca3dee048520eb9dabd4 (patch)
tree907214b67e73326c9c52648c20b97d31c80a993b /xfa/fxfa/cxfa_rendercontext.h
parentc0aefd45c89a2980de8965f12bc80db408dfa78c (diff)
downloadpdfium-cf53b788ca1c097c0cbbca3dee048520eb9dabd4.tar.xz
Cleanup CXFA_RenderContext
Move StartRender into the constructor, remove StopRender as it will be handled by the destructor. Remove RenderOptions as they are always set the same way. Change-Id: Iddbd6849199cbe255a5e1694164de5556a34f57c Reviewed-on: https://pdfium-review.googlesource.com/4876 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'xfa/fxfa/cxfa_rendercontext.h')
-rw-r--r--xfa/fxfa/cxfa_rendercontext.h23
1 files changed, 4 insertions, 19 deletions
diff --git a/xfa/fxfa/cxfa_rendercontext.h b/xfa/fxfa/cxfa_rendercontext.h
index d241f448d7..0fd1dc9e1f 100644
--- a/xfa/fxfa/cxfa_rendercontext.h
+++ b/xfa/fxfa/cxfa_rendercontext.h
@@ -11,34 +11,19 @@
#include "xfa/fxfa/fxfa.h"
-class CXFA_RenderOptions {
- public:
- CXFA_RenderOptions() : m_bPrint(false), m_bHighlight(true) {}
-
- bool m_bPrint;
- bool m_bHighlight;
-};
-
class CXFA_RenderContext {
public:
- CXFA_RenderContext();
+ CXFA_RenderContext(CXFA_FFPageView* pPageView,
+ const CFX_RectF& clipRect,
+ const CFX_Matrix& matrix);
~CXFA_RenderContext();
- int32_t StartRender(CXFA_FFPageView* pPageView,
- CFX_Graphics* pGS,
- const CFX_Matrix& matrix,
- const CXFA_RenderOptions& options);
- int32_t DoRender();
- void StopRender();
+ void DoRender(CFX_Graphics* gs);
private:
std::unique_ptr<IXFA_WidgetIterator> m_pWidgetIterator;
CXFA_FFWidget* m_pWidget;
- CXFA_FFPageView* m_pPageView;
- CFX_Graphics* m_pGS;
CFX_Matrix m_matrix;
- CXFA_RenderOptions m_options;
- uint32_t m_dwStatus;
CFX_RectF m_rtClipRect;
};