From cd1416efbc7af6f115dbaa09dce48e075d1d96ca Mon Sep 17 00:00:00 2001 From: Greg Daniel Date: Fri, 21 Jul 2017 14:27:57 -0400 Subject: Add support for semaphores to be inserted on GrContext flush This also moves the logic of inserting semaphores down into GrDrawingManager and finishFlush on GrGpu. With it being on finishFlush, there should be no issues when the DrawingManager starts respecting the proxy passed in assuming it always calls finishFlush at the end (which it should). Bug: skia: Change-Id: I925c2a289dcbbb9159b9120878af1d34f21a2dc7 Reviewed-on: https://skia-review.googlesource.com/25641 Reviewed-by: Brian Salomon Commit-Queue: Greg Daniel --- src/image/SkSurface_Gpu.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/image/SkSurface_Gpu.h') diff --git a/src/image/SkSurface_Gpu.h b/src/image/SkSurface_Gpu.h index 2bc9210b34..ebf7d4ed44 100644 --- a/src/image/SkSurface_Gpu.h +++ b/src/image/SkSurface_Gpu.h @@ -26,7 +26,8 @@ public: sk_sp onNewImageSnapshot() override; void onCopyOnWrite(ContentChangeMode) override; void onDiscard() override; - bool onFlush(int numSemaphores, GrBackendSemaphore* signalSemaphores) override; + GrSemaphoresSubmitted onFlush(int numSemaphores, + GrBackendSemaphore signalSemaphores[]) override; bool onWait(int numSemaphores, const GrBackendSemaphore* waitSemaphores) override; SkGpuDevice* getDevice() { return fDevice.get(); } -- cgit v1.2.3