aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrSemaphore.h
diff options
context:
space:
mode:
authorGravatar Greg Daniel <egdaniel@google.com>2018-01-22 16:11:35 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-01-22 21:41:45 +0000
commit48661b868fbbf7a6193ef49bb6a05a0df61e7c45 (patch)
tree13582c20667d91e8989f76c224d99f2231714730 /src/gpu/GrSemaphore.h
parent2e6feed858c2b14b9083cf7d2b040a177dcb62ea (diff)
Make use of VkSemaphores thread safe assuming use of the same VkQueue.
This allows us to re-enable support for multiple GrContexts in GrBackendTextureImageGenerator. Bug: skia: Change-Id: Ifd6ac1ad81cdfbd1fd986467d8beb359399d6588 Reviewed-on: https://skia-review.googlesource.com/98340 Reviewed-by: Brian Osman <brianosman@google.com> Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'src/gpu/GrSemaphore.h')
-rw-r--r--src/gpu/GrSemaphore.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/gpu/GrSemaphore.h b/src/gpu/GrSemaphore.h
index 20556d27ac..fbc5a6df56 100644
--- a/src/gpu/GrSemaphore.h
+++ b/src/gpu/GrSemaphore.h
@@ -13,15 +13,7 @@
class GrBackendSemaphore;
class GrGpu;
-/*
- * Wrapper around a semaphore object which must be implemented on each backend. This semaphores can
- * at most be signaled once and waited upon once.
- */
class GrSemaphore : public SkRefCnt {
-public:
- bool hasSubmittedSignal() const { return fSignaled; }
- bool hasSubmittedWait() const { return fWaitedOn; }
-
private:
// This function should only be used in the case of exporting and importing a GrSemaphore object
// from one GrContext to another. When exporting, the GrSemaphore should be set to a null GrGpu,
@@ -34,9 +26,6 @@ private:
// internal semaphore.
virtual void setBackendSemaphore(GrBackendSemaphore*) const = 0;
- bool fSignaled = false;
- bool fWaitedOn = false;
-
protected:
explicit GrSemaphore(const GrGpu* gpu) : fGpu(gpu) {}