Lines Matching defs:v0
14 static bool equal(const SkVertices* v0, const SkVertices* v1) {
15 if (v0->mode() != v1->mode()) {
18 if (v0->vertexCount() != v1->vertexCount()) {
21 if (v0->indexCount() != v1->indexCount()) {
25 if (!!v0->texCoords() != !!v1->texCoords()) {
28 if (!!v0->colors() != !!v1->colors()) {
32 for (int i = 0; i < v0->vertexCount(); ++i) {
33 if (v0->positions()[i] != v1->positions()[i]) {
36 if (v0->texCoords()) {
37 if (v0->texCoords()[i] != v1->texCoords()[i]) {
41 if (v0->colors()) {
42 if (v0->colors()[i] != v1->colors()[i]) {
47 for (int i = 0; i < v0->indexCount(); ++i) {
48 if (v0->indices()[i] != v1->indices()[i]) {
81 sk_sp<SkVertices> v0 = builder.detach();
82 sk_sp<SkData> data = v0->encode();
85 REPORTER_ASSERT(reporter, v0->uniqueID() != 0);
87 REPORTER_ASSERT(reporter, v0->uniqueID() != v1->uniqueID());
88 REPORTER_ASSERT(reporter, equal(v0.get(), v1.get()));