diff options
author | bsalomon <bsalomon@google.com> | 2014-11-03 08:47:23 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-11-03 08:47:23 -0800 |
commit | 37dd331b20a92ce79cc26556e065dec98a66cb0b (patch) | |
tree | cac1c6927c1f8f9860890e37b9d08cca01de251b /src/gpu/GrTexture.cpp | |
parent | 89a9ecef9ead1f6093e796173b28b82dca4adcbd (diff) |
Add class GrGLTextureRenderTarget for GL texture/rendertarget objects
BUG=skia:2889
Review URL: https://codereview.chromium.org/695813003
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 |