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

Function BM_ZoomOpacityBlit

bench/bitmap.cpp:170–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168BENCHMARK(BM_FlipBlit);
169
170static void BM_ZoomOpacityBlit(benchmark::State& state) {
171 Bitmap::SetFormat(format);
172 auto dest = Bitmap::Create(320, 240);
173 auto src = Bitmap::Create(60, 60);
174 auto rect = src->GetRect();
175 for (auto _: state) {
176 dest->ZoomOpacityBlit(0, 0, 30, 30, *src, rect, 2.0, 2.0, opacity);
177 }
178}
179
180BENCHMARK(BM_ZoomOpacityBlit);
181

Callers

nothing calls this directly

Calls 2

GetRectMethod · 0.80
ZoomOpacityBlitMethod · 0.80

Tested by

no test coverage detected