One more fix for r8468. Replace use of int with size_t. Unreviewed.

git-svn-id: http://skia.googlecode.com/svn/trunk@8470 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
jvanverth@google.com 2013-04-01 20:28:08 +00:00
parent 86b5e29f80
commit b084c77a3f

View File

@ -102,7 +102,7 @@ void GrInOrderDrawBuffer::drawRect(const GrRect& rect,
if (this->caps()->dualSourceBlendingSupport() || drawState->hasSolidCoverage()) {
colorOffset = currentOffset;
GrVertexAttrib colorAttrib =
{kVec4ub_GrVertexAttribType, colorOffset, kColor_GrVertexAttribBinding};
{kVec4ub_GrVertexAttribType, currentOffset, kColor_GrVertexAttribBinding};
attribs.push_back(colorAttrib);
currentOffset += sizeof(GrColor);
// We set the draw state's color to white here. This is done so that any batching performed
@ -115,7 +115,7 @@ void GrInOrderDrawBuffer::drawRect(const GrRect& rect,
if (NULL != localRect) {
localOffset = currentOffset;
GrVertexAttrib localCoordAttrib =
{kVec2f_GrVertexAttribType, localOffset, kLocalCoord_GrVertexAttribBinding};
{kVec2f_GrVertexAttribType, currentOffset, kLocalCoord_GrVertexAttribBinding};
attribs.push_back(localCoordAttrib);
currentOffset += sizeof(GrPoint);
}