aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrResourceAllocator.h
diff options
context:
space:
mode:
authorGravatar Chris Dalton <csmartdalton@google.com>2017-11-29 11:32:18 -0700
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-11-29 19:02:45 +0000
commitc666502bc6975a73ef352d673b151017a21e8562 (patch)
treefd2b693b80a8fedaff81bac3cd4e1f048abc0519 /src/gpu/GrResourceAllocator.h
parent0425febe6132a0e2824efbbd323efb2a71504776 (diff)
Make sure to visit clips and dst proxies during gather
Bug: skia:7190 Change-Id: I6ba5bad6e155e9092dff9c2ad3241f603c333b4d Reviewed-on: https://skia-review.googlesource.com/76460 Reviewed-by: Robert Phillips <robertphillips@google.com> Commit-Queue: Chris Dalton <csmartdalton@google.com>
Diffstat (limited to 'src/gpu/GrResourceAllocator.h')
-rw-r--r--src/gpu/GrResourceAllocator.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gpu/GrResourceAllocator.h b/src/gpu/GrResourceAllocator.h
index f576649030..dde7519392 100644
--- a/src/gpu/GrResourceAllocator.h
+++ b/src/gpu/GrResourceAllocator.h
@@ -120,8 +120,9 @@ private:
void setNext(Interval* next) { fNext = next; }
void extendEnd(unsigned int newEnd) {
- SkASSERT(newEnd >= fEnd);
- fEnd = newEnd;
+ if (newEnd > fEnd) {
+ fEnd = newEnd;
+ }
}
void assign(sk_sp<GrSurface>);