Flutter Engine
The Flutter Engine
|
#include <nanobench.h>
Public Member Functions | |
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 | |
const Config | config |
sk_sp< SkSurface > | surface |
Definition at line 36 of file nanobench.h.
|
inlineexplicit |
Definition at line 37 of file nanobench.h.
|
inlinevirtual |
Definition at line 38 of file nanobench.h.
Called after the clock timer is started, before the benchmark is drawn. Most back ends just return the canvas passed in, but some may replace it.
Definition at line 54 of file nanobench.h.
|
virtual |
Stores any pixels drawn to the screen in the bitmap. Returns false on error.
Definition at line 231 of file nanobench.cpp.
|
inlinevirtual |
Writes gathered stats using SkDebugf.
Reimplemented in GPUTarget.
Definition at line 79 of file nanobench.h.
|
inlinevirtual |
Called after a benchmark is drawn, but before the clock timer is stopped.
Reimplemented in GPUTarget.
Definition at line 58 of file nanobench.h.
|
inline |
Definition at line 81 of file nanobench.h.
|
virtual |
Called once per target, during program initialization. Returns false if initialization fails.
Reimplemented in GPUTarget.
Definition at line 222 of file nanobench.cpp.
|
inlinevirtual |
CPU-like targets can just be timed, but GPU-like targets need to pay attention to frame boundaries or other similar details.
Reimplemented in GPUTarget.
Definition at line 68 of file nanobench.h.
|
inlinevirtual |
|
inline |
Called once per target, immediately before any timing or drawing.
Definition at line 44 of file nanobench.h.
|
inlinevirtual |
Called between benchmarks (or between calibration and measured runs) to make sure all pending work in drivers / threads is complete.
Reimplemented in GPUTarget.
Definition at line 63 of file nanobench.h.
const Config Target::config |
Definition at line 40 of file nanobench.h.
Definition at line 41 of file nanobench.h.