Flutter Engine
The Flutter Engine
|
Public Member Functions | |
GPUTarget (const Config &c) | |
~GPUTarget () override | |
void | onSetup () override |
void | endTiming () override |
void | submitWorkAndSyncCPU () override |
bool | needsFrameTiming (int *maxFrameLag) const override |
bool | init (SkImageInfo info, Benchmark *bench) override |
void | dumpStats () override |
Public Member Functions inherited from Target | |
Target (const Config &c) | |
virtual | ~Target () |
void | setup () |
virtual void | onSetup () |
virtual SkCanvas * | beginTiming (SkCanvas *canvas) |
virtual void | endTiming () |
virtual void | submitWorkAndSyncCPU () |
virtual bool | needsFrameTiming (int *frameLag) const |
virtual bool | init (SkImageInfo info, Benchmark *bench) |
virtual bool | capturePixels (SkBitmap *bmp) |
virtual void | dumpStats () |
SkCanvas * | getCanvas () const |
Public Attributes | |
ContextInfo | contextInfo |
std::unique_ptr< GrContextFactory > | factory |
Public Attributes inherited from Target | |
const Config | config |
sk_sp< SkSurface > | surface |
Definition at line 244 of file nanobench.cpp.
|
inlineexplicit |
Definition at line 245 of file nanobench.cpp.
|
inlineoverride |
Definition at line 249 of file nanobench.cpp.
|
inlineoverridevirtual |
Writes gathered stats using SkDebugf.
Reimplemented from Target.
Definition at line 300 of file nanobench.cpp.
|
inlineoverridevirtual |
Called after a benchmark is drawn, but before the clock timer is stopped.
Reimplemented from Target.
Definition at line 259 of file nanobench.cpp.
|
inlineoverridevirtual |
Called once per target, during program initialization. Returns false if initialization fails.
Reimplemented from Target.
Definition at line 277 of file nanobench.cpp.
|
inlineoverridevirtual |
CPU-like targets can just be timed, but GPU-like targets need to pay attention to frame boundaries or other similar details.
Reimplemented from Target.
Definition at line 270 of file nanobench.cpp.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Called between benchmarks (or between calibration and measured runs) to make sure all pending work in drivers / threads is complete.
Reimplemented from Target.
Definition at line 264 of file nanobench.cpp.
ContextInfo GPUTarget::contextInfo |
Definition at line 246 of file nanobench.cpp.
std::unique_ptr<GrContextFactory> GPUTarget::factory |
Definition at line 247 of file nanobench.cpp.