Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(128)

Unified Diff: pdf/pdfium/pdfium_engine.h

Issue 2541843005: Revert "Printing: Load the source PDF only once." (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pdf/pdf_engine.h ('k') | pdf/pdfium/pdfium_engine.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pdf/pdfium/pdfium_engine.h
diff --git a/pdf/pdfium/pdfium_engine.h b/pdf/pdfium/pdfium_engine.h
index 4795b16ac359bc4d175825005caf9c27fdef4d59..0334a602433e801f199023f35b8f4e31e03e6837 100644
--- a/pdf/pdfium/pdfium_engine.h
+++ b/pdf/pdfium/pdfium_engine.h
@@ -771,7 +771,8 @@ class PDFiumEngineExports : public PDFEngineExports {
// PDFEngineExports:
#if defined(OS_WIN)
- bool RenderPDFPageToDC(void* pdf_handle,
+ bool RenderPDFPageToDC(const void* pdf_buffer,
+ int buffer_size,
int page_number,
const RenderingSettings& settings,
HDC dc) override;
@@ -780,17 +781,17 @@ class PDFiumEngineExports : public PDFEngineExports {
void SetPDFUseGDIPrinting(bool enable) override;
#endif // defined(OS_WIN)
- bool RenderPDFPageToBitmap(void* pdf_handle,
+ bool RenderPDFPageToBitmap(const void* pdf_buffer,
+ int pdf_buffer_size,
int page_number,
const RenderingSettings& settings,
void* bitmap_buffer) override;
bool GetPDFDocInfo(const void* pdf_buffer,
int buffer_size,
int* page_count,
- double* max_page_width,
- void** pdf_handle) override;
- void ReleasePDFHandle(void* pdf_handle) override;
- bool GetPDFPageSizeByIndex(void* pdf_handle,
+ double* max_page_width) override;
+ bool GetPDFPageSizeByIndex(const void* pdf_buffer,
+ int pdf_buffer_size,
int page_number,
double* width,
double* height) override;
« no previous file with comments | « pdf/pdf_engine.h ('k') | pdf/pdfium/pdfium_engine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698