Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | List of all members
SkCanvasState Class Reference
Inheritance diagram for SkCanvasState:
SkCanvasState_v1

Public Member Functions

 SkCanvasState (int32_t version, SkCanvas *canvas)
 

Public Attributes

int32_t version
 
int32_t width
 
int32_t height
 
int32_t alignmentPadding
 

Detailed Description

Definition at line 90 of file SkCanvasStateUtils.cpp.

Constructor & Destructor Documentation

◆ SkCanvasState()

SkCanvasState::SkCanvasState ( int32_t  version,
SkCanvas canvas 
)
inline

Definition at line 92 of file SkCanvasStateUtils.cpp.

92 {
93 SkASSERT(canvas);
94 this->version = version;
95 width = canvas->getBaseLayerSize().width();
96 height = canvas->getBaseLayerSize().height();
97
98 }
#define SkASSERT(cond)
Definition: SkAssert.h:116
virtual SkISize getBaseLayerSize() const
Definition: SkCanvas.cpp:369
constexpr int32_t width() const
Definition: SkSize.h:36
constexpr int32_t height() const
Definition: SkSize.h:37

Member Data Documentation

◆ alignmentPadding

int32_t SkCanvasState::alignmentPadding

Definition at line 109 of file SkCanvasStateUtils.cpp.

◆ height

int32_t SkCanvasState::height

Definition at line 108 of file SkCanvasStateUtils.cpp.

◆ version

int32_t SkCanvasState::version

The version this struct was built with. This field must always appear first in the struct so that when the versions don't match (and the remaining contents and size are potentially different) we can still compare the version numbers.

Definition at line 106 of file SkCanvasStateUtils.cpp.

◆ width

int32_t SkCanvasState::width

Definition at line 107 of file SkCanvasStateUtils.cpp.


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