Flutter Engine
The Flutter Engine
|
#include <stopwatch_dl.h>
Public Member Functions | |
DlStopwatchVisualizer (const Stopwatch &stopwatch) | |
void | Visualize (DlCanvas *canvas, const SkRect &rect) const override |
Renders the stopwatch as a graph. More... | |
Public Member Functions inherited from flutter::StopwatchVisualizer | |
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) | |
Additional Inherited Members | |
Protected Member Functions inherited from flutter::StopwatchVisualizer | |
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 inherited from flutter::StopwatchVisualizer | |
const Stopwatch & | stopwatch_ |
fml::Milliseconds | frame_budget_ |
A stopwatch visualizer that uses DisplayList (|DlCanvas|) to draw.
Definition at line 19 of file stopwatch_dl.h.
|
inlineexplicit |
Definition at line 21 of file stopwatch_dl.h.
|
overridevirtual |
Renders the stopwatch as a graph.
canvas | The canvas to draw on. | |
[in] | rect | The rectangle to draw in. |
Implements flutter::StopwatchVisualizer.
Definition at line 20 of file stopwatch_dl.cc.