X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=test_util.h;h=6ee32284a827777a81435027a8b7cad73e70dbe5;hp=a0767ad81b097920f60483188fdbb78e60a7728a;hb=e09662ec1b11f72746c7691fef56e14241d32d1c;hpb=3559b216df102fb518876e1d567e2a3558283d31 diff --git a/test_util.h b/test_util.h index a0767ad..6ee3228 100644 --- a/test_util.h +++ b/test_util.h @@ -101,6 +101,11 @@ public: // compute shaders). Will also output a message to stderr if so. bool should_skip(); +#ifdef HAVE_BENCHMARK + // Same, but outputs a message to the benchmark instead of to stderr. + bool should_skip(benchmark::State *benchmark_state); +#endif + bool active() const { return disable_compute_shaders; } private: