7#ifndef CORE_FXGE_CFX_DEFAULTRENDERDEVICE_H_
8#define CORE_FXGE_CFX_DEFAULTRENDERDEVICE_H_
12#include "core/fxcrt/retain_ptr.h"
13#include "core/fxge/cfx_renderdevice.h"
14#include "core/fxge/dib/fx_dib.h"
34 void Clear(uint32_t color);
36#if defined(PDF_USE_SKIA)
37 bool AttachCanvas(SkCanvas* canvas);
43#if defined(PDF_USE_SKIA)
48 enum class RendererType {
55 static constexpr RendererType kDefaultRenderer = RendererType::kSkia;
57 static void SetRendererType(RendererType renderer_type);
61 bool AttachImpl(
RetainPtr<CFX_DIBitmap> pBitmap,
66 bool AttachAggImpl(
RetainPtr<CFX_DIBitmap> pBitmap,
71 bool CreateAgg(
int width,
76#if defined(PDF_USE_SKIA)
77 bool AttachSkiaImpl(RetainPtr<CFX_DIBitmap> pBitmap,
79 RetainPtr<CFX_DIBitmap> pBackdropBitmap,
82 bool CreateSkia(
int width,
85 RetainPtr<CFX_DIBitmap> pBackdropBitmap);
static bool UseSkiaRenderer()
bool Create(int width, int height, FXDIB_Format format, RetainPtr< CFX_DIBitmap > pBackdropBitmap)
bool Attach(RetainPtr< CFX_DIBitmap > pBitmap)
~CFX_DefaultRenderDevice() override
bool AttachWithBackdropAndGroupKnockout(RetainPtr< CFX_DIBitmap > pBitmap, RetainPtr< CFX_DIBitmap > pBackdropBitmap, bool bGroupKnockout)
bool AttachWithRgbByteOrder(RetainPtr< CFX_DIBitmap > pBitmap, bool bRgbByteOrder)
CFX_DefaultRenderDevice()
void Clear(uint32_t color)
void RemoveGoodbyeObject()
void VerifySavedHelloWorldDocumentWithPassword(const char *password)
void VerifySavedModifiedHelloWorldDocumentWithPassword(const char *password)
void OpenAndVerifyHelloWorldDocumentWithPassword(const char *filename, const char *password)
void RemoveTrailerIdFromDocument()
RetainPtr< CPDF_Object > RemoveFor(ByteStringView key)
CPDF_Parser * GetParser() const
CPDF_Dictionary * GetMutableTrailerForTesting()
FPDF_DOCUMENT OpenSavedDocumentWithPassword(const char *password)
void CloseSavedDocument()
static void CompareBitmap(FPDF_BITMAP bitmap, int expected_width, int expected_height, const char *expected_md5sum)
void UnloadPage(FPDF_PAGE page)
FPDF_DOCUMENT document() const
void CloseSavedPage(FPDF_PAGE page)
FPDF_PAGE LoadPage(int page_number)
FPDF_PAGE LoadSavedPage(int page_number)
TEST_F(CPDFSecurityHandlerEmbedderTest, Unencrypted)
#define FPDF_FILLMODE_ALTERNATE
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFPath_SetDrawMode(FPDF_PAGEOBJECT path, int fillmode, FPDF_BOOL stroke)
FPDF_EXPORT void FPDF_CALLCONV FPDFPage_InsertObject(FPDF_PAGE page, FPDF_PAGEOBJECT page_object)
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFPageObj_SetFillColor(FPDF_PAGEOBJECT page_object, unsigned int R, unsigned int G, unsigned int B, unsigned int A)
FPDF_EXPORT FPDF_PAGEOBJECT FPDF_CALLCONV FPDFPageObj_CreateNewRect(float x, float y, float w, float h)
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFPage_GenerateContent(FPDF_PAGE page)
FPDF_EXPORT FPDF_DOCUMENT FPDF_CALLCONV FPDF_LoadCustomDocument(FPDF_FILEACCESS *pFileAccess, FPDF_BYTESTRING password)
const char * HelloWorldChecksum()
const char * HelloWorldRemovedChecksum()