aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrTessellatingPathRenderer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/GrTessellatingPathRenderer.cpp')
-rw-r--r--src/gpu/GrTessellatingPathRenderer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpu/GrTessellatingPathRenderer.cpp b/src/gpu/GrTessellatingPathRenderer.cpp
index 3d7d89b48b..be28a69106 100644
--- a/src/gpu/GrTessellatingPathRenderer.cpp
+++ b/src/gpu/GrTessellatingPathRenderer.cpp
@@ -1489,14 +1489,14 @@ bool GrTessellatingPathRenderer::onDrawPath(GrDrawTarget* target,
}
}
- int stride = gp->getVertexStride();
+ size_t stride = gp->getVertexStride();
GrDrawTarget::AutoReleaseGeometry arg;
if (!arg.set(target, count, stride, 0)) {
return false;
}
LOG("emitting %d verts\n", count);
void* end = polys_to_triangles(polys, fillType, arg.vertices());
- int actualCount = (static_cast<char*>(end) - static_cast<char*>(arg.vertices())) / stride;
+ int actualCount = static_cast<int>((static_cast<char*>(end) - static_cast<char*>(arg.vertices())) / stride);
LOG("actual count: %d\n", actualCount);
SkASSERT(actualCount <= count);