commit | 9962108c400dadcae913614e8a5ab781780981d8 | [log] [tgz] |
---|---|---|
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Tue Nov 15 16:47:16 2011 +0000 |
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Tue Nov 15 16:47:16 2011 +0000 |
tree | 476244a17c316b527077384c2ae471c87d110b2b | |
parent | cc586511839400941420160b1ef2bf19a7f7f2de [diff] [blame] |
Remove allocated size vs content size in textures Review URL: http://codereview.appspot.com/5373100/ git-svn-id: http://skia.googlecode.com/svn/trunk@2687 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/GrRenderTarget.cpp b/src/gpu/GrRenderTarget.cpp index a5f1216..7a53c0b 100644 --- a/src/gpu/GrRenderTarget.cpp +++ b/src/gpu/GrRenderTarget.cpp
@@ -31,8 +31,8 @@ } 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);