Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(242)

Unified Diff: src/gpu/GrTessellatingPathRenderer.cpp

Issue 956293003: Win64 warning fix for GrTessellatingPathRenderer. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrTessellatingPathRenderer.cpp
diff --git a/src/gpu/GrTessellatingPathRenderer.cpp b/src/gpu/GrTessellatingPathRenderer.cpp
index 3d7d89b48b3c5df9723f55162ac7801f0fcc36b2..be28a69106a4a60f708bd36b70e3407e3c98e1a1 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);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698