diff options
author | Stephen White <senorblanco@chromium.org> | 2015-02-26 10:11:20 -0500 |
---|---|---|
committer | Stephen White <senorblanco@chromium.org> | 2015-02-26 10:11:20 -0500 |
commit | 68ccca140df1e25c8692f614c55a7429f8a67696 (patch) | |
tree | 4f29c9468f1659bc7f3244c2936cf96b9013ed35 /src | |
parent | d6ed19cc751463285491a538bc7bf154cc7e6d8c (diff) |
Win64 warning fix for GrTessellatingPathRenderer.
BUG=skia:
Review URL: https://codereview.chromium.org/956293003
Diffstat (limited to 'src')
-rw-r--r-- | src/gpu/GrTessellatingPathRenderer.cpp | 4 |
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); |