Flutter Engine
The Flutter Engine
|
Abstract class for visualizing (i.e. drawing) a stopwatch. More...
#include <stopwatch.h>
Public Member Functions | |
StopwatchVisualizer (const Stopwatch &stopwatch) | |
virtual | ~StopwatchVisualizer ()=default |
virtual void | Visualize (DlCanvas *canvas, const SkRect &rect) const =0 |
Renders the stopwatch as a graph. More... | |
FML_DISALLOW_COPY_AND_ASSIGN (StopwatchVisualizer) | |
Protected Member Functions | |
double | UnitFrameInterval (double time_ms) const |
Converts a raster time to a unit interval. More... | |
double | UnitHeight (double time_ms, double max_height) const |
Converts a raster time to a unit height. More... | |
fml::Milliseconds | GetFrameBudget () const |
Protected Attributes | |
const Stopwatch & | stopwatch_ |
fml::Milliseconds | frame_budget_ |
Abstract class for visualizing (i.e. drawing) a stopwatch.
Definition at line 93 of file stopwatch.h.
|
inlineexplicit |
Definition at line 95 of file stopwatch.h.
|
virtualdefault |
flutter::StopwatchVisualizer::FML_DISALLOW_COPY_AND_ASSIGN | ( | StopwatchVisualizer | ) |
|
inlineprotected |
Definition at line 120 of file stopwatch.h.
|
protected |
Converts a raster time to a unit interval.
Definition at line 57 of file stopwatch.cc.
|
protected |
Converts a raster time to a unit height.
Definition at line 61 of file stopwatch.cc.
|
pure virtual |
Renders the stopwatch as a graph.
canvas | The canvas to draw on. | |
[in] | rect | The rectangle to draw in. |
Implemented in flutter::DlStopwatchVisualizer, and flutter::SkStopwatchVisualizer.
|
protected |
Definition at line 123 of file stopwatch.h.
|
protected |
Definition at line 122 of file stopwatch.h.