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

#include <SkRecorder.h>

Inheritance diagram for SkDrawableList:
SkNoncopyable

Public Member Functions

 SkDrawableList ()
 
 ~SkDrawableList ()
 
int count () const
 
SkDrawable *const * begin () const
 
SkDrawable *const * end () const
 
void append (SkDrawable *drawable)
 
SkBigPicture::SnapshotArraynewDrawableSnapshot ()
 

Detailed Description

Definition at line 57 of file SkRecorder.h.

Constructor & Destructor Documentation

◆ SkDrawableList()

SkDrawableList::SkDrawableList ( )
inline

Definition at line 59 of file SkRecorder.h.

59{}

◆ ~SkDrawableList()

SkDrawableList::~SkDrawableList ( )

Definition at line 55 of file SkRecorder.cpp.

55 {
56 for(SkDrawable* p : fArray) {
57 p->unref();
58 }
59 fArray.reset();
60}
void reset()
Definition SkTDArray.h:171

Member Function Documentation

◆ append()

void SkDrawableList::append ( SkDrawable drawable)

Definition at line 74 of file SkRecorder.cpp.

74 {
75 *fArray.append() = SkRef(drawable);
76}
static T * SkRef(T *obj)
Definition SkRefCnt.h:132
T * append()
Definition SkTDArray.h:191

◆ begin()

SkDrawable *const * SkDrawableList::begin ( ) const
inline

Definition at line 63 of file SkRecorder.h.

63{ return fArray.begin(); }
T * begin()
Definition SkTDArray.h:150

◆ count()

int SkDrawableList::count ( ) const
inline

Definition at line 62 of file SkRecorder.h.

62{ return fArray.size(); }
int size() const
Definition SkTDArray.h:138

◆ end()

SkDrawable *const * SkDrawableList::end ( ) const
inline

Definition at line 64 of file SkRecorder.h.

64{ return fArray.end(); }
T * end()
Definition SkTDArray.h:152

◆ newDrawableSnapshot()

SkBigPicture::SnapshotArray * SkDrawableList::newDrawableSnapshot ( )

Definition at line 62 of file SkRecorder.cpp.

62 {
63 const int count = fArray.size();
64 if (0 == count) {
65 return nullptr;
66 }
68 for (int i = 0; i < count; ++i) {
69 pics[i] = fArray[i]->makePictureSnapshot().release();
70 }
71 return new SkBigPicture::SnapshotArray(pics.release(), count);
72}
int count() const
Definition SkRecorder.h:62

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