MCPcopy Create free account
hub / github.com/crosspoint-reader/crosspoint-reader / fillRect

Method fillRect

lib/GfxRenderer/GfxRenderer.cpp:663–669  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

661}
662
663void GfxRenderer::fillRect(const int x, const int y, const int width, const int height, const bool state) const {
664 if (state) {
665 fillRectImpl<Color::Black>(x, y, width, height);
666 } else {
667 fillRectImpl<Color::White>(x, y, width, height);
668 }
669}
670
671// NOTE: Those are in critical path, and need to be templated to avoid runtime checks for every pixel.
672// Any branching must be done outside the loops to avoid performance degradation.

Callers 15

fillBatteryIconMethod · 0.80
drawProgressBarMethod · 0.80
drawButtonHintsMethod · 0.80
drawListMethod · 0.80
drawHeaderMethod · 0.80
drawTabBarMethod · 0.80
drawRecentBookCoverMethod · 0.80
drawButtonMenuMethod · 0.80
drawPopupMethod · 0.80
fillPopupProgressMethod · 0.80
drawStatusBarMethod · 0.80
drawKeyboardKeyMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected