LibreOffice Module vcl (master)  1
Namespaces | Functions | Variables
utils.hxx File Reference
#include <vcl/skia/SkiaHelper.hxx>
#include <tools/gen.hxx>
#include <driverblocklist.hxx>
#include <vcl/bitmap.hxx>
#include <vcl/salgtype.hxx>
#include <SkRegion.h>
#include <SkSurface.h>
#include <tools/sk_app/VulkanWindowContext.h>
Include dependency graph for utils.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 SkiaHelper
 
 SkiaTests
 

Functions

GrDirectContext * SkiaHelper::getSharedGrDirectContext ()
 
void SkiaHelper::disableRenderMethod (RenderMethod method)
 
VCL_DLLPUBLIC sk_sp< SkSurface > SkiaHelper::createSkSurface (int width, int height, SkColorType type=kN32_SkColorType, SkAlphaType alpha=kPremul_SkAlphaType)
 
sk_sp< SkSurface > SkiaHelper::createSkSurface (const Size &size, SkColorType type=kN32_SkColorType, SkAlphaType alpha=kPremul_SkAlphaType)
 
sk_sp< SkSurface > SkiaHelper::createSkSurface (int width, int height, SkAlphaType alpha)
 
sk_sp< SkSurface > SkiaHelper::createSkSurface (const Size &size, SkAlphaType alpha)
 
VCL_DLLPUBLIC sk_sp< SkImage > SkiaHelper::createSkImage (const SkBitmap &bitmap)
 
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)
 
Size SkiaHelper::imageSize (const sk_sp< SkImage > &image)
 
VCL_DLLPUBLIC void SkiaHelper::prepareSkia (std::unique_ptr< sk_app::WindowContext >(*createVulkanWindowContext)(bool))
 
void SkiaHelper::addCachedImage (const OString &key, sk_sp< SkImage > image)
 
sk_sp< SkImage > SkiaHelper::findCachedImage (const OString &key)
 
void SkiaHelper::removeCachedImage (sk_sp< SkImage > image)
 
tools::Long SkiaHelper::maxImageCacheSize ()
 
VCL_DLLPUBLIC const SkSurfaceProps * SkiaHelper::surfaceProps ()
 
VCL_DLLPUBLIC void SkiaHelper::setPixelGeometry (SkPixelGeometry pixelGeometry)
 
SkSamplingOptions SkiaHelper::makeSamplingOptions (BmpScaleFlag scaling, const SkMatrix &matrix)
 
SkSamplingOptions SkiaHelper::makeSamplingOptions (BmpScaleFlag scaling, const Size &srcSize, const Size &destSize)
 
SkSamplingOptions SkiaHelper::makeSamplingOptions (const SalTwoRect &rPosAry)
 
void SkiaHelper::prefillSurface (const sk_sp< SkSurface > &surface)
 
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)
 
DriverBlocklist::DeviceVendor SkiaHelper::getVendor ()
 
VCL_DLLPUBLIC bool SkiaTests::matrixNeedsHighQuality (const SkMatrix &matrix)
 
template<typename charT , typename traits >
std::basic_ostream< charT, traits > & operator<< (std::basic_ostream< charT, traits > &stream, const SkRect &rectangle)
 
template<typename charT , typename traits >
std::basic_ostream< charT, traits > & operator<< (std::basic_ostream< charT, traits > &stream, const SkIRect &rectangle)
 
template<typename charT , typename traits >
std::basic_ostream< charT, traits > & operator<< (std::basic_ostream< charT, traits > &stream, const SkRegion &region)
 
template<typename charT , typename traits >
std::basic_ostream< charT, traits > & operator<< (std::basic_ostream< charT, traits > &stream, const SkMatrix &matrix)
 
template<typename charT , typename traits >
std::basic_ostream< charT, traits > & operator<< (std::basic_ostream< charT, traits > &stream, const SkImage &image)
 
template<typename charT , typename traits >
std::basic_ostream< charT, traits > & operator<< (std::basic_ostream< charT, traits > &stream, const sk_sp< SkImage > &image)
 

Variables

constexpr int SkiaHelper::downscaleRatioThreshold = 4
 
VCL_DLLPUBLIC uint32_t SkiaHelper::vendorId
 

Function Documentation

template<typename charT , typename traits >
std::basic_ostream<charT, traits>& operator<< ( std::basic_ostream< charT, traits > &  stream,
const SkImage &  image 
)
inline

Definition at line 215 of file utils.hxx.

template<typename charT , typename traits >
std::basic_ostream<charT, traits>& operator<< ( std::basic_ostream< charT, traits > &  stream,
const SkRegion &  region 
)
inline

Definition at line 192 of file utils.hxx.

References i.

template<typename charT , typename traits >
std::basic_ostream<charT, traits>& operator<< ( std::basic_ostream< charT, traits > &  stream,
const sk_sp< SkImage > &  image 
)
inline

Definition at line 224 of file utils.hxx.

template<typename charT , typename traits >
std::basic_ostream<charT, traits>& operator<< ( std::basic_ostream< charT, traits > &  stream,
const SkRect &  rectangle 
)
inline

Definition at line 170 of file utils.hxx.

References rectangle(), and stream.

template<typename charT , typename traits >
std::basic_ostream<charT, traits>& operator<< ( std::basic_ostream< charT, traits > &  stream,
const SkMatrix &  matrix 
)
inline

Definition at line 206 of file utils.hxx.

template<typename charT , typename traits >
std::basic_ostream<charT, traits>& operator<< ( std::basic_ostream< charT, traits > &  stream,
const SkIRect &  rectangle 
)
inline

Definition at line 181 of file utils.hxx.

References rectangle().