X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=test_util.h;h=6ee32284a827777a81435027a8b7cad73e70dbe5;hp=a0767ad81b097920f60483188fdbb78e60a7728a;hb=9823bfb683591e2b0fd844fa206ac888a9fef01a;hpb=4179bef190d88739038233ac5d7e5ffa2ff4282f 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: