mirror of
https://xff.cz/git/u-boot/
synced 2026-01-03 12:57:18 +01:00
video: Allow syncing the entire framebuffer to the copy
In some cases so much of the framebuffer is updated that it is not worth copying the changes piece by piece to the copy framebuffer. Add a function to copy the whole thing. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -246,11 +246,25 @@ void video_set_default_colors(struct udevice *dev, bool invert);
|
||||
* frame buffer start
|
||||
*/
|
||||
int video_sync_copy(struct udevice *dev, void *from, void *to);
|
||||
|
||||
/**
|
||||
* video_sync_copy_all() - Sync the entire framebuffer to the copy
|
||||
*
|
||||
* @dev: Vidconsole device being updated
|
||||
* @return 0 (always)
|
||||
*/
|
||||
int video_sync_copy_all(struct udevice *dev);
|
||||
#else
|
||||
static inline int video_sync_copy(struct udevice *dev, void *from, void *to)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline int video_sync_copy_all(struct udevice *dev)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_DM_VIDEO
|
||||
|
||||
Reference in New Issue
Block a user