Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
SkWuffsFrame Class Referencefinal
Inheritance diagram for SkWuffsFrame:
SkFrame SkNoncopyable

Public Member Functions

 SkWuffsFrame (wuffs_base__frame_config *fc)
 
uint64_t ioPosition () const
 
SkEncodedInfo::Alpha onReportedAlpha () const override
 
- Public Member Functions inherited from SkFrame
 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
 
SkNoncopyableoperator= (SkNoncopyable &&)=default
 

Additional Inherited Members

virtual SkEncodedInfo::Alpha onReportedAlpha () const =0
 

Detailed Description

Definition at line 202 of file SkWuffsCodec.cpp.

Constructor & Destructor Documentation

◆ SkWuffsFrame()

SkWuffsFrame::SkWuffsFrame ( wuffs_base__frame_config *  fc)

Definition at line 344 of file SkWuffsCodec.cpp.

345 : INHERITED(fc->index()),
346 fIOPosition(fc->io_position()),
347 fReportedAlpha(fc->opaque_within_bounds() ? SkEncodedInfo::kOpaque_Alpha
349 wuffs_base__rect_ie_u32 r = fc->bounds();
350 this->setXYWH(r.min_incl_x, r.min_incl_y, r.width(), r.height());
352 this->setDuration(fc->duration() / WUFFS_BASE__FLICKS_PER_MILLISECOND);
353 this->setBlend(fc->overwrite_instead_of_blend() ? SkCodecAnimation::Blend::kSrc
355}
static SkCodecAnimation::DisposalMethod wuffs_disposal_to_skia_disposal(wuffs_base__animation_disposal w)
void setBlend(SkCodecAnimation::Blend blend)
void setDuration(int duration)
void setDisposalMethod(SkCodecAnimation::DisposalMethod disposalMethod)
void setXYWH(int x, int y, int width, int height)

Member Function Documentation

◆ ioPosition()

uint64_t SkWuffsFrame::ioPosition ( ) const

Definition at line 357 of file SkWuffsCodec.cpp.

357 {
358 return fIOPosition;
359}

◆ onReportedAlpha()

SkEncodedInfo::Alpha SkWuffsFrame::onReportedAlpha ( ) const
overridevirtual

Implements SkFrame.

Definition at line 361 of file SkWuffsCodec.cpp.

361 {
362 return fReportedAlpha;
363}

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