bracket SkPath pathRefIsValid with define

Add defines around the places calls
SkPath::pathRefIsValid()

R=fmalita@chromium.org

Bug:913930
Change-Id: Iffaa85cecf127cf8cb405dffe76666f9184de76e
Reviewed-on: https://skia-review.googlesource.com/c/176583
Commit-Queue: Cary Clark <caryclark@skia.org>
Commit-Queue: Florin Malita <fmalita@chromium.org>
Auto-Submit: Cary Clark <caryclark@skia.org>
Reviewed-by: Florin Malita <fmalita@chromium.org>
diff --git a/fuzz/FuzzCommon.cpp b/fuzz/FuzzCommon.cpp
index 695ef74..eb2ad92 100644
--- a/fuzz/FuzzCommon.cpp
+++ b/fuzz/FuzzCommon.cpp
@@ -214,7 +214,9 @@
                 break;
         }
         SkASSERTF(       path->isValid(),        "path->isValid() failed at op %d, case %d", i, op);
+#ifndef SK_SUPPORT_DIRECT_PATHREF_VALIDATION
         SkASSERTF(path->pathRefIsValid(), "path->pathRefIsValid() failed at op %d, case %d", i, op);
+#endif
     }
 }
 
diff --git a/tests/PathTest.cpp b/tests/PathTest.cpp
index ec60206..7bd33d6 100644
--- a/tests/PathTest.cpp
+++ b/tests/PathTest.cpp
@@ -5189,7 +5189,9 @@
     REPORTER_ASSERT(r, p.getBounds() == SkRect::MakeLTRB(0,0, 30,10));  // was {0,0, 20,61}
 
     REPORTER_ASSERT(r, p.isValid());
+#ifndef SK_SUPPORT_DIRECT_PATHREF_VALIDATION
     REPORTER_ASSERT(r, p.pathRefIsValid());
+#endif
 }
 
 DEF_TEST(Path_increserve_handle_neg_crbug_883666, r) {