Index: src/effects/SkLayerDrawLooper.cpp |
diff --git a/src/effects/SkLayerDrawLooper.cpp b/src/effects/SkLayerDrawLooper.cpp |
index aed2c9bbd4ef9e12a3f5bf2ac272d55d134cb253..19525eca51f61ab868fcdf2583a634fa4fba4d08 100644 |
--- a/src/effects/SkLayerDrawLooper.cpp |
+++ b/src/effects/SkLayerDrawLooper.cpp |
@@ -200,20 +200,6 @@ bool SkLayerDrawLooper::asABlurShadow(BlurShadowRec* bsRec) const { |
/////////////////////////////////////////////////////////////////////////////// |
void SkLayerDrawLooper::flatten(SkWriteBuffer& buffer) const { |
- this->INHERITED::flatten(buffer); |
- |
-#ifdef SK_DEBUG |
- { |
- Rec* rec = fRecs; |
- int count = 0; |
- while (rec) { |
- rec = rec->fNext; |
- count += 1; |
- } |
- SkASSERT(count == fCount); |
- } |
-#endif |
- |
buffer.writeInt(fCount); |
Rec* rec = fRecs; |
@@ -245,22 +231,7 @@ SkFlattenable* SkLayerDrawLooper::CreateProc(SkReadBuffer& buffer) { |
info.fPostTranslate = buffer.readBool(); |
buffer.readPaint(builder.addLayerOnTop(info)); |
} |
- SkLayerDrawLooper* looper = builder.detachLooper(); |
- SkASSERT(count == looper->fCount); |
- |
-#ifdef SK_DEBUG |
- { |
- Rec* rec = looper->fRecs; |
- int n = 0; |
- while (rec) { |
- rec = rec->fNext; |
- n += 1; |
- } |
- SkASSERT(count == n); |
- } |
-#endif |
- |
- return looper; |
+ return builder.detachLooper(); |
} |
#ifndef SK_IGNORE_TO_STRING |