Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
CFX_SkiaDeviceDriver Class Referencefinal

#include <fx_skia_device.h>

Inheritance diagram for CFX_SkiaDeviceDriver:
Collaboration diagram for CFX_SkiaDeviceDriver:

Public Member Functions

 ~CFX_SkiaDeviceDriver () override
DeviceType GetDeviceType () const override
int GetDeviceCaps (int caps_id) const override
void SaveState () override
void RestoreState (bool bKeepSaved) override
bool SetClip_PathFill (const CFX_Path &path, const CFX_Matrix *pObject2Device, const CFX_FillRenderOptions &fill_options) override
bool SetClip_PathStroke (const CFX_Path &path, const CFX_Matrix *pObject2Device, const CFX_GraphStateData *pGraphState) override
bool DrawPath (const CFX_Path &path, const CFX_Matrix *pObject2Device, const CFX_GraphStateData *pGraphState, uint32_t fill_color, uint32_t stroke_color, const CFX_FillRenderOptions &fill_options) override
bool FillRect (const FX_RECT &rect, uint32_t fill_color) override
FX_RECT GetClipBox () const override
bool GetDIBits (RetainPtr< CFX_DIBitmap > bitmap, int left, int top) const override
RetainPtr< const CFX_DIBitmapGetBackDrop () const override
bool SetDIBits (RetainPtr< const CFX_DIBBase > bitmap, uint32_t color, const FX_RECT &src_rect, int dest_left, int dest_top, BlendMode blend_type) override
bool SetBitsWithMask (RetainPtr< const CFX_DIBBase > bitmap, RetainPtr< const CFX_DIBBase > mask, int dest_left, int dest_top, float alpha, BlendMode blend_type) override
void SetGroupKnockout (bool group_knockout) override
void SyncInternalBitmaps () override
bool StretchDIBits (RetainPtr< const CFX_DIBBase > bitmap, uint32_t color, int dest_left, int dest_top, int dest_width, int dest_height, const FX_RECT *pClipRect, const FXDIB_ResampleOptions &options, BlendMode blend_type) override
StartResult StartDIBits (RetainPtr< const CFX_DIBBase > bitmap, float alpha, uint32_t color, const CFX_Matrix &matrix, const FXDIB_ResampleOptions &options, BlendMode blend_type) override
bool DrawBitsWithMask (RetainPtr< const CFX_DIBBase > bitmap, RetainPtr< const CFX_DIBBase > mask, float alpha, const CFX_Matrix &matrix, BlendMode blend_type)
bool DrawDeviceText (pdfium::span< const TextCharPos > pCharPos, CFX_Font *pFont, const CFX_Matrix &mtObject2Device, float font_size, uint32_t color, const CFX_TextRenderOptions &options) override
int GetDriverType () const override
bool DrawShading (const CPDF_ShadingPattern &pattern, const CFX_Matrix &matrix, const FX_RECT &clip_rect, int alpha) override
bool MultiplyAlpha (float alpha) override
bool MultiplyAlphaMask (RetainPtr< const CFX_DIBitmap > mask) override
void Clear (uint32_t color)
void Dump () const
Public Member Functions inherited from RenderDeviceDriverIface
virtual ~RenderDeviceDriverIface ()
virtual void SetBaseClip (const FX_RECT &rect)
virtual bool DrawCosmeticLine (const CFX_PointF &ptMoveTo, const CFX_PointF &ptLineTo, uint32_t color)
virtual bool ContinueDIBits (CFX_AggImageRenderer *handle, PauseIndicatorIface *pPause)

Static Public Member Functions

static std::unique_ptr< CFX_SkiaDeviceDriverCreate (RetainPtr< CFX_DIBitmap > pBitmap, bool bRgbByteOrder, RetainPtr< CFX_DIBitmap > pBackdropBitmap, bool bGroupKnockout)
static std::unique_ptr< CFX_SkiaDeviceDriverCreate (SkCanvas &canvas)

Additional Inherited Members

Public Types inherited from RenderDeviceDriverIface
enum class  Result { kFailure , kSuccess }

Detailed Description

Definition at line 38 of file fx_skia_device.h.

Constructor & Destructor Documentation

◆ ~CFX_SkiaDeviceDriver()

CFX_SkiaDeviceDriver::~CFX_SkiaDeviceDriver ( )
override

Definition at line 765 of file fx_skia_device.cpp.

References SyncInternalBitmaps().

Here is the call graph for this function:

Member Function Documentation

◆ Clear()

void CFX_SkiaDeviceDriver::Clear ( uint32_t color)

Definition at line 1572 of file fx_skia_device.cpp.

◆ Create() [1/2]

std::unique_ptr< CFX_SkiaDeviceDriver > CFX_SkiaDeviceDriver::Create ( RetainPtr< CFX_DIBitmap > pBitmap,
bool bRgbByteOrder,
RetainPtr< CFX_DIBitmap > pBackdropBitmap,
bool bGroupKnockout )
static

Definition at line 670 of file fx_skia_device.cpp.

◆ Create() [2/2]

std::unique_ptr< CFX_SkiaDeviceDriver > CFX_SkiaDeviceDriver::Create ( SkCanvas & canvas)
static

Definition at line 686 of file fx_skia_device.cpp.

◆ DrawBitsWithMask()

bool CFX_SkiaDeviceDriver::DrawBitsWithMask ( RetainPtr< const CFX_DIBBase > bitmap,
RetainPtr< const CFX_DIBBase > mask,
float alpha,
const CFX_Matrix & matrix,
BlendMode blend_type )

Definition at line 1493 of file fx_skia_device.cpp.

References CFX_FillRenderOptions::aliased_path.

Referenced by SetBitsWithMask().

Here is the caller graph for this function:

◆ DrawDeviceText()

bool CFX_SkiaDeviceDriver::DrawDeviceText ( pdfium::span< const TextCharPos > pCharPos,
CFX_Font * pFont,
const CFX_Matrix & mtObject2Device,
float font_size,
uint32_t color,
const CFX_TextRenderOptions & options )
overridevirtual

Reimplemented from RenderDeviceDriverIface.

Definition at line 771 of file fx_skia_device.cpp.

References CFX_Font::GetSubstFontItalicAngle(), CFX_Font::IsVertical(), and TextCharPos::m_bGlyphAdjust.

Here is the call graph for this function:

◆ DrawPath()

bool CFX_SkiaDeviceDriver::DrawPath ( const CFX_Path & path,
const CFX_Matrix * pObject2Device,
const CFX_GraphStateData * pGraphState,
uint32_t fill_color,
uint32_t stroke_color,
const CFX_FillRenderOptions & fill_options )
overridevirtual

Implements RenderDeviceDriverIface.

Definition at line 1084 of file fx_skia_device.cpp.

References CFX_GraphStateData::CFX_GraphStateData(), CFX_FillRenderOptions::aliased_path, CFX_FillRenderOptions::fill_type, CFX_FillRenderOptions::full_cover, and CFX_FillRenderOptions::kNoFill.

Here is the call graph for this function:

◆ DrawShading()

bool CFX_SkiaDeviceDriver::DrawShading ( const CPDF_ShadingPattern & pattern,
const CFX_Matrix & matrix,
const FX_RECT & clip_rect,
int alpha )
override

Definition at line 1160 of file fx_skia_device.cpp.

References CPDF_ShadingPattern::GetShadingType(), CPDF_MeshStream::IsEOF(), kAxialShading, kCoonsPatchMeshShading, CPDF_ColorSpace::kDeviceGray, CPDF_ColorSpace::kDeviceRGB, kRadialShading, CPDF_MeshStream::Load(), and CPDF_MeshStream::ReadFlag().

Here is the call graph for this function:

◆ Dump()

void CFX_SkiaDeviceDriver::Dump ( ) const

◆ FillRect()

bool CFX_SkiaDeviceDriver::FillRect ( const FX_RECT & rect,
uint32_t fill_color )
overridevirtual

Reimplemented from RenderDeviceDriverIface.

Definition at line 1149 of file fx_skia_device.cpp.

◆ GetBackDrop()

RetainPtr< const CFX_DIBitmap > CFX_SkiaDeviceDriver::GetBackDrop ( ) const
overridevirtual

Reimplemented from RenderDeviceDriverIface.

Definition at line 1379 of file fx_skia_device.cpp.

◆ GetClipBox()

FX_RECT CFX_SkiaDeviceDriver::GetClipBox ( ) const
overridevirtual

Implements RenderDeviceDriverIface.

Definition at line 1346 of file fx_skia_device.cpp.

◆ GetDeviceCaps()

int CFX_SkiaDeviceDriver::GetDeviceCaps ( int caps_id) const
overridevirtual

Implements RenderDeviceDriverIface.

Definition at line 1003 of file fx_skia_device.cpp.

Referenced by SetClip_PathFill().

Here is the caller graph for this function:

◆ GetDeviceType()

DeviceType CFX_SkiaDeviceDriver::GetDeviceType ( ) const
overridevirtual

Implements RenderDeviceDriverIface.

Definition at line 999 of file fx_skia_device.cpp.

References kDisplay.

◆ GetDIBits()

bool CFX_SkiaDeviceDriver::GetDIBits ( RetainPtr< CFX_DIBitmap > bitmap,
int left,
int top ) const
overridevirtual

Reimplemented from RenderDeviceDriverIface.

Definition at line 1351 of file fx_skia_device.cpp.

◆ GetDriverType()

int CFX_SkiaDeviceDriver::GetDriverType ( ) const
overridevirtual

Reimplemented from RenderDeviceDriverIface.

Definition at line 964 of file fx_skia_device.cpp.

◆ MultiplyAlpha()

bool CFX_SkiaDeviceDriver::MultiplyAlpha ( float alpha)
overridevirtual

Implements RenderDeviceDriverIface.

Definition at line 968 of file fx_skia_device.cpp.

◆ MultiplyAlphaMask()

bool CFX_SkiaDeviceDriver::MultiplyAlphaMask ( RetainPtr< const CFX_DIBitmap > mask)
overridevirtual

Implements RenderDeviceDriverIface.

Definition at line 981 of file fx_skia_device.cpp.

References k8bppMask.

◆ RestoreState()

void CFX_SkiaDeviceDriver::RestoreState ( bool bKeepSaved)
overridevirtual

Implements RenderDeviceDriverIface.

Definition at line 1027 of file fx_skia_device.cpp.

◆ SaveState()

void CFX_SkiaDeviceDriver::SaveState ( )
overridevirtual

Implements RenderDeviceDriverIface.

Definition at line 1023 of file fx_skia_device.cpp.

◆ SetBitsWithMask()

bool CFX_SkiaDeviceDriver::SetBitsWithMask ( RetainPtr< const CFX_DIBBase > bitmap,
RetainPtr< const CFX_DIBBase > mask,
int dest_left,
int dest_top,
float alpha,
BlendMode blend_type )
override

Definition at line 1538 of file fx_skia_device.cpp.

References DrawBitsWithMask(), and CFX_RenderDevice::GetFlipMatrix().

Here is the call graph for this function:

◆ SetClip_PathFill()

bool CFX_SkiaDeviceDriver::SetClip_PathFill ( const CFX_Path & path,
const CFX_Matrix * pObject2Device,
const CFX_FillRenderOptions & fill_options )
overridevirtual

Implements RenderDeviceDriverIface.

Definition at line 1034 of file fx_skia_device.cpp.

References CFX_FloatRect::CFX_FloatRect(), CFX_Matrix::CFX_Matrix(), FX_RECT::bottom, GetDeviceCaps(), CFX_FloatRect::GetOuterRect(), CFX_FloatRect::Intersect(), FX_RECT::left, FX_RECT::right, and FX_RECT::top.

Here is the call graph for this function:

◆ SetClip_PathStroke()

bool CFX_SkiaDeviceDriver::SetClip_PathStroke ( const CFX_Path & path,
const CFX_Matrix * pObject2Device,
const CFX_GraphStateData * pGraphState )
overridevirtual

Reimplemented from RenderDeviceDriverIface.

Definition at line 1067 of file fx_skia_device.cpp.

References CFX_FillRenderOptions::CFX_FillRenderOptions().

Here is the call graph for this function:

◆ SetDIBits()

bool CFX_SkiaDeviceDriver::SetDIBits ( RetainPtr< const CFX_DIBBase > bitmap,
uint32_t color,
const FX_RECT & src_rect,
int dest_left,
int dest_top,
BlendMode blend_type )
overridevirtual

Implements RenderDeviceDriverIface.

Definition at line 1383 of file fx_skia_device.cpp.

References FXDIB_ResampleOptions::bNoSmoothing, and CFX_RenderDevice::GetFlipMatrix().

Here is the call graph for this function:

◆ SetGroupKnockout()

void CFX_SkiaDeviceDriver::SetGroupKnockout ( bool group_knockout)
override

Definition at line 1554 of file fx_skia_device.cpp.

◆ StartDIBits()

RenderDeviceDriverIface::StartResult CFX_SkiaDeviceDriver::StartDIBits ( RetainPtr< const CFX_DIBBase > bitmap,
float alpha,
uint32_t color,
const CFX_Matrix & matrix,
const FXDIB_ResampleOptions & options,
BlendMode blend_type )
overridevirtual

◆ StretchDIBits()

bool CFX_SkiaDeviceDriver::StretchDIBits ( RetainPtr< const CFX_DIBBase > bitmap,
uint32_t color,
int dest_left,
int dest_top,
int dest_width,
int dest_height,
const FX_RECT * pClipRect,
const FXDIB_ResampleOptions & options,
BlendMode blend_type )
overridevirtual

Implements RenderDeviceDriverIface.

Definition at line 1404 of file fx_skia_device.cpp.

References FXDIB_ResampleOptions::bNoSmoothing, and CFX_RenderDevice::GetFlipMatrix().

Here is the call graph for this function:

◆ SyncInternalBitmaps()

void CFX_SkiaDeviceDriver::SyncInternalBitmaps ( )
override

Definition at line 1558 of file fx_skia_device.cpp.

Referenced by ~CFX_SkiaDeviceDriver().

Here is the caller graph for this function:

The documentation for this class was generated from the following files: