summaryrefslogtreecommitdiff
path: root/fpdfsdk/src/fpdf_progressive.cpp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-07-15 15:30:18 -0700
committerTom Sepez <tsepez@chromium.org>2015-07-15 15:30:18 -0700
commite3db14f4d0e11ed30bd7e014ffa8cea9d6fb93ad (patch)
treeda2f8308537c983db0bf14f10c515263501639a6 /fpdfsdk/src/fpdf_progressive.cpp
parent97dd3fec106ac8a945e03ed1509af0a8b73da993 (diff)
downloadpdfium-e3db14f4d0e11ed30bd7e014ffa8cea9d6fb93ad.tar.xz
Kill Func_Renderpage global function pointer, it never changes.
Kill some unused macros along the way, and put prototypes in header files. R=thestig@chromium.org Review URL: https://codereview.chromium.org/1233203004 .
Diffstat (limited to 'fpdfsdk/src/fpdf_progressive.cpp')
-rw-r--r--fpdfsdk/src/fpdf_progressive.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/fpdfsdk/src/fpdf_progressive.cpp b/fpdfsdk/src/fpdf_progressive.cpp
index f13ef9ac54..aab1cb6163 100644
--- a/fpdfsdk/src/fpdf_progressive.cpp
+++ b/fpdfsdk/src/fpdf_progressive.cpp
@@ -9,11 +9,6 @@
#include "../include/fsdk_define.h"
#include "../include/fsdk_rendercontext.h"
-extern void (*Func_RenderPage)( CRenderContext*, FPDF_PAGE page, int start_x, int start_y, int size_x, int size_y,
- int rotate, int flags,FX_BOOL bNeedToRestore, IFSDK_PAUSE_Adapter * pause );
-
-extern void DropContext(void* data);
-
DLLEXPORT int STDCALL FPDF_RenderPageBitmap_Start( FPDF_BITMAP bitmap, FPDF_PAGE page,
int start_x, int start_y, int size_x,
int size_y, int rotate, int flags,
@@ -46,7 +41,8 @@ DLLEXPORT int STDCALL FPDF_RenderPageBitmap_Start( FPDF_BITMAP bitmap, FPDF_PAGE
#endif
IFSDK_PAUSE_Adapter IPauseAdapter(pause);
- Func_RenderPage(pContext, page, start_x, start_y, size_x, size_y, rotate, flags,FALSE, &IPauseAdapter);
+ FPDF_RenderPage_Retail(pContext, page, start_x, start_y, size_x, size_y,
+ rotate, flags,FALSE, &IPauseAdapter);
if ( pContext->m_pRenderer )
{