Commit 4376d2c0 authored by Lei Zhang's avatar Lei Zhang Committed by Commit Bot

Fix some nits in PDFiumEngine.

Change-Id: Id31a0a4d443c19da2be8b47a1074b14faa548794
Reviewed-on: https://chromium-review.googlesource.com/1170566Reviewed-by: default avatarHenrique Nakashima <hnakashima@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/master@{#582197}
parent 64356c22
......@@ -2858,7 +2858,7 @@ bool PDFiumEngine::ContinuePaint(int progressive_index,
int rv;
FPDF_PAGE page = pages_[page_index]->GetPage();
if (progressive_paints_[progressive_index].bitmap()) {
rv = FPDF_RenderPage_Continue(page, static_cast<IFSDK_PAUSE*>(this));
rv = FPDF_RenderPage_Continue(page, this);
} else {
int start_x;
int start_y;
......@@ -2872,12 +2872,11 @@ bool PDFiumEngine::ContinuePaint(int progressive_index,
0xFFFFFFFF);
rv = FPDF_RenderPageBitmap_Start(new_bitmap.get(), page, start_x, start_y,
size_x, size_y, current_rotation_,
GetRenderingFlags(),
static_cast<IFSDK_PAUSE*>(this));
GetRenderingFlags(), this);
progressive_paints_[progressive_index].SetBitmapAndImageData(
std::move(new_bitmap), *image_data);
}
return rv != FPDF_RENDER_TOBECOUNTINUED;
return rv != FPDF_RENDER_TOBECONTINUED;
}
void PDFiumEngine::FinishPaint(int progressive_index,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment