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];
56 auto const colors = vertices->colors();
static const int points[]
static void copy(void *dst, const uint8_t *src, int width, int bpp, int deltaSrc, int offset, const SkPMColor ctable[])
Provides canvas-like painting methods that actually build vertices.
static float max(float r, float g, float b)
static float min(float r, float g, float b)
PODArray< SkColor > colors
static SkRect MakeRectFromVertices(SkPoint vertices[6])
TEST(DisplayListComplexity, EmptyDisplayList)
@ 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()