From b3b67620b9db518558f2912357581b600645ce68 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Mon, 19 Oct 2015 16:20:03 -0700 Subject: Merge to XFA: Refactor progressive renderer. Hand-application of diffs from https://codereview.chromium.org/1233453014/. This was an oversight, and was too old (pre-reformat) to apply cleanly. Checked against origin/master, only diffs are xfa related. R=thestig@chromium.org Review URL: https://codereview.chromium.org/1416793002 . --- fpdfsdk/src/fpdfview.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'fpdfsdk/src/fpdfview.cpp') diff --git a/fpdfsdk/src/fpdfview.cpp b/fpdfsdk/src/fpdfview.cpp index 8e794e1fd6..48c8de433f 100644 --- a/fpdfsdk/src/fpdfview.cpp +++ b/fpdfsdk/src/fpdfview.cpp @@ -856,14 +856,12 @@ void FPDF_RenderPage_Retail(CRenderContext* pContext, &matrix, TRUE, NULL); } - pContext->m_pRenderer = new CPDF_ProgressiveRenderer; - pContext->m_pRenderer->Start(pContext->m_pContext, pContext->m_pDevice, - pContext->m_pOptions, pause); + pContext->m_pRenderer = new CPDF_ProgressiveRenderer( + pContext->m_pContext, pContext->m_pDevice, pContext->m_pOptions); + pContext->m_pRenderer->Start(pause); if (bNeedToRestore) { pContext->m_pDevice->RestoreState(); } - - //#endif } DLLEXPORT int STDCALL FPDF_GetPageSizeByIndex(FPDF_DOCUMENT document, -- cgit v1.2.3