diff options
Diffstat (limited to 'src/gpu/ops/GrSemaphoreOp.cpp')
-rw-r--r-- | src/gpu/ops/GrSemaphoreOp.cpp | 30 |
1 files changed, 12 insertions, 18 deletions
diff --git a/src/gpu/ops/GrSemaphoreOp.cpp b/src/gpu/ops/GrSemaphoreOp.cpp index f50d9c056d..e83096d52a 100644 --- a/src/gpu/ops/GrSemaphoreOp.cpp +++ b/src/gpu/ops/GrSemaphoreOp.cpp @@ -14,17 +14,15 @@ class GrSignalSemaphoreOp final : public GrSemaphoreOp { public: DEFINE_OP_CLASS_ID - static std::unique_ptr<GrSignalSemaphoreOp> Make(sk_sp<GrSemaphore> semaphore, - GrRenderTargetProxy* proxy) { - return std::unique_ptr<GrSignalSemaphoreOp>(new GrSignalSemaphoreOp(std::move(semaphore), - proxy)); + static std::unique_ptr<GrSignalSemaphoreOp> Make(sk_sp<GrSemaphore> semaphore) { + return std::unique_ptr<GrSignalSemaphoreOp>(new GrSignalSemaphoreOp(std::move(semaphore))); } const char* name() const override { return "SignalSemaphore"; } private: - explicit GrSignalSemaphoreOp(sk_sp<GrSemaphore> semaphore, GrRenderTargetProxy* proxy) - : INHERITED(ClassID(), std::move(semaphore), proxy) {} + explicit GrSignalSemaphoreOp(sk_sp<GrSemaphore> semaphore) + : INHERITED(ClassID(), std::move(semaphore)) {} void onExecute(GrOpFlushState* state) override { state->gpu()->insertSemaphore(fSemaphore); @@ -37,17 +35,15 @@ class GrWaitSemaphoreOp final : public GrSemaphoreOp { public: DEFINE_OP_CLASS_ID - static std::unique_ptr<GrWaitSemaphoreOp> Make(sk_sp<GrSemaphore> semaphore, - GrRenderTargetProxy* proxy) { - return std::unique_ptr<GrWaitSemaphoreOp>(new GrWaitSemaphoreOp(std::move(semaphore), - proxy)); + static std::unique_ptr<GrWaitSemaphoreOp> Make(sk_sp<GrSemaphore> semaphore) { + return std::unique_ptr<GrWaitSemaphoreOp>(new GrWaitSemaphoreOp(std::move(semaphore))); } const char* name() const override { return "WaitSemaphore"; } private: - explicit GrWaitSemaphoreOp(sk_sp<GrSemaphore> semaphore, GrRenderTargetProxy* proxy) - : INHERITED(ClassID(), std::move(semaphore), proxy) {} + explicit GrWaitSemaphoreOp(sk_sp<GrSemaphore> semaphore) + : INHERITED(ClassID(), std::move(semaphore)) {} void onExecute(GrOpFlushState* state) override { state->gpu()->waitSemaphore(fSemaphore); @@ -58,14 +54,12 @@ private: //////////////////////////////////////////////////////////////////////////////// -std::unique_ptr<GrSemaphoreOp> GrSemaphoreOp::MakeSignal(sk_sp<GrSemaphore> semaphore, - GrRenderTargetProxy* proxy) { - return GrSignalSemaphoreOp::Make(std::move(semaphore), proxy); +std::unique_ptr<GrSemaphoreOp> GrSemaphoreOp::MakeSignal(sk_sp<GrSemaphore> semaphore) { + return GrSignalSemaphoreOp::Make(std::move(semaphore)); } -std::unique_ptr<GrSemaphoreOp> GrSemaphoreOp::MakeWait(sk_sp<GrSemaphore> semaphore, - GrRenderTargetProxy* proxy) { - return GrWaitSemaphoreOp::Make(std::move(semaphore), proxy); +std::unique_ptr<GrSemaphoreOp> GrSemaphoreOp::MakeWait(sk_sp<GrSemaphore> semaphore) { + return GrWaitSemaphoreOp::Make(std::move(semaphore)); } |