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

Function BM_ToneBlit

bench/bitmap.cpp:267–276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265BENCHMARK(BM_HueChangeBlit);
266
267static void BM_ToneBlit(benchmark::State& state) {
268 Bitmap::SetFormat(format);
269 auto dest = Bitmap::Create(320, 240);
270 auto src = Bitmap::Create(320, 240);
271 auto rect = src->GetRect();
272 auto tone = Tone(255,255,255,128);
273 for (auto _: state) {
274 dest->ToneBlit(0, 0, *src, rect, tone, opacity);
275 }
276}
277
278BENCHMARK(BM_ToneBlit);
279

Callers

nothing calls this directly

Calls 3

GetRectMethod · 0.80
ToneBlitMethod · 0.80
ToneClass · 0.50

Tested by

no test coverage detected