Flutter Engine
The Flutter Engine
|
#include <SkFrameHolder.h>
Public Member Functions | |
SkFrame (int id) | |
virtual | ~SkFrame () |
SkFrame (SkFrame &&)=default | |
int | frameId () const |
SkEncodedInfo::Alpha | reportedAlpha () const |
bool | hasAlpha () const |
void | setHasAlpha (bool alpha) |
bool | reachedStartOfData () const |
int | getRequiredFrame () const |
void | setRequiredFrame (int req) |
void | setXYWH (int x, int y, int width, int height) |
SkIRect | frameRect () const |
int | xOffset () const |
int | yOffset () const |
int | width () const |
int | height () const |
SkCodecAnimation::DisposalMethod | getDisposalMethod () const |
void | setDisposalMethod (SkCodecAnimation::DisposalMethod disposalMethod) |
void | setDuration (int duration) |
int | getDuration () const |
void | setBlend (SkCodecAnimation::Blend blend) |
SkCodecAnimation::Blend | getBlend () const |
void | fillIn (SkCodec::FrameInfo *, bool fullyReceived) const |
Public Member Functions inherited from SkNoncopyable | |
SkNoncopyable ()=default | |
SkNoncopyable (SkNoncopyable &&)=default | |
SkNoncopyable & | operator= (SkNoncopyable &&)=default |
Protected Member Functions | |
virtual SkEncodedInfo::Alpha | onReportedAlpha () const =0 |
Base class for a single frame of an animated image.
Separate from SkCodec::FrameInfo, which is a pared down interface that only contains the info the client needs.
Definition at line 24 of file SkFrameHolder.h.
|
inline |
Definition at line 26 of file SkFrameHolder.h.
|
inlinevirtual |
Definition at line 37 of file SkFrameHolder.h.
|
default |
An explicit move constructor, as https://en.cppreference.com/w/cpp/language/move_constructor says that there is no implicit move constructor if there are user-declared destructors, and we have one, immediately above.
Without a move constructor, it is harder to use an SkFrame, or an SkFrame subclass, inside a std::vector.
void SkFrame::fillIn | ( | SkCodec::FrameInfo * | frameInfo, |
bool | fullyReceived | ||
) | const |
Fill in the FrameInfo with details from this object.
Definition at line 908 of file SkCodec.cpp.
|
inline |
0-based index of the frame in the image sequence.
Definition at line 53 of file SkFrameHolder.h.
|
inline |
The rectangle that is updated by this frame.
Definition at line 108 of file SkFrameHolder.h.
|
inline |
Definition at line 141 of file SkFrameHolder.h.
|
inline |
Definition at line 115 of file SkFrameHolder.h.
|
inline |
Duration in ms to show this frame.
Definition at line 133 of file SkFrameHolder.h.
|
inline |
The frame this one depends on.
Must not be called until fRequiredFrame has been set properly.
Definition at line 88 of file SkFrameHolder.h.
|
inline |
Cached value representing whether the frame has alpha, after compositing with the prior frame.
Definition at line 70 of file SkFrameHolder.h.
|
inline |
Definition at line 113 of file SkFrameHolder.h.
|
protectedpure virtual |
Implemented in SkWuffsFrame.
|
inline |
Whether enough of the frame has been read to determine fRequiredFrame and fHasAlpha.
Definition at line 81 of file SkFrameHolder.h.
|
inline |
How this frame reports its alpha.
This only considers the rectangle of this frame, and considers it to have alpha even if it is opaque once blended with the frame behind it.
Definition at line 62 of file SkFrameHolder.h.
|
inline |
Definition at line 137 of file SkFrameHolder.h.
|
inline |
Definition at line 119 of file SkFrameHolder.h.
|
inline |
Set the duration (in ms) to show this frame.
Definition at line 126 of file SkFrameHolder.h.
|
inline |
Cache whether the finished frame has alpha.
Definition at line 75 of file SkFrameHolder.h.
|
inline |
Set the frame that this frame depends on.
Definition at line 96 of file SkFrameHolder.h.
Set the rectangle that is updated by this frame.
Definition at line 101 of file SkFrameHolder.h.
|
inline |
Definition at line 112 of file SkFrameHolder.h.
|
inline |
Definition at line 110 of file SkFrameHolder.h.
|
inline |
Definition at line 111 of file SkFrameHolder.h.