commit | 0168afc7196fe82da8af230c93c56f3035d54d2b | [log] [tgz] |
---|---|---|
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Mon Aug 08 13:21:05 2011 +0000 |
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Mon Aug 08 13:21:05 2011 +0000 |
tree | 936ea16266be15bc7e58c6351df39ba7cb0c531d | |
parent | 2f9462d29fe4c66660251734c64d16628326f8e5 [diff] [blame] |
Make RT & TEX base classes aware of NPOT/min-RT bloated size Review URL: http://codereview.appspot.com/4849045/ git-svn-id: http://skia.googlecode.com/svn/trunk@2057 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/gpu/src/GrRenderTarget.cpp b/gpu/src/GrRenderTarget.cpp index 042bc59..8a73a84 100644 --- a/gpu/src/GrRenderTarget.cpp +++ b/gpu/src/GrRenderTarget.cpp
@@ -31,7 +31,7 @@ } else { colorBits = GrBytesPerPixel(fConfig); } - return fWidth * fHeight * colorBits; + return fAllocatedWidth * fAllocatedHeight * colorBits * GrMax(1,fSampleCnt); } void GrRenderTarget::flagAsNeedingResolve(const GrIRect* rect) {