| 156 | BENCHMARK(BM_StretchBlitRect); |
| 157 | |
| 158 | static void BM_FlipBlit(benchmark::State& state) { |
| 159 | Bitmap::SetFormat(format); |
| 160 | auto dest = Bitmap::Create(320, 240); |
| 161 | auto src = Bitmap::Create(320, 240); |
| 162 | auto rect = src->GetRect(); |
| 163 | for (auto _: state) { |
| 164 | dest->FlipBlit(0, 0, *src, rect, true, true, opacity); |
| 165 | } |
| 166 | } |
| 167 | |
| 168 | BENCHMARK(BM_FlipBlit); |
| 169 |