aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrTextureOpList.cpp
diff options
context:
space:
mode:
authorGravatar Brian Osman <brianosman@google.com>2017-08-22 15:01:32 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-08-22 20:50:08 +0000
commit407b34235750d95dfc13260ff434d6be29eab264 (patch)
treee84b3ca10d0be1efa75e0c8597373662c83d6035 /src/gpu/GrTextureOpList.cpp
parent223ec293ef3cd02bf2a2a8942d55e2490ee16d66 (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/GrTextureOpList.cpp')
-rw-r--r--src/gpu/GrTextureOpList.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpu/GrTextureOpList.cpp b/src/gpu/GrTextureOpList.cpp
index eb2380f7be..f36cc350bb 100644
--- a/src/gpu/GrTextureOpList.cpp
+++ b/src/gpu/GrTextureOpList.cpp
@@ -45,7 +45,7 @@ void GrTextureOpList::dump() const {
#endif
-void GrTextureOpList::prepareOps(GrOpFlushState* flushState) {
+void GrTextureOpList::onPrepare(GrOpFlushState* flushState) {
SkASSERT(this->isClosed());
// Loop over the ops that haven't yet generated their geometry
@@ -57,7 +57,7 @@ void GrTextureOpList::prepareOps(GrOpFlushState* flushState) {
}
}
-bool GrTextureOpList::executeOps(GrOpFlushState* flushState) {
+bool GrTextureOpList::onExecute(GrOpFlushState* flushState) {
if (0 == fRecordedOps.count()) {
return false;
}