aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrTextureOpList.cpp
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2017-05-15 13:06:44 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-05-15 17:39:38 +0000
commit18e9484ad5b5755757dc6badb986017a088a9c6b (patch)
treeb27aa94b1efdce65ec198ded63f39c72257805bb /src/gpu/GrTextureOpList.cpp
parentbcce7ff0d7f78c2c081e9b9fe43dcb03e59cf1ab (diff)
Rename finishOpList to finishFlush and call it less frequently
It is expected that this will fix the Vulkan perf regression associated with splitting up the opLists Change-Id: I1bbb6f71745bb08d4a8c2f7810e5ab84cca75e84 Reviewed-on: https://skia-review.googlesource.com/16901 Commit-Queue: Robert Phillips <robertphillips@google.com> Reviewed-by: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'src/gpu/GrTextureOpList.cpp')
-rw-r--r--src/gpu/GrTextureOpList.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/gpu/GrTextureOpList.cpp b/src/gpu/GrTextureOpList.cpp
index 24bea3331c..dd1c8403b0 100644
--- a/src/gpu/GrTextureOpList.cpp
+++ b/src/gpu/GrTextureOpList.cpp
@@ -15,13 +15,11 @@
////////////////////////////////////////////////////////////////////////////////
-GrTextureOpList::GrTextureOpList(GrTextureProxy* proxy, GrGpu* gpu, GrAuditTrail* auditTrail)
- : INHERITED(proxy, auditTrail)
- , fGpu(SkRef(gpu)) {
+GrTextureOpList::GrTextureOpList(GrTextureProxy* proxy, GrAuditTrail* auditTrail)
+ : INHERITED(proxy, auditTrail) {
}
GrTextureOpList::~GrTextureOpList() {
- fGpu->unref();
}
////////////////////////////////////////////////////////////////////////////////
@@ -71,7 +69,6 @@ bool GrTextureOpList::executeOps(GrOpFlushState* flushState) {
fRecordedOps[i]->execute(flushState);
}
- fGpu->finishOpList();
return true;
}