diff options
Diffstat (limited to 'src/gpu/GrTexture.cpp')
-rw-r--r-- | src/gpu/GrTexture.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/gpu/GrTexture.cpp b/src/gpu/GrTexture.cpp index 2717b3192f..21395409d6 100644 --- a/src/gpu/GrTexture.cpp +++ b/src/gpu/GrTexture.cpp @@ -6,21 +6,13 @@ * found in the LICENSE file. */ - #include "GrContext.h" #include "GrDrawTargetCaps.h" #include "GrGpu.h" -#include "GrRenderTarget.h" #include "GrResourceCache.h" #include "GrTexture.h" #include "GrTexturePriv.h" -GrTexture::~GrTexture() { - if (fRenderTarget.get()) { - fRenderTarget.get()->owningTextureDestroyed(); - } -} - void GrTexture::dirtyMipMaps(bool mipMapsDirty) { if (mipMapsDirty) { if (kValid_MipMapsStatus == fMipMapsStatus) { @@ -53,18 +45,6 @@ size_t GrTexture::gpuMemorySize() const { return textureSize; } -void GrTexture::onRelease() { - - INHERITED::onRelease(); -} - -void GrTexture::onAbandon() { - if (fRenderTarget.get()) { - fRenderTarget->abandon(); - } - INHERITED::onAbandon(); -} - void GrTexture::validateDesc() const { if (this->asRenderTarget()) { // This texture has a render target @@ -140,7 +120,6 @@ GrSurfaceOrigin resolve_origin(const GrSurfaceDesc& desc) { ////////////////////////////////////////////////////////////////////////////// GrTexture::GrTexture(GrGpu* gpu, bool isWrapped, const GrSurfaceDesc& desc) : INHERITED(gpu, isWrapped, desc) - , fRenderTarget(NULL) , fMipMapsStatus(kNotAllocated_MipMapsStatus) { this->setScratchKey(GrTexturePriv::ComputeScratchKey(desc)); // only make sense if alloc size is pow2 |