Review comments

This commit is contained in:
jpirnay
2026-04-10 12:43:55 +02:00
parent f458228a24
commit bcb0634c87
2 changed files with 31 additions and 15 deletions
+2 -2
View File
@@ -31,6 +31,7 @@ class GfxRenderer {
private:
static constexpr size_t BW_BUFFER_CHUNK_SIZE = 8000; // 8KB chunks to allow for non-contiguous memory
static constexpr unsigned int REFRESH_OVERRIDE_NONE = 0;
HalDisplay& display;
std::atomic<int> renderMode;
@@ -60,8 +61,7 @@ class GfxRenderer {
// recording to the (non-const) FontCacheManager. Same pragmatic compromise
// as before, concentrated in a single pointer instead of four fields.
mutable FontCacheManager* fontCacheManager_ = nullptr;
mutable std::atomic<bool> useNextRefreshOverride = false;
mutable std::atomic<int> nextRefreshOverride = static_cast<int>(HalDisplay::FAST_REFRESH);
mutable std::atomic<unsigned int> refreshOverride = REFRESH_OVERRIDE_NONE;
void renderChar(const EpdFontFamily& fontFamily, uint32_t cp, int* x, int* y, bool pixelState,
EpdFontFamily::Style style) const;