5#ifndef FLUTTER_FLOW_STOPWATCH_DL_H_
6#define FLUTTER_FLOW_STOPWATCH_DL_H_
22 std::vector<DlPoint>& vertices_storage,
23 std::vector<DlColor>& color_storage)
25 vertices_storage_(vertices_storage),
26 color_storage_(color_storage) {}
31 std::vector<DlPoint>& vertices_storage_;
32 std::vector<DlColor>& color_storage_;
50 std::vector<DlColor>& color_storage);
61 std::vector<DlPoint>& vertices_;
62 std::vector<DlColor>& colors_;
63 size_t vertices_offset_ = 0u;
64 size_t colors_offset_ = 0u;
Developer-facing API for rendering anything within the engine.
DlStopwatchVisualizer(const Stopwatch &stopwatch, std::vector< DlPoint > &vertices_storage, std::vector< DlColor > &color_storage)
void Visualize(DlCanvas *canvas, const DlRect &rect) const override
Renders the stopwatch as a graph.
Provides canvas-like painting methods that actually build vertices.
std::shared_ptr< DlVertices > IntoVertices(const DlRect &bounds_rect)
void DrawRect(const DlRect &rect, const DlColor &color)
Draws a rectangle with the given color to a buffer.
Abstract class for visualizing (i.e. drawing) a stopwatch.