diff options
Diffstat (limited to 'src/image/SkSurface_Base.h')
-rw-r--r-- | src/image/SkSurface_Base.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/image/SkSurface_Base.h b/src/image/SkSurface_Base.h index 1b0f9ff975..264a86fc9d 100644 --- a/src/image/SkSurface_Base.h +++ b/src/image/SkSurface_Base.h @@ -77,8 +77,17 @@ public: /** * Issue any pending surface IO to the current backend 3D API and resolve any surface MSAA. + * Inserts the requested number of semaphores for the gpu to signal when work is complete on the + * gpu and inits the array of GrBackendSemaphores with the signaled semaphores. */ - virtual void onPrepareForExternalIO() {} + virtual void onFlush(int numSemaphores, GrBackendSemaphore* signalSemaphores) {} + + /** + * Caused the current backend 3D API to wait on the passed in semaphores before executing new + * commands on the gpu. Any previously submitting commands will not be blocked by these + * semaphores. + */ + virtual void onWait(int numSemaphores, const GrBackendSemaphore* waitSemaphores) {} inline SkCanvas* getCachedCanvas(); inline sk_sp<SkImage> refCachedImage(); |