From 399be5bf559f72d4649a60320a3d802f6b21780b Mon Sep 17 00:00:00 2001 From: Cary Clark Date: Mon, 14 Mar 2016 16:51:29 -0400 Subject: 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 . --- core/include/fxge/fx_ge.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'core/include') diff --git a/core/include/fxge/fx_ge.h b/core/include/fxge/fx_ge.h index 8a62f13d14..8e9df8c544 100644 --- a/core/include/fxge/fx_ge.h +++ b/core/include/fxge/fx_ge.h @@ -16,6 +16,7 @@ class CFX_FontCache; class CFX_FaceCache; class IFX_RenderDeviceDriver; class CCodec_ModuleMgr; +class SkPictureRecorder; class CFX_GEModule { public: @@ -427,6 +428,7 @@ class CFX_FxgeDevice : public CFX_RenderDevice { protected: bool m_bOwnedBitmap; }; + class CFX_SkiaDevice : public CFX_RenderDevice { public: CFX_SkiaDevice(); @@ -438,12 +440,16 @@ class CFX_SkiaDevice : public CFX_RenderDevice { CFX_DIBitmap* pOriDevice = NULL, FX_BOOL bGroupKnockout = FALSE); + FX_BOOL AttachRecorder(SkPictureRecorder* recorder); + FX_BOOL Create(int width, int height, FXDIB_Format format, int dither_bits = 0, CFX_DIBitmap* pOriDevice = NULL); + SkPictureRecorder* CreateRecorder(int size_x, int size_y); + protected: FX_BOOL m_bOwnedBitmap; }; -- cgit v1.2.3