Index: src/core/SkOrderedReadBuffer.h |
diff --git a/src/core/SkOrderedReadBuffer.h b/src/core/SkOrderedReadBuffer.h |
index 3ec76d91c42866f5dd31771ced72a2a4080e95cb..556fce8b41495a4790bf48074dcb3ed951611439 100644 |
--- a/src/core/SkOrderedReadBuffer.h |
+++ b/src/core/SkOrderedReadBuffer.h |
@@ -18,6 +18,10 @@ |
class SkBitmap; |
+#if defined(SK_DEBUG) && defined(SK_BUILD_FOR_MAC) |
+ #define DEBUG_NON_DETERMINISTIC_ASSERT |
+#endif |
+ |
class SkOrderedReadBuffer : public SkFlattenableReadBuffer { |
public: |
SkOrderedReadBuffer(); |
@@ -122,6 +126,12 @@ private: |
SkPicture::InstallPixelRefProc fBitmapDecoder; |
+#ifdef DEBUG_NON_DETERMINISTIC_ASSERT |
+ // Debugging counter to keep track of how many bitmaps we |
+ // have decoded. |
+ int fDecodedBitmapIndex; |
+#endif // DEBUG_NON_DETERMINISTIC_ASSERT |
+ |
typedef SkFlattenableReadBuffer INHERITED; |
}; |