Index: src/core/SkPictureRecord.cpp |
diff --git a/src/core/SkPictureRecord.cpp b/src/core/SkPictureRecord.cpp |
index 67c4229e3d43290881c7a311b36769611fb0e104..778abb5f978537dd1aa4bb1102c6e1af14e8e3e3 100644 |
--- a/src/core/SkPictureRecord.cpp |
+++ b/src/core/SkPictureRecord.cpp |
@@ -324,13 +324,10 @@ |
} |
#ifdef SK_DEBUG |
- // offset of 0 has been disabled, so we skip it |
- if (offset > 0) { |
- // assert that the final offset value points to a save verb |
- uint32_t opSize; |
- DrawType drawOp = peek_op_and_size(&fWriter, -offset, &opSize); |
- SkASSERT(SAVE == drawOp || SAVE_LAYER == drawOp); |
- } |
+ // assert that the final offset value points to a save verb |
+ uint32_t opSize; |
+ DrawType drawOp = peek_op_and_size(&fWriter, -offset, &opSize); |
+ SkASSERT(SAVE == drawOp || SAVE_LAYER == drawOp); |
#endif |
} |