Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | List of all members
GrWindowRectangles::Rec Struct Reference

#include <GrWindowRectangles.h>

Inheritance diagram for GrWindowRectangles::Rec:
GrNonAtomicRef< Rec > SkNoncopyable

Public Member Functions

 Rec (const SkIRect *windows, int numWindows)
 
 Rec ()=default
 
- Public Member Functions inherited from GrNonAtomicRef< Rec >
 GrNonAtomicRef ()
 
bool unique () const
 
int refCnt () const
 
void ref () const
 
void unref () const
 
- Public Member Functions inherited from SkNoncopyable
 SkNoncopyable ()=default
 
 SkNoncopyable (SkNoncopyable &&)=default
 
SkNoncopyableoperator= (SkNoncopyable &&)=default
 

Public Attributes

SkIRect fData [kMaxWindows]
 

Detailed Description

Definition at line 49 of file GrWindowRectangles.h.

Constructor & Destructor Documentation

◆ Rec() [1/2]

GrWindowRectangles::Rec::Rec ( const SkIRect windows,
int  numWindows 
)
inline

Definition at line 50 of file GrWindowRectangles.h.

50 {
51 SkASSERT(numWindows <= kMaxWindows);
52 memcpy(fData, windows, sizeof(SkIRect) * numWindows);
53 }
#define SkASSERT(cond)
Definition: SkAssert.h:116
static constexpr int kMaxWindows
SkIRect fData[kMaxWindows]
Definition: SkRect.h:32

◆ Rec() [2/2]

GrWindowRectangles::Rec::Rec ( )
default

Member Data Documentation

◆ fData

SkIRect GrWindowRectangles::Rec::fData[kMaxWindows]

Definition at line 56 of file GrWindowRectangles.h.


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