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

Function BM_MaskedBlit

bench/bitmap.cpp:303–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

301BENCHMARK(BM_Flip);
302
303static void BM_MaskedBlit(benchmark::State& state) {
304 Bitmap::SetFormat(format);
305 auto dest = Bitmap::Create(320, 240);
306 auto dst_rect = dest->GetRect();
307 auto src = Bitmap::Create(320, 240);
308 auto mask = Bitmap::Create(320, 240);
309 for (auto _: state) {
310 dest->MaskedBlit(dst_rect, *mask, 0, 0, *src, 0, 0);
311 }
312}
313
314BENCHMARK(BM_MaskedBlit);
315

Callers

nothing calls this directly

Calls 2

GetRectMethod · 0.80
MaskedBlitMethod · 0.80

Tested by

no test coverage detected