SkRecord: infer return type for visit() and mutate().

Review URL: https://codereview.chromium.org/1824983003
diff --git a/tests/RecordTestUtils.h b/tests/RecordTestUtils.h
index a281566..853ee21 100644
--- a/tests/RecordTestUtils.h
+++ b/tests/RecordTestUtils.h
@@ -30,7 +30,7 @@
 template <typename T>
 static const T* assert_type(skiatest::Reporter* r, const SkRecord& record, int index) {
     ReadAs<T> reader;
-    record.visit<void>(index, reader);
+    record.visit(index, reader);
     REPORTER_ASSERT(r, T::kType == reader.type);
     REPORTER_ASSERT(r, SkToBool(reader.ptr));
     return reader.ptr;
@@ -45,7 +45,7 @@
     MatchType<DrawT> matcher;
     int counter = 0;
     for (int i = 0; i < record.count(); i++) {
-        counter += record.visit<int>(i, matcher);
+        counter += record.visit(i, matcher);
     }
     return counter;
 }
@@ -53,7 +53,7 @@
 template <typename DrawT> int find_first_instances_of_type(const SkRecord& record) {
     MatchType<DrawT> matcher;
     for (int i = 0; i < record.count(); i++) {
-        if (record.visit<int>(i, matcher)) {
+        if (record.visit(i, matcher)) {
             return i;
         }
     }