aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrRenderTargetOpList.cpp
diff options
context:
space:
mode:
authorGravatar Chris Dalton <csmartdalton@google.com>2017-11-20 18:20:28 -0700
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-11-27 17:04:25 +0000
commitc82dd4e2cff30453f0dce4dfba9dc912321ba7bd (patch)
tree80025fa75b8cd55d15b69fbccc1f72f0167f5a13 /src/gpu/GrRenderTargetOpList.cpp
parentcf7e1d06bc357d679f8798dc063411efd007231f (diff)
Delete an opList's clips when it survives a flush
Bug: skia:7190 Change-Id: I22454fc25f928b6892cbaa5533baa09aeec1b5f4 Reviewed-on: https://skia-review.googlesource.com/74066 Reviewed-by: Robert Phillips <robertphillips@google.com> Commit-Queue: Chris Dalton <csmartdalton@google.com>
Diffstat (limited to 'src/gpu/GrRenderTargetOpList.cpp')
-rw-r--r--src/gpu/GrRenderTargetOpList.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gpu/GrRenderTargetOpList.cpp b/src/gpu/GrRenderTargetOpList.cpp
index e6b91ff9c6..4bdfe589bb 100644
--- a/src/gpu/GrRenderTargetOpList.cpp
+++ b/src/gpu/GrRenderTargetOpList.cpp
@@ -185,6 +185,7 @@ bool GrRenderTargetOpList::onExecute(GrOpFlushState* flushState) {
void GrRenderTargetOpList::endFlush() {
fLastClipStackGenID = SK_InvalidUniqueID;
fRecordedOps.reset();
+ fClipAllocator.reset();
if (fInstancedRendering) {
fInstancedRendering->endFlush();
fInstancedRendering = nullptr;