Lines Matching defs:quad
44 // For convenience use matrix to derive each quad type, rely on different seed values to
57 GrQuad quad;
60 quad = GrQuad(rect);
63 quad = GrQuad::MakeFromRect(rect, rotate);
66 quad = GrQuad::MakeFromRect(rect, skew);
70 quad = GrQuad::MakeFromRect(rect, perspective);
74 SkASSERT(quad.quadType() == types[i]);
75 quads.push_back(quad);
81 // Generate test data, which includes all quad types out of enum-order and duplicates
92 static_assert(SK_ARRAY_COUNT(kDeviceTypes) == kQuadCount, "device quad count");
93 static_assert(SK_ARRAY_COUNT(kLocalTypes) == kQuadCount, "local quad count");
98 // Fill in the buffer with the device quads, and a local quad if the index is even
101 buffer.append(expectedDeviceQuads[i], // device quad
103 i % 2 == 0 ? &expectedLocalQuads[i] : nullptr); // optional local quad
114 // Each entry always has the device quad
196 // This test doesn't really care about the quad coordinates (except that they aren't modified
198 GrQuad quad(SkRect::MakeLTRB(1.f, 2.f, 3.f, 4.f));
202 buffer.append(quad, {i, 2.f * i}, i % 2 == 0 ? &quad : nullptr);
218 // and that no quad coordinates have been changed.
226 assert_quad_eq(r, quad, *iter.deviceQuad());
229 assert_quad_eq(r, quad, *iter.localQuad());