Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
CanvasArcStage Class Reference
Inheritance diagram for CanvasArcStage:
Stage

Public Member Functions

 CanvasArcStage (SkSize size)
 
 ~CanvasArcStage () override=default
 
void draw (SkCanvas *canvas) override
 
std::unique_ptr< MMObjectcreateObject () override
 
- Public Member Functions inherited from Stage
 Stage (SkSize size, int startingObjectCount, int objectIncrement)
 
virtual ~Stage ()=default
 
virtual void draw (SkCanvas *canvas)
 
virtual bool animate (double nanos)
 
virtual bool onChar (SkUnichar uni)
 

Additional Inherited Members

- Protected Member Functions inherited from Stage
virtual std::unique_ptr< MMObjectcreateObject ()=0
 
void initializeObjects ()
 
- Protected Attributes inherited from Stage
SkSize fSize
 
int fStartingObjectCount
 
int fObjectIncrement
 
std::vector< std::unique_ptr< MMObject > > fObjects
 
SkRandom fRandom
 

Detailed Description

Definition at line 409 of file MotionMarkSlide.cpp.

Constructor & Destructor Documentation

◆ CanvasArcStage()

CanvasArcStage::CanvasArcStage ( SkSize  size)
inline

Definition at line 411 of file MotionMarkSlide.cpp.

412 : Stage(size, /*startingObjectCount=*/1000, /*objectIncrement=*/200) {
413 this->initializeObjects();
414 }
void initializeObjects()
Stage(SkSize size, int startingObjectCount, int objectIncrement)
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
Definition: switches.h:259

◆ ~CanvasArcStage()

CanvasArcStage::~CanvasArcStage ( )
overridedefault

Member Function Documentation

◆ createObject()

std::unique_ptr< MMObject > CanvasArcStage::createObject ( )
inlineoverridevirtual

Implements Stage.

Definition at line 423 of file MotionMarkSlide.cpp.

423 {
424 return std::make_unique<CanvasArc>(&fRandom, fSize);
425 }
SkSize fSize
SkRandom fRandom

◆ draw()

void CanvasArcStage::draw ( SkCanvas canvas)
inlineoverridevirtual

Reimplemented from Stage.

Definition at line 418 of file MotionMarkSlide.cpp.

418 {
419 canvas->clear(SK_ColorWHITE);
420 this->Stage::draw(canvas);
421 }
constexpr SkColor SK_ColorWHITE
Definition: SkColor.h:122
void clear(SkColor color)
Definition: SkCanvas.h:1199
virtual void draw(SkCanvas *canvas)

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