diff options
author | Greg Daniel <egdaniel@google.com> | 2017-06-15 16:59:49 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-06-19 15:01:28 +0000 |
commit | c64ee46a982695dc32b9cad4dd4e635ac09cd25e (patch) | |
tree | 2784515cd988e4b985767d01b6762bef6389d292 /src/image/SkSurface.cpp | |
parent | d4a70ee36717493cc071f878b16b037463e6ce9a (diff) |
Add return to surface semaphore calls to indicate when we don't support them
Bug: skia:
Change-Id: I00118637bf6555278ca61707275ed60372de581d
Reviewed-on: https://skia-review.googlesource.com/20061
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'src/image/SkSurface.cpp')
-rw-r--r-- | src/image/SkSurface.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/image/SkSurface.cpp b/src/image/SkSurface.cpp index fbd9f836d6..57d419c408 100644 --- a/src/image/SkSurface.cpp +++ b/src/image/SkSurface.cpp @@ -191,12 +191,12 @@ void SkSurface::flush() { asSB(this)->onFlush(0, nullptr); } -void SkSurface::flushAndSignalSemaphores(int numSemaphores, GrBackendSemaphore* signalSemaphores) { +bool SkSurface::flushAndSignalSemaphores(int numSemaphores, GrBackendSemaphore* signalSemaphores) { return asSB(this)->onFlush(numSemaphores, signalSemaphores); } -void SkSurface::wait(int numSemaphores, const GrBackendSemaphore* waitSemaphores) { - asSB(this)->onWait(numSemaphores, waitSemaphores); +bool SkSurface::wait(int numSemaphores, const GrBackendSemaphore* waitSemaphores) { + return asSB(this)->onWait(numSemaphores, waitSemaphores); } ////////////////////////////////////////////////////////////////////////////////////// |