aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrSurface.cpp
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2015-06-18 13:41:40 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-06-18 13:41:40 -0700
commitde49988bc24977f97bb1da8c17ceee5432fcc8e7 (patch)
treec714ed2bda1b676964d804b4e8e7cc393db3d627 /src/gpu/GrSurface.cpp
parentd7395d82d53202e831d9f1c73f7a0196883f0c1f (diff)
add callbacks to Images that wrap client-provided content
Diffstat (limited to 'src/gpu/GrSurface.cpp')
-rw-r--r--src/gpu/GrSurface.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gpu/GrSurface.cpp b/src/gpu/GrSurface.cpp
index 678755a58f..c052a235f0 100644
--- a/src/gpu/GrSurface.cpp
+++ b/src/gpu/GrSurface.cpp
@@ -125,3 +125,13 @@ bool GrSurface::hasPendingIO() const {
}
return false;
}
+
+void GrSurface::onRelease() {
+ this->invokeReleaseProc();
+ this->INHERITED::onRelease();
+}
+
+void GrSurface::onAbandon() {
+ this->invokeReleaseProc();
+ this->INHERITED::onAbandon();
+}