diff options
author | Cary Clark <caryclark@google.com> | 2016-03-14 16:51:29 -0400 |
---|---|---|
committer | Cary Clark <caryclark@google.com> | 2016-03-14 16:51:29 -0400 |
commit | 399be5bf559f72d4649a60320a3d802f6b21780b (patch) | |
tree | f2d0a20d0575c2ffa7ce103c012eb66b86e16ba7 /public | |
parent | 13ee55a8267963c9b39486a6a22646fbdd770742 (diff) | |
download | pdfium-399be5bf559f72d4649a60320a3d802f6b21780b.tar.xz |
Add bitmaps and skp output to Skia port
This is a first-cut at supporting bitmaps.
Also added a --skp option to pdfium_test to generate
a Skia picture file. The picture file can be loaded
in Skia's SampleApp, debugger, or skiaserver to
examine the generated picture.
(This also includes fixes suggested in the prior Skia CL.
My apologies for fat-fingers abandoning that one.)
R=dsinclair@chromium.org, tsepez@chromium.org, dsinclair
Review URL: https://codereview.chromium.org/1776313002 .
Diffstat (limited to 'public')
-rw-r--r-- | public/fpdf_formfill.h | 12 | ||||
-rw-r--r-- | public/fpdfview.h | 7 |
2 files changed, 19 insertions, 0 deletions
diff --git a/public/fpdf_formfill.h b/public/fpdf_formfill.h index 3aeccb92f3..81d6b691f0 100644 --- a/public/fpdf_formfill.h +++ b/public/fpdf_formfill.h @@ -1508,6 +1508,18 @@ DLLEXPORT void STDCALL FPDF_FFLDraw(FPDF_FORMHANDLE hHandle, int rotate, int flags); +#ifdef _SKIA_SUPPORT_ +DLLEXPORT void STDCALL FPDF_FFLRecord(FPDF_FORMHANDLE hHandle, + FPDF_RECORDER recorder, + FPDF_PAGE page, + int start_x, + int start_y, + int size_x, + int size_y, + int rotate, + int flags); +#endif + #ifdef PDF_ENABLE_XFA /** * Function: FPDF_HasXFAField diff --git a/public/fpdfview.h b/public/fpdfview.h index 68d0b1ad83..dad6299da5 100644 --- a/public/fpdfview.h +++ b/public/fpdfview.h @@ -37,6 +37,7 @@ typedef void* FPDF_PAGELINK; typedef void* FPDF_PAGEOBJECT; // Page object(text, path, etc) typedef void* FPDF_PAGERANGE; typedef void* FPDF_PATH; +typedef void* FPDF_RECORDER; typedef void* FPDF_SCHHANDLE; typedef void* FPDF_TEXTPAGE; @@ -582,6 +583,12 @@ DLLEXPORT void STDCALL FPDF_RenderPageBitmap(FPDF_BITMAP bitmap, int rotate, int flags); +#ifdef _SKIA_SUPPORT_ +DLLEXPORT FPDF_RECORDER STDCALL FPDF_RenderPageSkp(FPDF_PAGE page, + int size_x, + int size_y); +#endif + // Function: FPDF_ClosePage // Close a loaded PDF page. // Parameters: |