| 278 | BENCHMARK(BM_ToneBlit); |
| 279 | |
| 280 | static void BM_BlendBlit(benchmark::State& state) { |
| 281 | Bitmap::SetFormat(format); |
| 282 | auto dest = Bitmap::Create(320, 240); |
| 283 | auto src = Bitmap::Create(320, 240); |
| 284 | auto rect = src->GetRect(); |
| 285 | auto color = Color(255, 255, 255, 255); |
| 286 | for (auto _: state) { |
| 287 | dest->BlendBlit(0, 0, *src, rect, color, opacity); |
| 288 | } |
| 289 | } |
| 290 | |
| 291 | BENCHMARK(BM_BlendBlit); |
| 292 |