Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(160)

Unified Diff: src/core/SkRecordDraw.cpp

Issue 733963004: Make BBH parameter to SkRecordComputeLayers and SkRecordFillBounds optional (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkRecordDraw.cpp
diff --git a/src/core/SkRecordDraw.cpp b/src/core/SkRecordDraw.cpp
index e35e5a0a9d37d37e5c232067108a20680d03c511..77235fda415577eb1c6288c8de87cdd9d91a4492 100644
--- a/src/core/SkRecordDraw.cpp
+++ b/src/core/SkRecordDraw.cpp
@@ -168,8 +168,9 @@ public:
}
// Finally feed all stored bounds into the BBH. They'll be returned in this order.
- SkASSERT(bbh);
- bbh->insert(&fBounds, fNumRecords);
+ if (bbh) {
+ bbh->insert(&fBounds, fNumRecords);
+ }
}
template <typename T> void operator()(const T& op) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698