aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkFuzzLogging.h
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2016-04-08 14:03:06 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-04-08 14:03:06 -0700
commitff3681156ced7718a73eca1e170824866d9e5776 (patch)
treeaa6b3d94f196d97452030fa132aad5f8353a44ff /src/core/SkFuzzLogging.h
parent23d2c18cb14091b600e9786c1c853fa3f5b773a4 (diff)
Add SkFUZZF to help whitelist imagefilter fuzz failures
The current use case for this is whitelisting MergeImageFilter failures when the number of inputs is too big. Presumably there will be other whitelisting use cases as we progress. GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1873463002 Review URL: https://codereview.chromium.org/1873463002
Diffstat (limited to 'src/core/SkFuzzLogging.h')
-rw-r--r--src/core/SkFuzzLogging.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/core/SkFuzzLogging.h b/src/core/SkFuzzLogging.h
new file mode 100644
index 0000000000..8e546e3a06
--- /dev/null
+++ b/src/core/SkFuzzLogging.h
@@ -0,0 +1,23 @@
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#ifndef SkFuzzLogging_DEFINED
+#define SkFuzzLogging_DEFINED
+
+// Utilities for Skia's fuzzer
+
+// When SK_FUZZ_LOGGING is defined SkDebugfs relevant to image filter fuzzing
+// will be enabled. This allows the filter fuzzing code to white list fuzzer
+// failures based on the output logs.
+// Define this flag in your SkUserConfig.h or in your Make/Build system.
+#ifdef SK_FUZZ_LOGGING
+ #define SkFUZZF(args) SkDebugf("SkFUZZ: "); SkDebugf args
+#else
+ #define SkFUZZF(args)
+#endif
+
+#endif