Flutter Engine
The Flutter Engine
Public Member Functions | Static Public Member Functions | List of all members
GrPixmap Class Reference

#include <GrPixmap.h>

Inheritance diagram for GrPixmap:
GrPixmapBase< void, GrPixmap >

Public Member Functions

 GrPixmap ()=default
 
 GrPixmap (const GrPixmap &)=default
 
 GrPixmap (GrPixmap &&)=default
 
GrPixmapoperator= (const GrPixmap &)=default
 
GrPixmapoperator= (GrPixmap &&)=default
 
 GrPixmap (GrImageInfo info, void *addr, size_t rowBytes)
 
 GrPixmap (const SkPixmap &pixmap)
 
- Public Member Functions inherited from GrPixmapBase< void, GrPixmap >
const GrImageInfoinfo () const
 
const GrColorInfocolorInfo () 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
 
GrPixmap clip (SkISize surfaceDims, SkIPoint *surfacePt)
 

Static Public Member Functions

static GrPixmap Allocate (const GrImageInfo &info)
 

Additional Inherited Members

- Protected Member Functions inherited from GrPixmapBase< void, GrPixmap >
 GrPixmapBase ()=default
 
 GrPixmapBase (const GrPixmapBase &that)=default
 
 GrPixmapBase (GrPixmapBase &&that)=default
 
 GrPixmapBase (GrImageInfo info, 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 mutable pixels.

Definition at line 83 of file GrPixmap.h.

Constructor & Destructor Documentation

◆ GrPixmap() [1/5]

GrPixmap::GrPixmap ( )
default

◆ GrPixmap() [2/5]

GrPixmap::GrPixmap ( const GrPixmap )
default

◆ GrPixmap() [3/5]

GrPixmap::GrPixmap ( GrPixmap &&  )
default

◆ GrPixmap() [4/5]

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

Definition at line 91 of file GrPixmap.h.

92 : GrPixmapBase(std::move(info), addr, rowBytes) {}
const GrImageInfo & info() const
Definition: GrPixmap.h:17

◆ GrPixmap() [5/5]

GrPixmap::GrPixmap ( const SkPixmap pixmap)
inline

Definition at line 94 of file GrPixmap.h.

95 : GrPixmapBase(pixmap.info(), pixmap.writable_addr(), pixmap.rowBytes()) {}
size_t rowBytes() const
Definition: SkPixmap.h:145
const SkImageInfo & info() const
Definition: SkPixmap.h:135
void * writable_addr() const
Definition: SkPixmap.h:483

Member Function Documentation

◆ Allocate()

static GrPixmap GrPixmap::Allocate ( const GrImageInfo info)
inlinestatic

Returns a GrPixmap that owns its backing store. Copies of the pixmap (as GrPixmap or GrCPixmap) will share ownership.

Definition at line 101 of file GrPixmap.h.

101 {
102 size_t rb = info.minRowBytes();
103 size_t size = info.height()*rb;
104 if (!size) {
105 return {};
106 }
108 }
int height() const
Definition: GrImageInfo.h:56
size_t minRowBytes() const
Definition: GrImageInfo.h:60
GrPixmap()=default
static sk_sp< SkData > MakeUninitialized(size_t length)
Definition: SkData.cpp:116
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
Definition: switches.h:259

◆ operator=() [1/2]

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

◆ operator=() [2/2]

GrPixmap & GrPixmap::operator= ( GrPixmap &&  )
default

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