diff options
author | jvanverth <jvanverth@google.com> | 2016-09-30 08:39:02 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-09-30 08:39:03 -0700 |
commit | 84741b308496409f4ff662658167221fc6801bbe (patch) | |
tree | c2a42e12fdf9083453bbc46c28d561208162d2d7 /src/gpu/GrGpu.h | |
parent | 714750595581167b965e1530d6aae052818ad52a (diff) |
Add fence support for TransferBuffers
BUG=skia:4604
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2384463003
Review-Url: https://codereview.chromium.org/2384463003
Diffstat (limited to 'src/gpu/GrGpu.h')
-rw-r--r-- | src/gpu/GrGpu.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gpu/GrGpu.h b/src/gpu/GrGpu.h index 3e3a4cd676..b8703dc68e 100644 --- a/src/gpu/GrGpu.h +++ b/src/gpu/GrGpu.h @@ -305,7 +305,7 @@ public: bool transferPixels(GrSurface* surface, int left, int top, int width, int height, GrPixelConfig config, GrBuffer* transferBuffer, - size_t offset, size_t rowBytes); + size_t offset, size_t rowBytes, GrFence* fence); /** * This is can be called before allocating a texture to be a dst for copySurface. This is only @@ -371,6 +371,10 @@ public: // Provides a hook for post-flush actions (e.g. PLS reset and Vulkan command buffer submits). virtual void finishDrawTarget() {} + virtual GrFence SK_WARN_UNUSED_RESULT insertFence() const = 0; + virtual bool waitFence(GrFence, uint64_t timeout = 1000) const = 0; + virtual void deleteFence(GrFence) const = 0; + /////////////////////////////////////////////////////////////////////////// // Debugging and Stats |