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 ConvertToGreyscale () override
 
const sk_sp< SkImage > & GetSkImage () const
 
const sk_sp< SkImage > & GetAlphaSkImage () 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 EnsureBitmapData ()
 
void EnsureBitmapData () const
 
void EnsureBitmapUniqueData ()
 
bool CreateBitmapData ()
 
SkBitmap GetAsSkBitmap () const
 
void verify () const
 

Private Attributes

BitmapPalette mPalette
 
int mBitCount = 0
 
Size mSize
 
boost::shared_ptr< sal_uInt8[]> mBuffer
 
int mScanlineSize
 
SkBitmap mBitmap
 
sk_sp< SkImage > mImage
 
sk_sp< SkImage > mAlphaImage
 
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.

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.

bool 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 78 of file skia/salbmp.hxx.

References EnsureBitmapData().

Referenced by EnsureBitmapData().

void SkiaSalBitmap::EnsureBitmapUniqueData ( )
private
const sk_sp<SkImage>& SkiaSalBitmap::GetAlphaSkImage ( ) const
SkBitmap SkiaSalBitmap::GetAsSkBitmap ( ) const
private
virtual sal_uInt16 SkiaSalBitmap::GetBitCount ( ) const
overridevirtual

Implements SalBitmap.

virtual Size SkiaSalBitmap::GetSize ( ) const
overridevirtual

Implements SalBitmap.

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

Implements SalBitmap.

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
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 93 of file skia/salbmp.hxx.

Member Data Documentation

sk_sp<SkImage> SkiaSalBitmap::mAlphaImage
private

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

int SkiaSalBitmap::mBitCount = 0
private

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

SkBitmap SkiaSalBitmap::mBitmap
private

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

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

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

sk_sp<SkImage> SkiaSalBitmap::mImage
private

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

BitmapPalette SkiaSalBitmap::mPalette
private

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

int SkiaSalBitmap::mScanlineSize
private

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

Size SkiaSalBitmap::mSize
private

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

int SkiaSalBitmap::mWriteAccessCount = 0
private

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


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