| 143 | BENCHMARK(BM_StretchBlit); |
| 144 | |
| 145 | static void BM_StretchBlitRect(benchmark::State& state) { |
| 146 | Bitmap::SetFormat(format); |
| 147 | auto dest = Bitmap::Create(320, 240); |
| 148 | auto dst_rect = dest->GetRect(); |
| 149 | auto src = Bitmap::Create(20, 20); |
| 150 | auto rect = src->GetRect(); |
| 151 | for (auto _: state) { |
| 152 | dest->StretchBlit(dst_rect, *src, rect, opacity); |
| 153 | } |
| 154 | } |
| 155 | |
| 156 | BENCHMARK(BM_StretchBlitRect); |
| 157 |
nothing calls this directly
no test coverage detected