SkFuzzLogging.h 636 B

1234567891011121314151617181920212223
  1. /*
  2. * Copyright 2016 Google Inc.
  3. *
  4. * Use of this source code is governed by a BSD-style license that can be
  5. * found in the LICENSE file.
  6. */
  7. #ifndef SkFuzzLogging_DEFINED
  8. #define SkFuzzLogging_DEFINED
  9. // Utilities for Skia's fuzzer
  10. // When SK_FUZZ_LOGGING is defined SkDebugfs relevant to image filter fuzzing
  11. // will be enabled. This allows the filter fuzzing code to white list fuzzer
  12. // failures based on the output logs.
  13. // Define this flag in your SkUserConfig.h or in your Make/Build system.
  14. #ifdef SK_FUZZ_LOGGING
  15. #define SkFUZZF(args) SkDebugf("SkFUZZ: "); SkDebugf args
  16. #else
  17. #define SkFUZZF(args)
  18. #endif
  19. #endif