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:
parent
86b5e29f80
commit
b084c77a3f
@ -102,7 +102,7 @@ void GrInOrderDrawBuffer::drawRect(const GrRect& rect,
|
|||||||
if (this->caps()->dualSourceBlendingSupport() || drawState->hasSolidCoverage()) {
|
if (this->caps()->dualSourceBlendingSupport() || drawState->hasSolidCoverage()) {
|
||||||
colorOffset = currentOffset;
|
colorOffset = currentOffset;
|
||||||
GrVertexAttrib colorAttrib =
|
GrVertexAttrib colorAttrib =
|
||||||
{kVec4ub_GrVertexAttribType, colorOffset, kColor_GrVertexAttribBinding};
|
{kVec4ub_GrVertexAttribType, currentOffset, kColor_GrVertexAttribBinding};
|
||||||
attribs.push_back(colorAttrib);
|
attribs.push_back(colorAttrib);
|
||||||
currentOffset += sizeof(GrColor);
|
currentOffset += sizeof(GrColor);
|
||||||
// We set the draw state's color to white here. This is done so that any batching performed
|
// 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) {
|
if (NULL != localRect) {
|
||||||
localOffset = currentOffset;
|
localOffset = currentOffset;
|
||||||
GrVertexAttrib localCoordAttrib =
|
GrVertexAttrib localCoordAttrib =
|
||||||
{kVec2f_GrVertexAttribType, localOffset, kLocalCoord_GrVertexAttribBinding};
|
{kVec2f_GrVertexAttribType, currentOffset, kLocalCoord_GrVertexAttribBinding};
|
||||||
attribs.push_back(localCoordAttrib);
|
attribs.push_back(localCoordAttrib);
|
||||||
currentOffset += sizeof(GrPoint);
|
currentOffset += sizeof(GrPoint);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user