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

Function BM_Blit2x

bench/bitmap.cpp:329–338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

327BENCHMARK(BM_MaskedColorBlit);
328
329static void BM_Blit2x(benchmark::State& state) {
330 Bitmap::SetFormat(format);
331 auto dest = Bitmap::Create(320, 240);
332 auto dst_rect = dest->GetRect();
333 auto src = Bitmap::Create(320, 240);
334 auto rect = src->GetRect();
335 for (auto _: state) {
336 dest->Blit2x(dst_rect, *src, rect);
337 }
338}
339
340BENCHMARK(BM_Blit2x);
341

Callers

nothing calls this directly

Calls 2

GetRectMethod · 0.80
Blit2xMethod · 0.80

Tested by

no test coverage detected