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

Function BM_BlendBlit

bench/bitmap.cpp:280–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278BENCHMARK(BM_ToneBlit);
279
280static void BM_BlendBlit(benchmark::State& state) {
281 Bitmap::SetFormat(format);
282 auto dest = Bitmap::Create(320, 240);
283 auto src = Bitmap::Create(320, 240);
284 auto rect = src->GetRect();
285 auto color = Color(255, 255, 255, 255);
286 for (auto _: state) {
287 dest->BlendBlit(0, 0, *src, rect, color, opacity);
288 }
289}
290
291BENCHMARK(BM_BlendBlit);
292

Callers

nothing calls this directly

Calls 3

GetRectMethod · 0.80
BlendBlitMethod · 0.80
ColorClass · 0.50

Tested by

no test coverage detected