fix(platform): run LCD preheat on render task

This commit is contained in:
chenjintao
2026-08-11 16:29:27 +08:00
parent 0f47e6b585
commit e5d60ca44b
3 changed files with 158 additions and 16 deletions
+4 -3
View File
@@ -426,14 +426,15 @@ esp_err_t platform_lcd_request_presentation(const platform_lcd_presentation_requ
* @brief Preload the decoded assets for a LCD presentation without changing display state.
*
* Semantics:
* - Non-blocking.
* - Queues the preload on the LCD render task and blocks until it completes or
* the internal safety timeout elapses.
* - Returns `ESP_ERR_INVALID_STATE` if the LCD is not initialized or is stopping.
* - Request data is copied during the call; caller-owned pointers only need to
* remain valid until this function returns.
* - Only asset-sequence presentations are supported; other kinds return
* `ESP_ERR_INVALID_ARG`.
* - The render task performs the preload incrementally and may drop older
* cached assets if memory is needed.
* - The render task performs the preload between display frames and may drop
* older cached assets if memory is needed.
*/
esp_err_t platform_lcd_preheat_presentation(const platform_lcd_presentation_request_t *request);