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.cpp | |
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.cpp')
-rw-r--r-- | src/gpu/GrRenderTargetOpList.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpu/GrRenderTargetOpList.cpp b/src/gpu/GrRenderTargetOpList.cpp index 74534e42ef..ca449d30d3 100644 --- a/src/gpu/GrRenderTargetOpList.cpp +++ b/src/gpu/GrRenderTargetOpList.cpp @@ -61,7 +61,7 @@ void GrRenderTargetOpList::dump() const { } #endif -void GrRenderTargetOpList::prepareOps(GrOpFlushState* flushState) { +void GrRenderTargetOpList::onPrepare(GrOpFlushState* flushState) { SkASSERT(fTarget.get()->priv().peekRenderTarget()); SkASSERT(this->isClosed()); #ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK @@ -130,7 +130,7 @@ static inline void finish_command_buffer(GrGpuCommandBuffer* buffer) { // TODO: this is where GrOp::renderTarget is used (which is fine since it // is at flush time). However, we need to store the RenderTargetProxy in the // Ops and instantiate them here. -bool GrRenderTargetOpList::executeOps(GrOpFlushState* flushState) { +bool GrRenderTargetOpList::onExecute(GrOpFlushState* flushState) { if (0 == fRecordedOps.count()) { return false; } |