aboutsummaryrefslogtreecommitdiffhomepage
path: root/gpu/include/GrTexture.h
diff options
context:
space:
mode:
Diffstat (limited to 'gpu/include/GrTexture.h')
-rw-r--r--gpu/include/GrTexture.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/gpu/include/GrTexture.h b/gpu/include/GrTexture.h
index 77f88fa110..5a86b0881b 100644
--- a/gpu/include/GrTexture.h
+++ b/gpu/include/GrTexture.h
@@ -64,7 +64,9 @@ public:
* Approximate number of bytes used by the texture
*/
virtual size_t sizeInBytes() const {
- return fAllocatedWidth * fAllocatedHeight * GrBytesPerPixel(fConfig);
+ return (size_t) fAllocatedWidth *
+ fAllocatedHeight *
+ GrBytesPerPixel(fConfig);
}
/**