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

Function BM_FillRect

bench/bitmap.cpp:221–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219BENCHMARK(BM_Fill);
220
221static void BM_FillRect(benchmark::State& state) {
222 Bitmap::SetFormat(format);
223 auto dest = Bitmap::Create(320, 240);
224 auto rect = dest->GetRect();
225 auto color = Color(255, 255, 255, 255);
226 for (auto _: state) {
227 dest->FillRect(rect, color);
228 }
229}
230
231BENCHMARK(BM_FillRect);
232

Callers

nothing calls this directly

Calls 3

GetRectMethod · 0.80
FillRectMethod · 0.80
ColorClass · 0.50

Tested by

no test coverage detected