aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrRenderTarget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/GrRenderTarget.cpp')
-rw-r--r--src/gpu/GrRenderTarget.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/gpu/GrRenderTarget.cpp b/src/gpu/GrRenderTarget.cpp
index 2828866435..f15e3b01bf 100644
--- a/src/gpu/GrRenderTarget.cpp
+++ b/src/gpu/GrRenderTarget.cpp
@@ -84,17 +84,6 @@ void GrRenderTarget::onAbandon() {
INHERITED::onAbandon();
}
-size_t GrRenderTarget::ComputeSize(const GrSurfaceDesc& desc, int colorValuesPerPixel) {
- SkASSERT(kUnknown_GrPixelConfig != desc.fConfig);
- SkASSERT(!GrPixelConfigIsCompressed(desc.fConfig));
- size_t colorBytes = GrBytesPerPixel(desc.fConfig);
- SkASSERT(colorBytes > 0);
-
- size_t rtSize = colorValuesPerPixel * desc.fWidth * desc.fHeight * colorBytes;
- SkASSERT(rtSize <= WorstCaseSize(desc));
- return rtSize;
-}
-
///////////////////////////////////////////////////////////////////////////////
bool GrRenderTargetPriv::attachStencilAttachment(GrStencilAttachment* stencil) {