| Index: src/gpu/GrRenderTarget.cpp
|
| diff --git a/src/gpu/GrRenderTarget.cpp b/src/gpu/GrRenderTarget.cpp
|
| index 13fc22907511efa8cce4ca904d85718eba57e0a1..505cc78dceb9becbd8cae4797f45b644bfa80b61 100644
|
| --- a/src/gpu/GrRenderTarget.cpp
|
| +++ b/src/gpu/GrRenderTarget.cpp
|
| @@ -68,7 +68,7 @@ size_t GrRenderTarget::gpuMemorySize() const {
|
| if (kUnknown_GrPixelConfig == fDesc.fConfig) {
|
| colorBits = 32; // don't know, make a guess
|
| } else {
|
| - colorBits = GrBytesPerPixel(fDesc.fConfig);
|
| + colorBits = GrBytesPerPixel(fDesc.fConfig) * 8;
|
| }
|
| uint64_t size = fDesc.fWidth;
|
| size *= fDesc.fHeight;
|
|
|