diff options
author | Brian Osman <brianosman@google.com> | 2017-08-22 15:01:32 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-08-22 20:50:08 +0000 |
commit | 407b34235750d95dfc13260ff434d6be29eab264 (patch) | |
tree | e84b3ca10d0be1efa75e0c8597373662c83d6035 /src/gpu/GrRenderTargetOpList.h | |
parent | 223ec293ef3cd02bf2a2a8942d55e2490ee16d66 (diff) |
Add GrPrepareCallback, always run at the start of flush
This is like an op, but only has one virtual, and always runs before
any ops prepare. To be used in threaded software mask rendering
(to schedule ASAP uploads).
Bug: skia:
Change-Id: I647482e2472d7321f3685e5bdbe49e10ac59c0b1
Reviewed-on: https://skia-review.googlesource.com/37160
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Diffstat (limited to 'src/gpu/GrRenderTargetOpList.h')
-rw-r--r-- | src/gpu/GrRenderTargetOpList.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpu/GrRenderTargetOpList.h b/src/gpu/GrRenderTargetOpList.h index f162fcc5b0..b62cee5531 100644 --- a/src/gpu/GrRenderTargetOpList.h +++ b/src/gpu/GrRenderTargetOpList.h @@ -65,8 +65,8 @@ public: * Together these two functions flush all queued up draws to GrCommandBuffer. The return value * of executeOps() indicates whether any commands were actually issued to the GPU. */ - void prepareOps(GrOpFlushState* flushState) override; - bool executeOps(GrOpFlushState* flushState) override; + void onPrepare(GrOpFlushState* flushState) override; + bool onExecute(GrOpFlushState* flushState) override; uint32_t addOp(std::unique_ptr<GrOp> op, const GrCaps& caps) { this->recordOp(std::move(op), caps, nullptr, nullptr); |