5#include "flutter/flow/stopwatch_dl.h"
6#include "gtest/gtest.h"
13 auto const left = std::min(vertices[0].
x(), vertices[5].
x());
14 auto const top = std::min(vertices[0].
y(), vertices[1].
y());
15 auto const right = std::max(vertices[1].
x(), vertices[2].
x());
16 auto const bottom = std::max(vertices[2].
y(), vertices[3].
y());
31 auto vertices = painter.IntoVertices();
35 EXPECT_EQ(vertices->vertex_count(), 3 * 2 * 2);
37 auto const points = vertices->vertices();
49 SkPoint second_rect_vertices[6];
50 std::copy(
points + 6,
points + 12, second_rect_vertices);
56 auto const colors = vertices->colors();
#define TEST(S, s, D, expected)
static const int points[]
static bool left(const SkPoint &p0, const SkPoint &p1)
static bool right(const SkPoint &p0, const SkPoint &p1)
Provides canvas-like painting methods that actually build vertices.
static SkRect MakeRectFromVertices(SkPoint vertices[6])
@ kTriangles
The vertices are taken 3 at a time to form a triangle.
static constexpr SkRect MakeLTRB(float l, float t, float r, float b)
static constexpr DlColor kBlue()
static constexpr DlColor kRed()