13template <
typename Mutex>
23 return fBenchName.
c_str();
27 for (
int i = 0;
i < loops;
i++) {
47 return "SkSharedMutexSharedUncontendedBenchmark";
51 for (
int i = 0;
i < loops;
i++) {
DEF_BENCH(return new MutexBench< SkSharedMutex >(SkString("SkSharedMutex"));) DEF_BENCH(return new MutexBench< SkMutex >(SkString("SkMutex"))
const char * onGetName() override
bool isSuitableFor(Backend backend) override
void onDraw(int loops, SkCanvas *) override
MutexBench(SkString benchPrefix)
void onDraw(int loops, SkCanvas *) override
bool isSuitableFor(Backend backend) override
const char * onGetName() override
const char * c_str() const