LibreOffice Module vcl (master)  1
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Friends | List of all members
X11SkiaSalGraphicsImpl Class Referencefinal

#include <gdiimpl.hxx>

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

Public Member Functions

 X11SkiaSalGraphicsImpl (X11SalGraphics &rParent)
 
virtual ~X11SkiaSalGraphicsImpl () override
 
virtual void Init () override
 
virtual void DeInit () override
 
virtual void freeResources () override
 
- Public Member Functions inherited from SkiaSalGraphicsImpl
 SkiaSalGraphicsImpl (SalGraphics &pParent, SalGeometryProvider *pProvider)
 
virtual ~SkiaSalGraphicsImpl () 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)
 
void drawGenericLayout (const GenericSalLayout &layout, Color textColor, const SkFont &font, GlyphOrientation glyphOrientation)
 
- Public Member Functions inherited from SalGraphicsImpl
virtual ~SalGraphicsImpl ()
 
- Public Member Functions inherited from X11GraphicsImpl
virtual ~X11GraphicsImpl ()
 

Static Public Member Functions

static void prepareSkia ()
 

Private Member Functions

virtual void createWindowContext () override
 
virtual void performFlush () override
 
virtual bool avoidRecreateByResize () const override
 

Static Private Member Functions

static std::unique_ptr< sk_app::WindowContext > createWindowContext (Display *display, Drawable drawable, const XVisualInfo *visual, int width, int height, SkiaHelper::RenderMethod renderMethod, bool temporary)
 

Private Attributes

X11SalGraphicsmX11Parent
 

Friends

std::unique_ptr< sk_app::WindowContext > createVulkanWindowContext (bool)
 

Additional Inherited Members

- Public Types inherited from SkiaSalGraphicsImpl
enum  GlyphOrientation {
  GlyphOrientation::Apply,
  GlyphOrientation::Ignore
}
 
- Protected Member Functions inherited from SkiaSalGraphicsImpl
void preDraw ()
 
void postDraw ()
 
SkCanvas * getDrawCanvas ()
 
virtual void createSurface ()
 
void checkSurface ()
 
void recreateSurface ()
 
void destroySurface ()
 
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
 
- 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 20 of file skia/x11/gdiimpl.hxx.

Constructor & Destructor Documentation

X11SkiaSalGraphicsImpl::X11SkiaSalGraphicsImpl ( X11SalGraphics rParent)
virtual X11SkiaSalGraphicsImpl::~X11SkiaSalGraphicsImpl ( )
overridevirtual

Member Function Documentation

virtual bool X11SkiaSalGraphicsImpl::avoidRecreateByResize ( ) const
overrideprivatevirtual

Reimplemented from SkiaSalGraphicsImpl.

virtual void X11SkiaSalGraphicsImpl::createWindowContext ( )
overrideprivatevirtual

Implements SkiaSalGraphicsImpl.

static std::unique_ptr<sk_app::WindowContext> X11SkiaSalGraphicsImpl::createWindowContext ( Display display,
Drawable  drawable,
const XVisualInfo *  visual,
int  width,
int  height,
SkiaHelper::RenderMethod  renderMethod,
bool  temporary 
)
staticprivate
virtual void X11SkiaSalGraphicsImpl::DeInit ( )
overridevirtual

Reimplemented from SkiaSalGraphicsImpl.

virtual void X11SkiaSalGraphicsImpl::freeResources ( )
overridevirtual

Implements SalGraphicsImpl.

virtual void X11SkiaSalGraphicsImpl::Init ( )
overridevirtual

Reimplemented from SkiaSalGraphicsImpl.

virtual void X11SkiaSalGraphicsImpl::performFlush ( )
overrideprivatevirtual

Implements SkiaSalGraphicsImpl.

static void X11SkiaSalGraphicsImpl::prepareSkia ( )
static

Friends And Related Function Documentation

std::unique_ptr<sk_app::WindowContext> createVulkanWindowContext ( bool  )
friend

Member Data Documentation

X11SalGraphics& X11SkiaSalGraphicsImpl::mX11Parent
private

Definition at line 24 of file skia/x11/gdiimpl.hxx.


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