aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkPicturePlayback.cpp
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-01-17 14:39:20 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-01-17 14:39:20 +0000
commit3f7137250c8558dedd1f08ed2e5f61d3665c19cb (patch)
tree39f09db3c4f24714b3bbacb9cf390e8333974892 /src/core/SkPicturePlayback.cpp
parent7cfb9c7b6186bf1e42b7d13466eab94470587e7e (diff)
Switch debugger profiling stubs over to being guarded by SK_DEVELOPER
Diffstat (limited to 'src/core/SkPicturePlayback.cpp')
-rw-r--r--src/core/SkPicturePlayback.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/SkPicturePlayback.cpp b/src/core/SkPicturePlayback.cpp
index e7f5ce8f85..21fa034f7a 100644
--- a/src/core/SkPicturePlayback.cpp
+++ b/src/core/SkPicturePlayback.cpp
@@ -619,7 +619,7 @@ struct SkipClipRec {
};
#endif
-#ifdef SK_PICTURE_PROFILING_STUBS
+#ifdef SK_DEVELOPER
size_t SkPicturePlayback::preDraw(size_t offset, int type) {
return 0;
}
@@ -680,11 +680,11 @@ void SkPicturePlayback::draw(SkCanvas& canvas) {
SkMatrix initialMatrix = canvas.getTotalMatrix();
while (!reader.eof()) {
-#ifdef SK_PICTURE_PROFILING_STUBS
+#ifdef SK_DEVELOPER
size_t curOffset = reader.offset();
#endif
int type = reader.readInt();
-#ifdef SK_PICTURE_PROFILING_STUBS
+#ifdef SK_DEVELOPER
size_t skipTo = this->preDraw(curOffset, type);
if (0 != skipTo) {
if (kDrawComplete == skipTo) {
@@ -962,7 +962,7 @@ void SkPicturePlayback::draw(SkCanvas& canvas) {
SkASSERT(0);
}
-#ifdef SK_PICTURE_PROFILING_STUBS
+#ifdef SK_DEVELOPER
this->postDraw(curOffset);
#endif