Index: src/gpu/GrRenderTarget.cpp |
diff --git a/src/gpu/GrRenderTarget.cpp b/src/gpu/GrRenderTarget.cpp |
index 7ed70c954ebfc17868369e7be29d4ceca6f6ff87..7aeb4eec1a1596e684529da23c68b03d0da36c48 100644 |
--- a/src/gpu/GrRenderTarget.cpp |
+++ b/src/gpu/GrRenderTarget.cpp |
@@ -31,20 +31,6 @@ void GrRenderTarget::discard() { |
context->discardRenderTarget(this); |
} |
-size_t GrRenderTarget::gpuMemorySize() const { |
- size_t colorBits; |
- if (kUnknown_GrPixelConfig == fDesc.fConfig) { |
- colorBits = 32; // don't know, make a guess |
- } else { |
- colorBits = GrBytesPerPixel(fDesc.fConfig) * 8; |
- } |
- uint64_t size = fDesc.fWidth; |
- size *= fDesc.fHeight; |
- size *= colorBits; |
- size *= SkTMax(1, fDesc.fSampleCnt); |
- return (size_t)(size / 8); |
-} |
- |
void GrRenderTarget::flagAsNeedingResolve(const SkIRect* rect) { |
if (kCanResolve_ResolveType == getResolveType()) { |
if (rect) { |