Flutter Engine
The Flutter Engine
|
Provides canvas-like painting methods that actually build vertices. More...
#include <stopwatch_dl.h>
Public Member Functions | |
void | DrawRect (const SkRect &rect, const DlColor &color) |
Draws a rectangle with the given color to a buffer. More... | |
std::shared_ptr< DlVertices > | IntoVertices () |
Provides canvas-like painting methods that actually build vertices.
The goal is minimally invasive rendering for the performance monitor.
The methods in this class are intended to be used by |DlStopwatchVisualizer| only. The rationale is the creating lines, rectangles, and paths (while OK for general apps) would cause non-trivial work for the performance monitor due to tessellation per-frame.
Definition at line 39 of file stopwatch_dl.h.
Draws a rectangle with the given color to a buffer.
Definition at line 112 of file stopwatch_dl.cc.
std::shared_ptr< DlVertices > flutter::DlVertexPainter::IntoVertices | ( | ) |
Converts the buffered vertices into a |DlVertices| object.
Definition at line 141 of file stopwatch_dl.cc.