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"
30#if defined(PDF_USE_SKIA)
31 [[nodiscard]]
bool AttachCanvas(SkCanvas& canvas);
40 void Clear(uint32_t color);
45#if defined(PDF_USE_SKIA)
50 enum class RendererType {
57 static constexpr RendererType kDefaultRenderer = RendererType::kSkia;
59 static void SetRendererType(RendererType renderer_type);
63 bool AttachImpl(
RetainPtr<CFX_DIBitmap> pBitmap,
68 bool AttachAggImpl(
RetainPtr<CFX_DIBitmap> pBitmap,
73 bool CreateAgg(
int width,
78#if defined(PDF_USE_SKIA)
79 bool AttachSkiaImpl(RetainPtr<CFX_DIBitmap> pBitmap,
81 RetainPtr<CFX_DIBitmap> pBackdropBitmap,
84 bool CreateSkia(
int width,
87 RetainPtr<CFX_DIBitmap> pBackdropBitmap);
static bool UseSkiaRenderer()
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)
bool CreateWithBackdrop(int width, int height, FXDIB_Format format, RetainPtr< CFX_DIBitmap > backdrop)
bool Create(int width, int height, FXDIB_Format format)
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)
std::map< ByteString, RetainPtr< CPDF_Object >, std::less<> > DictMap
CPDF_Parser * GetParser() const
CPDF_Dictionary * GetMutableTrailerForTesting()
FPDF_DOCUMENT OpenSavedDocumentWithPassword(const char *password)
void CloseSavedDocument()
FPDF_PAGE LoadPage(int page_index)
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 LoadSavedPage(int page_index)
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_PAGEOBJECT FPDF_CALLCONV FPDFPage_GetObject(FPDF_PAGE page, int index)
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()