Index: src/core/SkPicture.cpp |
diff --git a/src/core/SkPicture.cpp b/src/core/SkPicture.cpp |
index b402297f9c68a9b9474427131651e6ddfee98f9d..7bbf47a6cfb4055d5a39f208c5fc5d3099ec909c 100644 |
--- a/src/core/SkPicture.cpp |
+++ b/src/core/SkPicture.cpp |
@@ -45,70 +45,6 @@ template <typename T> int SafeCount(const T* obj) { |
return obj ? obj->count() : 0; |
} |
-#define DUMP_BUFFER_SIZE 65536 |
- |
-#ifdef SK_DEBUG |
-// enable SK_DEBUG_TRACE to trace DrawType elements when |
-// recorded and played back |
-// #define SK_DEBUG_TRACE |
-// enable SK_DEBUG_SIZE to see the size of picture components |
-// #define SK_DEBUG_SIZE |
-// enable SK_DEBUG_DUMP to see the contents of recorded elements |
-// #define SK_DEBUG_DUMP |
-// enable SK_DEBUG_VALIDATE to check internal structures for consistency |
-// #define SK_DEBUG_VALIDATE |
-#endif |
- |
-#if defined SK_DEBUG_TRACE || defined SK_DEBUG_DUMP |
-const char* DrawTypeToString(DrawType drawType) { |
- switch (drawType) { |
- case UNUSED: SkDebugf("DrawType UNUSED\n"); SkASSERT(0); break; |
- case CLIP_PATH: return "CLIP_PATH"; |
- case CLIP_REGION: return "CLIP_REGION"; |
- case CLIP_RECT: return "CLIP_RECT"; |
- case CLIP_RRECT: return "CLIP_RRECT"; |
- case CONCAT: return "CONCAT"; |
- case DRAW_BITMAP: return "DRAW_BITMAP"; |
- case DRAW_BITMAP_MATRIX: return "DRAW_BITMAP_MATRIX"; |
- case DRAW_BITMAP_NINE: return "DRAW_BITMAP_NINE"; |
- case DRAW_BITMAP_RECT_TO_RECT: return "DRAW_BITMAP_RECT_TO_RECT"; |
- case DRAW_CLEAR: return "DRAW_CLEAR"; |
- case DRAW_DATA: return "DRAW_DATA"; |
- case DRAW_OVAL: return "DRAW_OVAL"; |
- case DRAW_PAINT: return "DRAW_PAINT"; |
- case DRAW_PATH: return "DRAW_PATH"; |
- case DRAW_PICTURE: return "DRAW_PICTURE"; |
- case DRAW_POINTS: return "DRAW_POINTS"; |
- case DRAW_POS_TEXT: return "DRAW_POS_TEXT"; |
- case DRAW_POS_TEXT_TOP_BOTTOM: return "DRAW_POS_TEXT_TOP_BOTTOM"; |
- case DRAW_POS_TEXT_H: return "DRAW_POS_TEXT_H"; |
- case DRAW_POS_TEXT_H_TOP_BOTTOM: return "DRAW_POS_TEXT_H_TOP_BOTTOM"; |
- case DRAW_RECT: return "DRAW_RECT"; |
- case DRAW_RRECT: return "DRAW_RRECT"; |
- case DRAW_SPRITE: return "DRAW_SPRITE"; |
- case DRAW_TEXT: return "DRAW_TEXT"; |
- case DRAW_TEXT_ON_PATH: return "DRAW_TEXT_ON_PATH"; |
- case DRAW_TEXT_TOP_BOTTOM: return "DRAW_TEXT_TOP_BOTTOM"; |
- case DRAW_VERTICES: return "DRAW_VERTICES"; |
- case RESTORE: return "RESTORE"; |
- case ROTATE: return "ROTATE"; |
- case SAVE: return "SAVE"; |
- case SAVE_LAYER: return "SAVE_LAYER"; |
- case SCALE: return "SCALE"; |
- case SET_MATRIX: return "SET_MATRIX"; |
- case SKEW: return "SKEW"; |
- case TRANSLATE: return "TRANSLATE"; |
- case NOOP: return "NOOP"; |
- default: |
- SkDebugf("DrawType error 0x%08x\n", drawType); |
- SkASSERT(0); |
- break; |
- } |
- SkASSERT(0); |
- return NULL; |
-} |
-#endif |
- |
/////////////////////////////////////////////////////////////////////////////// |
#ifdef SK_SUPPORT_LEGACY_DEFAULT_PICTURE_CTOR |