Fix signed/unsigned warning in GrInOrderDrawBuffer.cpp

git-svn-id: http://skia.googlecode.com/svn/trunk@1182 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
bsalomon@google.com 2011-04-26 13:22:33 +00:00
parent a39f404c87
commit 898d9e5dc6

View File

@ -333,7 +333,7 @@ void GrInOrderDrawBuffer::playback(GrDrawTarget* target) {
GrAssert(NULL != target);
GrAssert(target != this); // not considered and why?
uint32_t numDraws = fDraws.count();
int numDraws = fDraws.count();
if (!numDraws) {
return;
}
@ -351,7 +351,7 @@ void GrInOrderDrawBuffer::playback(GrDrawTarget* target) {
uint32_t currClip = ~0;
uint32_t currClear = 0;
for (uint32_t i = 0; i < numDraws; ++i) {
for (int i = 0; i < numDraws; ++i) {
while (currClear < fClears.count() &&
i == fClears[currClear].fBeforeDrawIdx) {
target->clear(fClears[currClear].fColor);