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

Function BM_FlipBlit

bench/bitmap.cpp:158–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156BENCHMARK(BM_StretchBlitRect);
157
158static 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
168BENCHMARK(BM_FlipBlit);
169

Callers

nothing calls this directly

Calls 2

GetRectMethod · 0.80
FlipBlitMethod · 0.80

Tested by

no test coverage detected