Index: src/core/SkPicturePlayback.cpp |
diff --git a/src/core/SkPicturePlayback.cpp b/src/core/SkPicturePlayback.cpp |
index d8ed082690e310ca924b955c4f0bd4ae285ee22a..734a54a3c7e9a2e9ec9f69701c0f74176db013c1 100644 |
--- a/src/core/SkPicturePlayback.cpp |
+++ b/src/core/SkPicturePlayback.cpp |
@@ -152,10 +152,6 @@ void SkPicturePlayback::draw(SkCanvas* canvas, SkDrawPictureCallback* callback) |
SkAutoCanvasRestore acr(canvas, false); |
-#ifdef SK_DEVELOPER |
- int opIndex = -1; |
-#endif |
- |
while (!reader.eof()) { |
if (callback && callback->abortDrawing()) { |
return; |
@@ -232,13 +228,6 @@ void SkPicturePlayback::draw(SkCanvas* canvas, SkDrawPictureCallback* callback) |
if (NOOP == op) { |
// NOOPs are to be ignored - do not propagate them any further |
skipTo = fCurOffset + size; |
-#ifdef SK_DEVELOPER |
- } else { |
- opIndex++; |
- if (this->preDraw(opIndex, op)) { |
- skipTo = fCurOffset + size; |
- } |
-#endif |
} |
if (0 != skipTo) { |
@@ -260,10 +249,6 @@ void SkPicturePlayback::draw(SkCanvas* canvas, SkDrawPictureCallback* callback) |
this->handleOp(&reader, op, size, canvas, initialMatrix); |
-#ifdef SK_DEVELOPER |
- this->postDraw(opIndex); |
-#endif |
- |
if (it.isValid()) { |
uint32_t skipTo = it.nextDraw(); |
if (kDrawComplete == skipTo) { |