LibreOffice Module vcl (master)  1
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
WinSkiaSalGraphicsImpl Class Reference

#include <gdiimpl.hxx>

Inheritance diagram for WinSkiaSalGraphicsImpl:
[legend]
Collaboration diagram for WinSkiaSalGraphicsImpl:
[legend]

Public Member Functions

 WinSkiaSalGraphicsImpl (WinSalGraphics &rGraphics, SalGeometryProvider *mpProvider)
 
virtual void DeInit () override
 
virtual void freeResources () override
 
virtual bool UseRenderNativeControl () const override
 
virtual bool TryRenderCachedNativeControl (ControlCacheKey const &rControlCacheKey, int nX, int nY) override
 
virtual bool RenderAndCacheNativeControl (CompatibleDC &rWhite, CompatibleDC &rBlack, int nX, int nY, ControlCacheKey &aControlCacheKey) override
 
virtual bool UseTextDraw () const override
 
virtual void PreDrawText () override
 
virtual void PostDrawText () override
 
virtual void DrawTextMask (CompatibleDC::Texture *rTexture, Color nMaskColor, const SalTwoRect &rPosAry) override
 
virtual void DeferredTextDraw (const CompatibleDC::Texture *pTexture, Color nMaskColor, const SalTwoRect &rPosAry) override
 
- Public Member Functions inherited from SkiaSalGraphicsImpl
 SkiaSalGraphicsImpl (SalGraphics &pParent, SalGeometryProvider *pProvider)
 
virtual ~SkiaSalGraphicsImpl () override
 
virtual void Init () override
 
virtual OUString getRenderBackendName () const override
 
const vcl::RegiongetClipRegion () const
 
virtual bool setClipRegion (const vcl::Region &) override
 
virtual sal_uInt16 GetBitCount () const override
 
virtual long GetGraphicsWidth () const override
 
virtual void ResetClipRegion () override
 
virtual void SetLineColor () override
 
virtual void SetLineColor (Color nColor) override
 
virtual void SetFillColor () override
 
virtual void SetFillColor (Color nColor) override
 
virtual void SetXORMode (bool bSet, bool bInvertOnly) override
 
virtual void SetROPLineColor (SalROPColor nROPColor) override
 
virtual void SetROPFillColor (SalROPColor nROPColor) override
 
virtual void drawPixel (long nX, long nY) override
 
virtual void drawPixel (long nX, long nY, Color nColor) override
 
virtual void drawLine (long nX1, long nY1, long nX2, long nY2) override
 
virtual void drawRect (long nX, long nY, long nWidth, long nHeight) override
 
virtual void drawPolyLine (sal_uInt32 nPoints, const SalPoint *pPtAry) override
 
virtual void drawPolygon (sal_uInt32 nPoints, const SalPoint *pPtAry) override
 
virtual void drawPolyPolygon (sal_uInt32 nPoly, const sal_uInt32 *pPoints, PCONSTSALPOINT *pPtAry) override
 
virtual bool drawPolyPolygon (const basegfx::B2DHomMatrix &rObjectToDevice, const basegfx::B2DPolyPolygon &, double fTransparency) override
 
virtual bool drawPolyLine (const basegfx::B2DHomMatrix &rObjectToDevice, const basegfx::B2DPolygon &, double fTransparency, const basegfx::B2DVector &rLineWidths, const std::vector< double > *pStroke, basegfx::B2DLineJoin, css::drawing::LineCap, double fMiterMinimumAngle, bool bPixelSnapHairline) override
 
virtual bool drawPolyLineBezier (sal_uInt32 nPoints, const SalPoint *pPtAry, const PolyFlags *pFlgAry) override
 
virtual bool drawPolygonBezier (sal_uInt32 nPoints, const SalPoint *pPtAry, const PolyFlags *pFlgAry) override
 
virtual bool drawPolyPolygonBezier (sal_uInt32 nPoly, const sal_uInt32 *pPoints, const SalPoint *const *pPtAry, const PolyFlags *const *pFlgAry) override
 
virtual void copyArea (long nDestX, long nDestY, long nSrcX, long nSrcY, long nSrcWidth, long nSrcHeight, bool bWindowInvalidate) override
 
virtual void copyBits (const SalTwoRect &rPosAry, SalGraphics *pSrcGraphics) override
 
virtual bool blendBitmap (const SalTwoRect &, const SalBitmap &rBitmap) override
 
virtual bool blendAlphaBitmap (const SalTwoRect &, const SalBitmap &rSrcBitmap, const SalBitmap &rMaskBitmap, const SalBitmap &rAlphaBitmap) override
 
virtual void drawBitmap (const SalTwoRect &rPosAry, const SalBitmap &rSalBitmap) override
 
virtual void drawBitmap (const SalTwoRect &rPosAry, const SalBitmap &rSalBitmap, const SalBitmap &rMaskBitmap) override
 
virtual void drawMask (const SalTwoRect &rPosAry, const SalBitmap &rSalBitmap, Color nMaskColor) override
 
virtual std::shared_ptr< SalBitmapgetBitmap (long nX, long nY, long nWidth, long nHeight) override
 
virtual Color getPixel (long nX, long nY) override
 
virtual void invert (long nX, long nY, long nWidth, long nHeight, SalInvert nFlags) override
 
virtual void invert (sal_uInt32 nPoints, const SalPoint *pPtAry, SalInvert nFlags) override
 
virtual bool drawEPS (long nX, long nY, long nWidth, long nHeight, void *pPtr, sal_uInt32 nSize) override
 
virtual bool drawAlphaBitmap (const SalTwoRect &, const SalBitmap &rSourceBitmap, const SalBitmap &rAlphaBitmap) override
 Render bitmap with alpha channel. More...
 
virtual bool drawTransformedBitmap (const basegfx::B2DPoint &rNull, const basegfx::B2DPoint &rX, const basegfx::B2DPoint &rY, const SalBitmap &rSourceBitmap, const SalBitmap *pAlphaBitmap) override
 draw transformed bitmap (maybe with alpha) where Null, X, Y define the coordinate system More...
 
virtual bool drawAlphaRect (long nX, long nY, long nWidth, long nHeight, sal_uInt8 nTransparency) override
 Render solid rectangle with given transparency. More...
 
virtual bool drawGradient (const tools::PolyPolygon &rPolygon, const Gradient &rGradient) override
 
virtual bool supportsOperation (OutDevSupportType eType) const override
 
void dump (const char *file) const
 
void drawImage (const SalTwoRect &rPosAry, const sk_sp< SkImage > &aImage, SkBlendMode eBlendMode=SkBlendMode::kSrcOver)
 
void drawBitmap (const SalTwoRect &rPosAry, const SkBitmap &aBitmap, SkBlendMode eBlendMode=SkBlendMode::kSrcOver)
 
- Public Member Functions inherited from SalGraphicsImpl
virtual ~SalGraphicsImpl ()
 
- Public Member Functions inherited from WinSalGraphicsImplBase
virtual ~WinSalGraphicsImplBase ()
 
virtual bool TryRenderCachedNativeControl (const ControlCacheKey &, int, int)
 

Protected Member Functions

virtual void createWindowContext () override
 
virtual void performFlush () override
 
- Protected Member Functions inherited from SkiaSalGraphicsImpl
void preDraw ()
 
void postDraw ()
 
SkCanvas * getDrawCanvas ()
 
virtual void createSurface ()
 
void checkSurface ()
 
void recreateSurface ()
 
void destroySurface ()
 
virtual bool avoidRecreateByResize () const
 
void createWindowSurface ()
 
void createOffscreenSurface ()
 
void privateDrawAlphaRect (long nX, long nY, long nWidth, long nHeight, double nTransparency, bool blockAA=false)
 
void setProvider (SalGeometryProvider *provider)
 
bool isOffscreen () const
 
bool isGPU () const
 
void invert (basegfx::B2DPolygon const &rPoly, SalInvert eFlags)
 
int GetWidth () const
 
int GetHeight () const
 
void drawMask (const SalTwoRect &rPosAry, const sk_sp< SkImage > &rImage, Color nMaskColor)
 
SkCanvas * getXorCanvas ()
 
SkScalar toSkX (long x) const
 
SkScalar toSkY (long y) const
 

Private Attributes

WinSalGraphicsmWinParent
 

Additional Inherited Members

- Static Protected Member Functions inherited from SkiaSalGraphicsImpl
static void setCanvasClipRegion (SkCanvas *canvas, const vcl::Region &region)
 
- Protected Attributes inherited from SkiaSalGraphicsImpl
SalGraphicsmParent
 
SalGeometryProvidermProvider
 Pointer to the SalFrame or SalVirtualDevice. More...
 
std::unique_ptr< sk_app::WindowContext > mWindowContext
 
sk_sp< SkSurface > mSurface
 
bool mIsGPU
 
vcl::Region mClipRegion
 
Color mLineColor
 
Color mFillColor
 
bool mXorMode
 
SkBitmap mXorBitmap
 
std::unique_ptr< SkCanvas > mXorCanvas
 
SkRect mXorExtents
 
std::unique_ptr< SkiaFlushIdlemFlush
 
int mPendingPixelsToFlush
 

Detailed Description

Definition at line 59 of file skia/win/gdiimpl.hxx.

Constructor & Destructor Documentation

WinSkiaSalGraphicsImpl::WinSkiaSalGraphicsImpl ( WinSalGraphics rGraphics,
SalGeometryProvider mpProvider 
)

Member Function Documentation

virtual void WinSkiaSalGraphicsImpl::createWindowContext ( )
overrideprotectedvirtual

Implements SkiaSalGraphicsImpl.

virtual void WinSkiaSalGraphicsImpl::DeferredTextDraw ( const CompatibleDC::Texture pTexture,
Color  nMaskColor,
const SalTwoRect rPosAry 
)
overridevirtual

Reimplemented from WinSalGraphicsImplBase.

virtual void WinSkiaSalGraphicsImpl::DeInit ( )
overridevirtual

Reimplemented from SkiaSalGraphicsImpl.

virtual void WinSkiaSalGraphicsImpl::DrawTextMask ( CompatibleDC::Texture rTexture,
Color  nMaskColor,
const SalTwoRect rPosAry 
)
overridevirtual

Reimplemented from WinSalGraphicsImplBase.

virtual void WinSkiaSalGraphicsImpl::freeResources ( )
overridevirtual

Implements SalGraphicsImpl.

virtual void WinSkiaSalGraphicsImpl::performFlush ( )
overrideprotectedvirtual

Implements SkiaSalGraphicsImpl.

virtual void WinSkiaSalGraphicsImpl::PostDrawText ( )
overridevirtual

Reimplemented from WinSalGraphicsImplBase.

virtual void WinSkiaSalGraphicsImpl::PreDrawText ( )
overridevirtual

Reimplemented from WinSalGraphicsImplBase.

virtual bool WinSkiaSalGraphicsImpl::RenderAndCacheNativeControl ( CompatibleDC rWhite,
CompatibleDC rBlack,
int  nX,
int  nY,
ControlCacheKey aControlCacheKey 
)
overridevirtual

Reimplemented from WinSalGraphicsImplBase.

virtual bool WinSkiaSalGraphicsImpl::TryRenderCachedNativeControl ( ControlCacheKey const &  rControlCacheKey,
int  nX,
int  nY 
)
overridevirtual
virtual bool WinSkiaSalGraphicsImpl::UseRenderNativeControl ( ) const
inlineoverridevirtual

Reimplemented from WinSalGraphicsImplBase.

Definition at line 70 of file skia/win/gdiimpl.hxx.

virtual bool WinSkiaSalGraphicsImpl::UseTextDraw ( ) const
inlineoverridevirtual

Reimplemented from WinSalGraphicsImplBase.

Definition at line 76 of file skia/win/gdiimpl.hxx.

Member Data Documentation

WinSalGraphics& WinSkiaSalGraphicsImpl::mWinParent
private

Definition at line 62 of file skia/win/gdiimpl.hxx.


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