aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrRenderTarget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/GrRenderTarget.cpp')
-rw-r--r--src/gpu/GrRenderTarget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpu/GrRenderTarget.cpp b/src/gpu/GrRenderTarget.cpp
index a5f1216571..7a53c0b301 100644
--- a/src/gpu/GrRenderTarget.cpp
+++ b/src/gpu/GrRenderTarget.cpp
@@ -31,8 +31,8 @@ size_t GrRenderTarget::sizeInBytes() const {
} else {
colorBits = GrBytesPerPixel(fConfig);
}
- uint64_t size = fAllocatedWidth;
- size *= fAllocatedHeight;
+ uint64_t size = fWidth;
+ size *= fHeight;
size *= colorBits;
size *= GrMax(1,fSampleCnt);
return (size_t)(size / 8);