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

Function BM_StretchBlit

bench/bitmap.cpp:133–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131BENCHMARK(BM_TiledBlitOffset);
132
133static void BM_StretchBlit(benchmark::State& state) {
134 Bitmap::SetFormat(format);
135 auto dest = Bitmap::Create(320, 240);
136 auto src = Bitmap::Create(20, 20);
137 auto rect = src->GetRect();
138 for (auto _: state) {
139 dest->StretchBlit(*src, rect, opacity);
140 }
141}
142
143BENCHMARK(BM_StretchBlit);
144

Callers

nothing calls this directly

Calls 2

GetRectMethod · 0.80
StretchBlitMethod · 0.80

Tested by

no test coverage detected