summaryrefslogtreecommitdiff
path: root/xfa/fxfa/cxfa_ffwidget.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2018-01-17 15:13:38 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-01-17 15:13:38 +0000
commitf22d4206c768856efdfbf0ec38af4386a706de3a (patch)
tree13b1918762a820760f4aa5f1d5e5544d13fa9b6a /xfa/fxfa/cxfa_ffwidget.cpp
parent6fded218eec8667a1c8dcd467645c31eee3c8a2f (diff)
downloadpdfium-f22d4206c768856efdfbf0ec38af4386a706de3a.tar.xz
Fold CXFA_ImageRenderer::Start into constructor
This CL moves the code to initialize the variables into the constructor and changes the Start command into the StartDIB command. Change-Id: Iba3c1dcd9a872b4e2a1eadf87050f39c73b8e704 Reviewed-on: https://pdfium-review.googlesource.com/23050 Reviewed-by: Ryan Harrison <rharrison@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/cxfa_ffwidget.cpp')
-rw-r--r--xfa/fxfa/cxfa_ffwidget.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/xfa/fxfa/cxfa_ffwidget.cpp b/xfa/fxfa/cxfa_ffwidget.cpp
index 6aa6fd61b8..def2ee3139 100644
--- a/xfa/fxfa/cxfa_ffwidget.cpp
+++ b/xfa/fxfa/cxfa_ffwidget.cpp
@@ -1091,9 +1091,9 @@ void XFA_DrawImage(CXFA_Graphics* pGS,
CFX_Matrix(rtFit.width, 0, 0, rtFit.height, rtFit.left, rtFit.top));
mtImage.Concat(matrix);
- CXFA_ImageRenderer imageRender;
- if (!imageRender.Start(pRenderDevice, pDIBitmap, 0, 255, &mtImage,
- FXDIB_INTERPOL)) {
+ CXFA_ImageRenderer imageRender(pRenderDevice, pDIBitmap, 0, 255, &mtImage,
+ FXDIB_INTERPOL);
+ if (!imageRender.Start()) {
return;
}
while (imageRender.Continue())