Switch debugger profiling stubs over to being guarded by SK_DEVELOPER
authorrobertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 17 Jan 2013 14:39:20 +0000 (14:39 +0000)
committerrobertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 17 Jan 2013 14:39:20 +0000 (14:39 +0000)
https://codereview.appspot.com/7134053/

git-svn-id: http://skia.googlecode.com/svn/trunk@7246 2bbb7eff-a529-9590-31e7-b0007b416f81

src/core/SkPicturePlayback.cpp
src/core/SkPicturePlayback.h

index e7f5ce8f858a2999c65e0717c665989e4e46de65..21fa034f7aa7267d008ff7c1fff9cae48e705339 100644 (file)
@@ -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
 
index b04ba0728165420f0952c5d602afc1cc30968a55..e0010fc919dbb6adf9a526c3b87233606e25ba6a 100644 (file)
@@ -79,7 +79,7 @@ public:
     void abort();
 
 protected:
-#ifdef SK_PICTURE_PROFILING_STUBS
+#ifdef SK_DEVELOPER
     virtual size_t preDraw(size_t offset, int type);
     virtual void postDraw(size_t offset);
 #endif