aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/gl/GrGLTexture.cpp
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-09-05 18:37:39 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-09-05 18:37:39 +0000
commitd364554bcfd391c3b6111af8bff963a35ab87ba7 (patch)
tree18e5c6ed646c22b9ca1effcf86b16bb148eb0066 /src/gpu/gl/GrGLTexture.cpp
parent981b33abc65d968523d78d45e69cb071e8e03e91 (diff)
Enforce calling of inherited onRelease & onAbandon mthds in GrResource-derived classes
Diffstat (limited to 'src/gpu/gl/GrGLTexture.cpp')
-rw-r--r--src/gpu/gl/GrGLTexture.cpp6
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 {