commit | de49988bc24977f97bb1da8c17ceee5432fcc8e7 | [log] [tgz] |
---|---|---|
author | reed <reed@google.com> | Thu Jun 18 13:41:40 2015 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Thu Jun 18 13:41:40 2015 -0700 |
tree | c714ed2bda1b676964d804b4e8e7cc393db3d627 | |
parent | d7395d82d53202e831d9f1c73f7a0196883f0c1f [diff] [blame] |
add callbacks to Images that wrap client-provided content BUG=skia: Review URL: https://codereview.chromium.org/1169553003
diff --git a/src/gpu/GrSurface.cpp b/src/gpu/GrSurface.cpp index 678755a..c052a23 100644 --- a/src/gpu/GrSurface.cpp +++ b/src/gpu/GrSurface.cpp
@@ -125,3 +125,13 @@ } return false; } + +void GrSurface::onRelease() { + this->invokeReleaseProc(); + this->INHERITED::onRelease(); +} + +void GrSurface::onAbandon() { + this->invokeReleaseProc(); + this->INHERITED::onAbandon(); +}