diff options
author | 2015-06-18 13:41:40 -0700 | |
---|---|---|
committer | 2015-06-18 13:41:40 -0700 | |
commit | de49988bc24977f97bb1da8c17ceee5432fcc8e7 (patch) | |
tree | c714ed2bda1b676964d804b4e8e7cc393db3d627 /src/gpu/GrSurface.cpp | |
parent | d7395d82d53202e831d9f1c73f7a0196883f0c1f (diff) |
add callbacks to Images that wrap client-provided content
BUG=skia:
Review URL: https://codereview.chromium.org/1169553003
Diffstat (limited to 'src/gpu/GrSurface.cpp')
-rw-r--r-- | src/gpu/GrSurface.cpp | 10 |
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(); +} |