diff options
author | 2017-04-05 17:05:16 -0400 | |
---|---|---|
committer | 2017-04-06 18:13:19 +0000 | |
commit | 6ff6af90e09068c07910174d11640e44815dd392 (patch) | |
tree | 7edc8ca4c8686f66bd32b706257aeaf6affbb452 /tests | |
parent | 372bc4e43e6720c1ce91cdfeb2cbe78ca50bc718 (diff) |
handle odd-index-count in encode/decode
Bug: skia:
Change-Id: Iffb123001a77049c6581f63bbc69c62f241a87f8
Reviewed-on: https://skia-review.googlesource.com/11405
Reviewed-by: Ben Wagner <bungeman@google.com>
Commit-Queue: Eric Boren <borenet@google.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/VerticesTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/VerticesTest.cpp b/tests/VerticesTest.cpp index 5c5c6af41d..399aba2f21 100644 --- a/tests/VerticesTest.cpp +++ b/tests/VerticesTest.cpp @@ -50,8 +50,8 @@ static bool equal(const SkVertices* v0, const SkVertices* v1) { } DEF_TEST(Vertices, reporter) { - int vCount = 4; - int iCount = 6; + int vCount = 5; + int iCount = 9; // odd value exercises padding logic in encode() const uint32_t texFlags[] = { 0, SkVertices::kHasTexCoords_BuilderFlag }; const uint32_t colFlags[] = { 0, SkVertices::kHasColors_BuilderFlag }; |