| Index: src/gpu/GrDrawTarget.h
|
| diff --git a/src/gpu/GrDrawTarget.h b/src/gpu/GrDrawTarget.h
|
| index 46dd9d00dbca1aa27f6abdc13b09ac473db3d50e..bbaf5a96762e8cc7015711e99a17652a638dca2e 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:
|
| SkFAIL("Unexpected Index Source.");
|
| return 0;
|
|
|