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

Unified Diff: include/core/SkPathRef.h

Issue 398913002: Disable assertion of fBoundsIsDirty. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 5 months 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: include/core/SkPathRef.h
diff --git a/include/core/SkPathRef.h b/include/core/SkPathRef.h
index ed7c31765323dd63169e99f927654270ad87fee9..ba68fcba3c60f77a1e2dae760d71d0b3bbd21c02 100644
--- a/include/core/SkPathRef.h
+++ b/include/core/SkPathRef.h
@@ -291,7 +291,9 @@ private:
// called, if dirty, by getBounds()
void computeBounds() const {
SkDEBUGCODE(this->validate();)
- SkASSERT(fBoundsIsDirty);
+ // TODO(mtklein): remove fBoundsIsDirty and fIsFinite,
+ // using an inverted rect instead of fBoundsIsDirty and always recalculating fIsFinite.
+ //SkASSERT(fBoundsIsDirty);
fIsFinite = ComputePtBounds(fBounds.get(), *this);
fBoundsIsDirty = false;
« 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