| Index: src/gpu/GrDrawTarget.h
|
| diff --git a/src/gpu/GrDrawTarget.h b/src/gpu/GrDrawTarget.h
|
| index 732bad07df0106c3e57b7ec43c6dc642b9269b48..2cd3d7ea903296710a6e66df703ab5a74250198c 100644
|
| --- a/src/gpu/GrDrawTarget.h
|
| +++ b/src/gpu/GrDrawTarget.h
|
| @@ -742,7 +742,7 @@ protected:
|
| case kArray_GeometrySrcType:
|
| return src.fIndexCount;
|
| case kBuffer_GeometrySrcType:
|
| - return static_cast<int>(src.fIndexBuffer->sizeInBytes() / sizeof(uint16_t));
|
| + return static_cast<int>(src.fIndexBuffer->gpuMemorySize() / sizeof(uint16_t));
|
| default:
|
| GrCrash("Unexpected Index Source.");
|
| return 0;
|
|
|