| 219 | BENCHMARK(BM_Fill); |
| 220 | |
| 221 | static void BM_FillRect(benchmark::State& state) { |
| 222 | Bitmap::SetFormat(format); |
| 223 | auto dest = Bitmap::Create(320, 240); |
| 224 | auto rect = dest->GetRect(); |
| 225 | auto color = Color(255, 255, 255, 255); |
| 226 | for (auto _: state) { |
| 227 | dest->FillRect(rect, color); |
| 228 | } |
| 229 | } |
| 230 | |
| 231 | BENCHMARK(BM_FillRect); |
| 232 |