| Index: src/gpu/GrSurface.cpp
|
| diff --git a/src/gpu/GrSurface.cpp b/src/gpu/GrSurface.cpp
|
| index 824a6a2936e9ebf886c0f39aace7c293d5033428..2da1f257247b81cc8adef55968aec37ea4e48ab1 100644
|
| --- a/src/gpu/GrSurface.cpp
|
| +++ b/src/gpu/GrSurface.cpp
|
| @@ -29,7 +29,8 @@ size_t GrSurface::WorseCaseSize(const GrSurfaceDesc& desc) {
|
| SkASSERT(!GrPixelConfigIsCompressed(desc.fConfig));
|
| size_t colorBytes = GrBytesPerPixel(desc.fConfig);
|
| SkASSERT(colorBytes > 0);
|
| - size = colorValuesPerPixel * desc.fWidth * desc.fHeight * colorBytes;
|
| +
|
| + size = (size_t) colorValuesPerPixel * desc.fWidth * desc.fHeight * colorBytes;
|
| } else {
|
| if (GrPixelConfigIsCompressed(desc.fConfig)) {
|
| size = GrCompressedFormatDataSize(desc.fConfig, desc.fWidth, desc.fHeight);
|
|
|