aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gpu/GrRenderTarget.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gpu/GrRenderTarget.cpp b/src/gpu/GrRenderTarget.cpp
index ed1a018a02..be0844460e 100644
--- a/src/gpu/GrRenderTarget.cpp
+++ b/src/gpu/GrRenderTarget.cpp
@@ -52,15 +52,15 @@ void GrRenderTarget::resolve() {
size_t GrRenderTarget::sizeInBytes() const {
int colorBits;
- if (kUnknown_GrPixelConfig == fConfig) {
+ if (kUnknown_GrPixelConfig == fDesc.fConfig) {
colorBits = 32; // don't know, make a guess
} else {
- colorBits = GrBytesPerPixel(fConfig);
+ colorBits = GrBytesPerPixel(fDesc.fConfig);
}
- uint64_t size = fWidth;
- size *= fHeight;
+ uint64_t size = fDesc.fWidth;
+ size *= fDesc.fHeight;
size *= colorBits;
- size *= GrMax(1,fSampleCnt);
+ size *= GrMax(1, fDesc.fSampleCnt);
return (size_t)(size / 8);
}