LibreOffice Module vcl (master)  1
Functions | Variables
SkiaHelper Namespace Reference

Functions

GrDirectContext * getSharedGrDirectContext ()
 
void disableRenderMethod (RenderMethod method)
 
VCL_DLLPUBLIC sk_sp< SkSurface > createSkSurface (int width, int height, SkColorType type=kN32_SkColorType, SkAlphaType alpha=kPremul_SkAlphaType)
 
sk_sp< SkSurface > createSkSurface (const Size &size, SkColorType type=kN32_SkColorType, SkAlphaType alpha=kPremul_SkAlphaType)
 
sk_sp< SkSurface > createSkSurface (int width, int height, SkAlphaType alpha)
 
sk_sp< SkSurface > createSkSurface (const Size &size, SkAlphaType alpha)
 
VCL_DLLPUBLIC sk_sp< SkImage > createSkImage (const SkBitmap &bitmap)
 
VCL_DLLPUBLIC sk_sp< SkImage > makeCheckedImageSnapshot (sk_sp< SkSurface > surface)
 
VCL_DLLPUBLIC sk_sp< SkImage > makeCheckedImageSnapshot (sk_sp< SkSurface > surface, const SkIRect &bounds)
 
VCL_DLLPUBLIC void prepareSkia (std::unique_ptr< sk_app::WindowContext >(*createVulkanWindowContext)(bool))
 
void addCachedImage (const OString &key, sk_sp< SkImage > image)
 
sk_sp< SkImage > findCachedImage (const OString &key)
 
void removeCachedImage (sk_sp< SkImage > image)
 
tools::Long maxImageCacheSize ()
 
VCL_DLLPUBLIC const SkSurfaceProps * surfaceProps ()
 
VCL_DLLPUBLIC void setPixelGeometry (SkPixelGeometry pixelGeometry)
 
SkSamplingOptions makeSamplingOptions (BmpScaleFlag scaling)
 
SkSamplingOptions makeSamplingOptions (const SalTwoRect &rPosAry)
 
void prefillSurface (const sk_sp< SkSurface > &surface)
 
VCL_DLLPUBLIC void dump (const SkBitmap &bitmap, const char *file)
 
VCL_DLLPUBLIC void dump (const sk_sp< SkImage > &image, const char *file)
 
VCL_DLLPUBLIC void dump (const sk_sp< SkSurface > &surface, const char *file)
 
DriverBlocklist::DeviceVendor getVendor ()
 
VCL_DLLPUBLIC bool isVCLSkiaEnabled ()
 

Variables

VCL_DLLPUBLIC uint32_t vendorId
 

Function Documentation

void SkiaHelper::addCachedImage ( const OString &  key,
sk_sp< SkImage >  image 
)
VCL_DLLPUBLIC sk_sp<SkImage> SkiaHelper::createSkImage ( const SkBitmap &  bitmap)
VCL_DLLPUBLIC sk_sp<SkSurface> SkiaHelper::createSkSurface ( int  width,
int  height,
SkColorType  type = kN32_SkColorType,
SkAlphaType  alpha = kPremul_SkAlphaType 
)

Referenced by createSkSurface().

sk_sp<SkSurface> SkiaHelper::createSkSurface ( const Size size,
SkColorType  type = kN32_SkColorType,
SkAlphaType  alpha = kPremul_SkAlphaType 
)
inline

Definition at line 46 of file utils.hxx.

References createSkSurface(), Size::Height(), type, and Size::Width().

sk_sp<SkSurface> SkiaHelper::createSkSurface ( int  width,
int  height,
SkAlphaType  alpha 
)
inline

Definition at line 52 of file utils.hxx.

References createSkSurface().

sk_sp<SkSurface> SkiaHelper::createSkSurface ( const Size size,
SkAlphaType  alpha 
)
inline

Definition at line 57 of file utils.hxx.

References createSkSurface(), Size::Height(), and Size::Width().

void SkiaHelper::disableRenderMethod ( RenderMethod  method)
VCL_DLLPUBLIC void SkiaHelper::dump ( const SkBitmap &  bitmap,
const char *  file 
)
VCL_DLLPUBLIC void SkiaHelper::dump ( const sk_sp< SkImage > &  image,
const char *  file 
)
VCL_DLLPUBLIC void SkiaHelper::dump ( const sk_sp< SkSurface > &  surface,
const char *  file 
)
sk_sp<SkImage> SkiaHelper::findCachedImage ( const OString &  key)
GrDirectContext* SkiaHelper::getSharedGrDirectContext ( )
DriverBlocklist::DeviceVendor SkiaHelper::getVendor ( )
inline

Definition at line 118 of file utils.hxx.

References DriverBlocklist::GetVendorFromId().

VCL_DLLPUBLIC bool SkiaHelper::isVCLSkiaEnabled ( )
VCL_DLLPUBLIC sk_sp<SkImage> SkiaHelper::makeCheckedImageSnapshot ( sk_sp< SkSurface >  surface)
VCL_DLLPUBLIC sk_sp<SkImage> SkiaHelper::makeCheckedImageSnapshot ( sk_sp< SkSurface >  surface,
const SkIRect &  bounds 
)
SkSamplingOptions SkiaHelper::makeSamplingOptions ( BmpScaleFlag  scaling)
inline

Definition at line 86 of file utils.hxx.

References assert(), BestQuality, Default, and Fast.

SkSamplingOptions SkiaHelper::makeSamplingOptions ( const SalTwoRect rPosAry)
inline
tools::Long SkiaHelper::maxImageCacheSize ( )
void SkiaHelper::prefillSurface ( const sk_sp< SkSurface > &  surface)
VCL_DLLPUBLIC void SkiaHelper::prepareSkia ( std::unique_ptr< sk_app::WindowContext >(*)(bool)  createVulkanWindowContext)
void SkiaHelper::removeCachedImage ( sk_sp< SkImage >  image)
VCL_DLLPUBLIC void SkiaHelper::setPixelGeometry ( SkPixelGeometry  pixelGeometry)
VCL_DLLPUBLIC const SkSurfaceProps* SkiaHelper::surfaceProps ( )

Variable Documentation

VCL_DLLPUBLIC uint32_t SkiaHelper::vendorId