| 265 | BENCHMARK(BM_HueChangeBlit); |
| 266 | |
| 267 | static void BM_ToneBlit(benchmark::State& state) { |
| 268 | Bitmap::SetFormat(format); |
| 269 | auto dest = Bitmap::Create(320, 240); |
| 270 | auto src = Bitmap::Create(320, 240); |
| 271 | auto rect = src->GetRect(); |
| 272 | auto tone = Tone(255,255,255,128); |
| 273 | for (auto _: state) { |
| 274 | dest->ToneBlit(0, 0, *src, rect, tone, opacity); |
| 275 | } |
| 276 | } |
| 277 | |
| 278 | BENCHMARK(BM_ToneBlit); |
| 279 |