| 168 | BENCHMARK(BM_FlipBlit); |
| 169 | |
| 170 | static void BM_ZoomOpacityBlit(benchmark::State& state) { |
| 171 | Bitmap::SetFormat(format); |
| 172 | auto dest = Bitmap::Create(320, 240); |
| 173 | auto src = Bitmap::Create(60, 60); |
| 174 | auto rect = src->GetRect(); |
| 175 | for (auto _: state) { |
| 176 | dest->ZoomOpacityBlit(0, 0, 30, 30, *src, rect, 2.0, 2.0, opacity); |
| 177 | } |
| 178 | } |
| 179 | |
| 180 | BENCHMARK(BM_ZoomOpacityBlit); |
| 181 |
nothing calls this directly
no test coverage detected