diff options
author | 2012-09-05 18:37:39 +0000 | |
---|---|---|
committer | 2012-09-05 18:37:39 +0000 | |
commit | d364554bcfd391c3b6111af8bff963a35ab87ba7 (patch) | |
tree | 18e5c6ed646c22b9ca1effcf86b16bb148eb0066 /src/gpu/gl/GrGLTexture.cpp | |
parent | 981b33abc65d968523d78d45e69cb071e8e03e91 (diff) |
Enforce calling of inherited onRelease & onAbandon mthds in GrResource-derived classes
http://codereview.appspot.com/6499077/
git-svn-id: http://skia.googlecode.com/svn/trunk@5405 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/gl/GrGLTexture.cpp')
-rw-r--r-- | src/gpu/gl/GrGLTexture.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gpu/gl/GrGLTexture.cpp b/src/gpu/gl/GrGLTexture.cpp index 2c5e4a2367..1e34fe56a2 100644 --- a/src/gpu/gl/GrGLTexture.cpp +++ b/src/gpu/gl/GrGLTexture.cpp @@ -55,19 +55,21 @@ GrGLTexture::GrGLTexture(GrGpuGL* gpu, } void GrGLTexture::onRelease() { - INHERITED::onRelease(); GPUGL->notifyTextureDelete(this); if (NULL != fTexIDObj) { fTexIDObj->unref(); fTexIDObj = NULL; } + + INHERITED::onRelease(); } void GrGLTexture::onAbandon() { - INHERITED::onAbandon(); if (NULL != fTexIDObj) { fTexIDObj->abandon(); } + + INHERITED::onAbandon(); } intptr_t GrGLTexture::getTextureHandle() const { |