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

#include <salbmp.hxx>

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

Public Member Functions

 SkiaSalBitmap ()
 
 SkiaSalBitmap (const sk_sp< SkImage > &image)
 
virtual ~SkiaSalBitmap () override
 
virtual bool Create (const Size &rSize, sal_uInt16 nBitCount, const BitmapPalette &rPal) override
 
virtual bool Create (const SalBitmap &rSalBmp) override
 
virtual bool Create (const SalBitmap &rSalBmp, SalGraphics *pGraphics) override
 
virtual bool Create (const SalBitmap &rSalBmp, sal_uInt16 nNewBitCount) override
 
virtual bool Create (const css::uno::Reference< css::rendering::XBitmapCanvas > &rBitmapCanvas, Size &rSize, bool bMask=false) override
 
virtual void Destroy () final override
 
virtual Size GetSize () const override
 
virtual sal_uInt16 GetBitCount () const override
 
virtual BitmapBufferAcquireBuffer (BitmapAccessMode nMode) override
 
virtual void ReleaseBuffer (BitmapBuffer *pBuffer, BitmapAccessMode nMode) override
 
virtual bool GetSystemData (BitmapSystemData &rData) override
 
virtual bool ScalingSupported () const override
 
virtual bool Scale (const double &rScaleX, const double &rScaleY, BmpScaleFlag nScaleFlag) override
 
virtual bool Replace (const Color &rSearchColor, const Color &rReplaceColor, sal_uInt8 nTol) override
 
virtual bool InterpretAs8Bit () override
 
virtual bool ConvertToGreyscale () override
 
virtual bool Erase (const Color &color) override
 
const BitmapPalettePalette () const
 
bool PreferSkShader () const
 
const sk_sp< SkImage > & GetSkImage () const
 
sk_sp< SkShader > GetSkShader () const
 
const sk_sp< SkImage > & GetAlphaSkImage () const
 
sk_sp< SkShader > GetAlphaSkShader () const
 
OString GetImageKey () const
 
OString GetAlphaImageKey () const
 
bool IsFullyOpaqueAsAlpha () const
 
void dump (const char *file) const
 
- Public Member Functions inherited from SalBitmap
 SalBitmap ()
 
virtual ~SalBitmap ()
 
void DropScaledCache ()
 
void GetChecksum (BitmapChecksum &rChecksum) const
 
void InvalidateChecksum ()
 

Private Member Functions

void ResetCachedData ()
 
void ResetToSkImage (sk_sp< SkImage > image)
 
void ResetCachedDataBySize ()
 
void EnsureBitmapData ()
 
void EnsureBitmapData () const
 
void EnsureBitmapUniqueData ()
 
void CreateBitmapData ()
 
bool ComputeScanlineSize ()
 
void EraseInternal ()
 
SkBitmap GetAsSkBitmap () const
 
bool ConserveMemory () const
 
void verify () const
 

Private Attributes

BitmapPalette mPalette
 
int mBitCount = 0
 
Size mSize
 
boost::shared_ptr< sal_uInt8[]> mBuffer
 
int mScanlineSize
 
sk_sp< SkImage > mImage
 
sk_sp< SkImage > mAlphaImage
 
Size mPixelsSize
 
SkFilterQuality mScaleQuality = kHigh_SkFilterQuality
 
bool mEraseColorSet = false
 
Color mEraseColor
 
int mWriteAccessCount = 0
 

Friends

template<typename charT , typename traits >
std::basic_ostream< charT, traits > & operator<< (std::basic_ostream< charT, traits > &stream, const SkiaSalBitmap *bitmap)
 

Additional Inherited Members

- Protected Types inherited from SalBitmap
enum  BitConvert {
  BitConvert::A8,
  BitConvert::RGB,
  BitConvert::BGR,
  BitConvert::RGBA,
  BitConvert::BGRA
}
 
- Protected Member Functions inherited from SalBitmap
virtual void updateChecksum () const
 
- Static Protected Member Functions inherited from SalBitmap
static std::unique_ptr< sal_uInt8[] > convertDataBitCount (const sal_uInt8 *src, int width, int height, int bitCount, int bytesPerRow, const BitmapPalette &palette, BitConvert type)
 
- Protected Attributes inherited from SalBitmap
BitmapChecksum mnChecksum
 
bool mbChecksumValid
 

Detailed Description

Definition at line 29 of file skia/salbmp.hxx.

Constructor & Destructor Documentation

SkiaSalBitmap::SkiaSalBitmap ( )
SkiaSalBitmap::SkiaSalBitmap ( const sk_sp< SkImage > &  image)
virtual SkiaSalBitmap::~SkiaSalBitmap ( )
overridevirtual

Member Function Documentation

virtual BitmapBuffer* SkiaSalBitmap::AcquireBuffer ( BitmapAccessMode  nMode)
overridevirtual

Implements SalBitmap.

bool SkiaSalBitmap::ComputeScanlineSize ( )
private
bool SkiaSalBitmap::ConserveMemory ( ) const
private
virtual bool SkiaSalBitmap::ConvertToGreyscale ( )
overridevirtual

Reimplemented from SalBitmap.

virtual bool SkiaSalBitmap::Create ( const Size rSize,
sal_uInt16  nBitCount,
const BitmapPalette rPal 
)
overridevirtual

Implements SalBitmap.

virtual bool SkiaSalBitmap::Create ( const SalBitmap rSalBmp)
overridevirtual

Implements SalBitmap.

virtual bool SkiaSalBitmap::Create ( const SalBitmap rSalBmp,
SalGraphics pGraphics 
)
overridevirtual

Implements SalBitmap.

virtual bool SkiaSalBitmap::Create ( const SalBitmap rSalBmp,
sal_uInt16  nNewBitCount 
)
overridevirtual

Implements SalBitmap.

virtual bool SkiaSalBitmap::Create ( const css::uno::Reference< css::rendering::XBitmapCanvas > &  rBitmapCanvas,
Size rSize,
bool  bMask = false 
)
overridevirtual

Implements SalBitmap.

void SkiaSalBitmap::CreateBitmapData ( )
private
virtual void SkiaSalBitmap::Destroy ( )
finaloverridevirtual

Implements SalBitmap.

void SkiaSalBitmap::dump ( const char *  file) const
void SkiaSalBitmap::EnsureBitmapData ( )
private
void SkiaSalBitmap::EnsureBitmapData ( ) const
inlineprivate

Definition at line 98 of file skia/salbmp.hxx.

References EnsureBitmapData().

Referenced by EnsureBitmapData().

void SkiaSalBitmap::EnsureBitmapUniqueData ( )
private
virtual bool SkiaSalBitmap::Erase ( const Color color)
overridevirtual

Reimplemented from SalBitmap.

void SkiaSalBitmap::EraseInternal ( )
private
OString SkiaSalBitmap::GetAlphaImageKey ( ) const
const sk_sp<SkImage>& SkiaSalBitmap::GetAlphaSkImage ( ) const
sk_sp<SkShader> SkiaSalBitmap::GetAlphaSkShader ( ) const
SkBitmap SkiaSalBitmap::GetAsSkBitmap ( ) const
private
virtual sal_uInt16 SkiaSalBitmap::GetBitCount ( ) const
overridevirtual

Implements SalBitmap.

OString SkiaSalBitmap::GetImageKey ( ) const
virtual Size SkiaSalBitmap::GetSize ( ) const
overridevirtual

Implements SalBitmap.

const sk_sp<SkImage>& SkiaSalBitmap::GetSkImage ( ) const
sk_sp<SkShader> SkiaSalBitmap::GetSkShader ( ) const
virtual bool SkiaSalBitmap::GetSystemData ( BitmapSystemData rData)
overridevirtual

Implements SalBitmap.

virtual bool SkiaSalBitmap::InterpretAs8Bit ( )
overridevirtual

Reimplemented from SalBitmap.

bool SkiaSalBitmap::IsFullyOpaqueAsAlpha ( ) const
const BitmapPalette& SkiaSalBitmap::Palette ( ) const
inline

Definition at line 64 of file skia/salbmp.hxx.

bool SkiaSalBitmap::PreferSkShader ( ) const
virtual void SkiaSalBitmap::ReleaseBuffer ( BitmapBuffer pBuffer,
BitmapAccessMode  nMode 
)
overridevirtual

Implements SalBitmap.

virtual bool SkiaSalBitmap::Replace ( const Color rSearchColor,
const Color rReplaceColor,
sal_uInt8  nTol 
)
overridevirtual

Implements SalBitmap.

void SkiaSalBitmap::ResetCachedData ( )
private
void SkiaSalBitmap::ResetCachedDataBySize ( )
private
void SkiaSalBitmap::ResetToSkImage ( sk_sp< SkImage >  image)
private
virtual bool SkiaSalBitmap::Scale ( const double &  rScaleX,
const double &  rScaleY,
BmpScaleFlag  nScaleFlag 
)
overridevirtual

Implements SalBitmap.

virtual bool SkiaSalBitmap::ScalingSupported ( ) const
overridevirtual

Implements SalBitmap.

void SkiaSalBitmap::verify ( ) const
private

Friends And Related Function Documentation

template<typename charT , typename traits >
std::basic_ostream<charT, traits>& operator<< ( std::basic_ostream< charT, traits > &  stream,
const SkiaSalBitmap bitmap 
)
friend

Definition at line 119 of file skia/salbmp.hxx.

Member Data Documentation

sk_sp<SkImage> SkiaSalBitmap::mAlphaImage
private

Definition at line 155 of file skia/salbmp.hxx.

int SkiaSalBitmap::mBitCount = 0
private

Definition at line 142 of file skia/salbmp.hxx.

boost::shared_ptr<sal_uInt8[]> SkiaSalBitmap::mBuffer
private

Definition at line 152 of file skia/salbmp.hxx.

Color SkiaSalBitmap::mEraseColor
private

Definition at line 162 of file skia/salbmp.hxx.

bool SkiaSalBitmap::mEraseColorSet = false
private

Definition at line 161 of file skia/salbmp.hxx.

sk_sp<SkImage> SkiaSalBitmap::mImage
private

Definition at line 154 of file skia/salbmp.hxx.

BitmapPalette SkiaSalBitmap::mPalette
private

Definition at line 141 of file skia/salbmp.hxx.

Size SkiaSalBitmap::mPixelsSize
private

Definition at line 158 of file skia/salbmp.hxx.

SkFilterQuality SkiaSalBitmap::mScaleQuality = kHigh_SkFilterQuality
private

Definition at line 159 of file skia/salbmp.hxx.

int SkiaSalBitmap::mScanlineSize
private

Definition at line 153 of file skia/salbmp.hxx.

Size SkiaSalBitmap::mSize
private

Definition at line 143 of file skia/salbmp.hxx.

int SkiaSalBitmap::mWriteAccessCount = 0
private

Definition at line 164 of file skia/salbmp.hxx.


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