diff options
author | Greg Daniel <egdaniel@google.com> | 2017-07-21 14:27:57 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-07-22 01:03:06 +0000 |
commit | cd1416efbc7af6f115dbaa09dce48e075d1d96ca (patch) | |
tree | 3f4ddbc475a167107929da6f670b7832b97f2c93 /src/gpu/mtl/GrMtlGpu.h | |
parent | 97d4cf0e7eb15340b1f513ff8cfba4e55ee3acf2 (diff) |
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 <bsalomon@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'src/gpu/mtl/GrMtlGpu.h')
-rw-r--r-- | src/gpu/mtl/GrMtlGpu.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gpu/mtl/GrMtlGpu.h b/src/gpu/mtl/GrMtlGpu.h index f150e3034a..edb3059655 100644 --- a/src/gpu/mtl/GrMtlGpu.h +++ b/src/gpu/mtl/GrMtlGpu.h @@ -126,6 +126,8 @@ private: void onResolveRenderTarget(GrRenderTarget* target) override { return; } + void onFinishFlush(bool insertedSemaphores) override {} + GrStencilAttachment* createStencilAttachmentForRenderTarget(const GrRenderTarget*, int width, int height) override { |