MCPcopy Create free account
hub / github.com/EasyRPG/Player / BM_WaverBlit

Function BM_WaverBlit

bench/bitmap.cpp:194–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192BENCHMARK(BM_RotateZoomOpacityBlit);
193
194static void BM_WaverBlit(benchmark::State& state) {
195 Bitmap::SetFormat(format);
196 auto dest = Bitmap::Create(320, 240);
197 auto src = Bitmap::Create(320, 240);
198 auto rect = src->GetRect();
199 auto zoom_x = 2.0;
200 auto zoom_y = 2.0;
201 int depth = 2;
202 double phase = M_PI;
203 for (auto _: state) {
204 dest->WaverBlit(0, 0, zoom_x, zoom_y, *src, rect, depth, phase, opacity);
205 }
206}
207
208BENCHMARK(BM_WaverBlit);
209

Callers

nothing calls this directly

Calls 2

GetRectMethod · 0.80
WaverBlitMethod · 0.80

Tested by

no test coverage detected