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

Function BM_StretchBlitRect

bench/bitmap.cpp:145–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143BENCHMARK(BM_StretchBlit);
144
145static void BM_StretchBlitRect(benchmark::State& state) {
146 Bitmap::SetFormat(format);
147 auto dest = Bitmap::Create(320, 240);
148 auto dst_rect = dest->GetRect();
149 auto src = Bitmap::Create(20, 20);
150 auto rect = src->GetRect();
151 for (auto _: state) {
152 dest->StretchBlit(dst_rect, *src, rect, opacity);
153 }
154}
155
156BENCHMARK(BM_StretchBlitRect);
157

Callers

nothing calls this directly

Calls 2

GetRectMethod · 0.80
StretchBlitMethod · 0.80

Tested by

no test coverage detected