LibreOffice Module vcl (master) 1
Namespaces | Enumerations | 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 <test/GraphicsRenderTests.hxx>
#include <premac.h>
#include <SkRegion.h>
#include <SkSurface.h>
#include <tools/sk_app/WindowContext.h>
#include <postmac.h>
#include <string_view>
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

namespace  SkiaHelper
 
namespace  SkiaTests
 

Enumerations

enum  SkiaHelper::DirectImage {
  SkiaHelper::Yes ,
  SkiaHelper::No
}
 

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)
 
SkColor SkiaHelper::toSkColor (Color color)
 
SkColor SkiaHelper::toSkColorWithTransparency (Color aColor, double fTransparency)
 
SkColor SkiaHelper::toSkColorWithIntensity (Color color, int intensity)
 
Color SkiaHelper::fromSkColor (SkColor color)
 
void SkiaHelper::setBlenderInvert (SkPaint *paint)
 
void SkiaHelper::setBlenderXor (SkPaint *paint)
 
VCL_DLLPUBLIC void SkiaHelper::prepareSkia (std::unique_ptr< sk_app::WindowContext >(*createGpuWindowContext)(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 ()
 
uint32_t SkiaHelper::getSkImageChecksum (sk_sp< SkImage > image)
 
VCL_DLLPUBLIC const SkSurfaceProps * SkiaHelper::surfaceProps ()
 
VCL_DLLPUBLIC void SkiaHelper::setPixelGeometry (SkPixelGeometry pixelGeometry)
 
bool SkiaHelper::isUnitTestRunning (const char *name=nullptr)
 
BmpScaleFlag SkiaHelper::goodScalingQuality (bool isGPU)
 
SkSamplingOptions SkiaHelper::makeSamplingOptions (BmpScaleFlag scalingType, SkMatrix matrix, int scalingFactor)
 
SkSamplingOptions SkiaHelper::makeSamplingOptions (BmpScaleFlag scalingType, const Size &srcSize, Size destSize, int scalingFactor)
 
SkSamplingOptions SkiaHelper::makeSamplingOptions (const SalTwoRect &rPosAry, int scalingFactor, int srcScalingFactor, bool isGPU)
 
SkRect SkiaHelper::scaleRect (const SkRect &rect, int scaling)
 
SkIRect SkiaHelper::scaleRect (const SkIRect &rect, int scaling)
 
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

◆ operator<<() [1/6]

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 1 of file utils.hxx.

◆ operator<<() [2/6]

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

Definition at line 1 of file utils.hxx.

◆ operator<<() [3/6]

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

Definition at line 1 of file utils.hxx.

◆ operator<<() [4/6]

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

Definition at line 1 of file utils.hxx.

◆ operator<<() [5/6]

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

Definition at line 1 of file utils.hxx.

◆ operator<<() [6/6]

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

Definition at line 1 of file utils.hxx.