aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2017-11-29 10:52:00 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-11-29 16:18:45 +0000
commit29f9ed4dcc9c17e9f6116bed727a0fc0115b828d (patch)
tree34c04c99b1a2d775b5cd42a9024c4bf9f1839869 /src
parent935a35bce4caf763654eb6840eb2940e2bc45453 (diff)
Revert "Revert "Make PathGeoBuilder use consistent iterators.""
This reverts commit b4513213245c2550683236b3aae829c8f3086469. Bug: chromium:788500 Change-Id: I6028b20770009b703f76ce2d9b451c561eaa705a Reviewed-on: https://skia-review.googlesource.com/77582 Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src')
-rw-r--r--src/gpu/ops/GrDefaultPathRenderer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpu/ops/GrDefaultPathRenderer.cpp b/src/gpu/ops/GrDefaultPathRenderer.cpp
index 4a9f0c2c04..d49e43e072 100644
--- a/src/gpu/ops/GrDefaultPathRenderer.cpp
+++ b/src/gpu/ops/GrDefaultPathRenderer.cpp
@@ -180,7 +180,7 @@ public:
SkPath::Verb verb;
SkPoint pts[4];
- while ((verb = iter.next(pts)) != SkPath::kDone_Verb) {
+ while ((verb = iter.next(pts, false)) != SkPath::kDone_Verb) {
if (SkPath::kMove_Verb == verb && !first) {
return true;
}
@@ -265,7 +265,7 @@ private:
SkASSERT(vertexCount <= fVerticesInChunk);
SkASSERT(indexCount <= fIndicesInChunk);
- if (vertexCount > 0) {
+ if (this->isIndexed() ? SkToBool(indexCount) : SkToBool(vertexCount)) {
if (!this->isIndexed()) {
fMesh.setNonIndexedNonInstanced(vertexCount);
} else {