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

Function BM_MaskedColorBlit

bench/bitmap.cpp:316–325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

314BENCHMARK(BM_MaskedBlit);
315
316static void BM_MaskedColorBlit(benchmark::State& state) {
317 Bitmap::SetFormat(format);
318 auto dest = Bitmap::Create(320, 240);
319 auto dst_rect = dest->GetRect();
320 auto mask = Bitmap::Create(320, 240);
321 auto color = Color(255, 255, 255, 255);
322 for (auto _: state) {
323 dest->MaskedBlit(dst_rect, *mask, 0, 0, color);
324 }
325}
326
327BENCHMARK(BM_MaskedColorBlit);
328

Callers

nothing calls this directly

Calls 3

GetRectMethod · 0.80
MaskedBlitMethod · 0.80
ColorClass · 0.50

Tested by

no test coverage detected