| 314 | BENCHMARK(BM_MaskedBlit); |
| 315 | |
| 316 | static void BM_MaskedColorBlit(benchmark::State& state) { |
| 317 | Bitmap::SetFormat(format); |
| 318 | auto dest = Bitmap::Create(320, 240); |
| 319 | auto dst_rect = dest->GetRect(); |
| 320 | auto mask = Bitmap::Create(320, 240); |
| 321 | auto color = Color(255, 255, 255, 255); |
| 322 | for (auto _: state) { |
| 323 | dest->MaskedBlit(dst_rect, *mask, 0, 0, color); |
| 324 | } |
| 325 | } |
| 326 | |
| 327 | BENCHMARK(BM_MaskedColorBlit); |
| 328 |
nothing calls this directly
no test coverage detected