Disable assertion of fBoundsIsDirty.
authorMike Klein <mtklein@google.com>
Wed, 16 Jul 2014 21:18:20 +0000 (17:18 -0400)
committerMike Klein <mtklein@google.com>
Wed, 16 Jul 2014 21:18:20 +0000 (17:18 -0400)
We allow this to be raced on, and it may have already become not-dirty by the
time we get to this function if computed by another thread.

BUG=skia:

Review URL: https://codereview.chromium.org/398913002

include/core/SkPathRef.h

index ed7c31765323dd63169e99f927654270ad87fee9..ba68fcba3c60f77a1e2dae760d71d0b3bbd21c02 100644 (file)
@@ -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;