| 131 | BENCHMARK(BM_TiledBlitOffset); |
| 132 | |
| 133 | static void BM_StretchBlit(benchmark::State& state) { |
| 134 | Bitmap::SetFormat(format); |
| 135 | auto dest = Bitmap::Create(320, 240); |
| 136 | auto src = Bitmap::Create(20, 20); |
| 137 | auto rect = src->GetRect(); |
| 138 | for (auto _: state) { |
| 139 | dest->StretchBlit(*src, rect, opacity); |
| 140 | } |
| 141 | } |
| 142 | |
| 143 | BENCHMARK(BM_StretchBlit); |
| 144 |
nothing calls this directly
no test coverage detected