Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
GrCPixmap Class Reference

#include <GrPixmap.h>

Inheritance diagram for GrCPixmap:
GrPixmapBase< const void, GrCPixmap >

Public Member Functions

 GrCPixmap ()=default
 
 GrCPixmap (const GrCPixmap &)=default
 
 GrCPixmap (GrCPixmap &&)=default
 
GrCPixmapoperator= (const GrCPixmap &)=default
 
GrCPixmapoperator= (GrCPixmap &&)=default
 
 GrCPixmap (const GrPixmap &pixmap)
 
 GrCPixmap (const SkPixmap &pixmap)
 
 GrCPixmap (GrImageInfo info, const void *addr, size_t rowBytes)
 
- Public Member Functions inherited from GrPixmapBase< const void, GrCPixmap >
const GrImageInfoinfo () const
 
const GrColorInfocolorInfo () const
 
const void * addr () const
 
size_t rowBytes () const
 
bool hasPixels () const
 
bool ownsPixels () const
 
sk_sp< SkDatapixelStorage () const
 
int width () const
 
int height () const
 
SkISize dimensions () const
 
GrColorType colorType () const
 
SkAlphaType alphaType () const
 
SkColorSpacecolorSpace () const
 
sk_sp< SkColorSpacerefColorSpace () const
 
GrCPixmap clip (SkISize surfaceDims, SkIPoint *surfacePt)
 

Additional Inherited Members

- Protected Member Functions inherited from GrPixmapBase< const void, GrCPixmap >
 GrPixmapBase ()=default
 
 GrPixmapBase (const GrPixmapBase &that)=default
 
 GrPixmapBase (GrPixmapBase &&that)=default
 
 GrPixmapBase (GrImageInfo info, const void *addr, size_t rowBytes)
 
 GrPixmapBase (GrImageInfo info, sk_sp< SkData > storage, size_t rowBytes)
 
GrPixmapBaseoperator= (const GrPixmapBase &that)=default
 
GrPixmapBaseoperator= (GrPixmapBase &&that)=default
 

Detailed Description

A pixmap with immutable pixels. Note that this pixmap need not be the unique owner of the pixels and thus it is context-dependent whether the pixels could be manipulated externally.

Definition at line 119 of file GrPixmap.h.

Constructor & Destructor Documentation

◆ GrCPixmap() [1/6]

GrCPixmap::GrCPixmap ( )
default

◆ GrCPixmap() [2/6]

GrCPixmap::GrCPixmap ( const GrCPixmap )
default

◆ GrCPixmap() [3/6]

GrCPixmap::GrCPixmap ( GrCPixmap &&  )
default

◆ GrCPixmap() [4/6]

GrCPixmap::GrCPixmap ( const GrPixmap pixmap)
inline

Definition at line 127 of file GrPixmap.h.

127 {
128 if (auto storage = pixmap.pixelStorage()) {
129 *this = GrCPixmap(pixmap.info(), std::move(storage), pixmap.rowBytes());
130 } else {
131 *this = GrCPixmap(pixmap.info(), pixmap.addr(), pixmap.rowBytes());
132 }
133 }
GrCPixmap()=default
sk_sp< SkData > pixelStorage() const
Definition GrPixmap.h:25
const GrImageInfo & info() const
Definition GrPixmap.h:17
size_t rowBytes() const
Definition GrPixmap.h:21
T * addr() const
Definition GrPixmap.h:20

◆ GrCPixmap() [5/6]

GrCPixmap::GrCPixmap ( const SkPixmap pixmap)
inline

Definition at line 135 of file GrPixmap.h.

136 : GrPixmapBase(pixmap.info(), pixmap.addr(), pixmap.rowBytes()) {}
size_t rowBytes() const
Definition SkPixmap.h:145
const SkImageInfo & info() const
Definition SkPixmap.h:135
const void * addr() const
Definition SkPixmap.h:153

◆ GrCPixmap() [6/6]

GrCPixmap::GrCPixmap ( GrImageInfo  info,
const void *  addr,
size_t  rowBytes 
)
inline

Definition at line 138 of file GrPixmap.h.

139 : GrPixmapBase(std::move(info), addr, rowBytes) {}

Member Function Documentation

◆ operator=() [1/2]

GrCPixmap & GrCPixmap::operator= ( const GrCPixmap )
default

◆ operator=() [2/2]

GrCPixmap & GrCPixmap::operator= ( GrCPixmap &&  )
default

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