summaryrefslogtreecommitdiff
path: root/include/video.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2018-10-01 11:55:14 -0600
committerSimon Glass <sjg@chromium.org>2018-10-09 04:40:27 -0600
commit55d39911c0579b91a27f0acf3d0c1e123bb29ac1 (patch)
tree6494c7650aebd1d22ec3a0d6565f85426d4f46a4 /include/video.h
parentc3aed5db591ee38068dc2b6d73b04638bd7b7b26 (diff)
sandbox: video: Speed up video output
At present there are many situations where sandbox syncs the display to the SDL frame buffer. This is a very expensive operation but is only needed every now and then. Update video_sync() so that we can specify whether this operation is really needed. At present this flag is not used on other architectures. It could also be used for reducing writeback-cache flushes but the benefit of that would need to be investigated. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Anatolij Gustschin <agust@denx.de>
Diffstat (limited to 'include/video.h')
-rw-r--r--include/video.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/video.h b/include/video.h
index e7fc5c94e2..cd5558f86e 100644
--- a/include/video.h
+++ b/include/video.h
@@ -131,8 +131,10 @@ void video_clear(struct udevice *dev);
* buffer are displayed to the user.
*
* @dev: Device to sync
+ * @force: True to force a sync even if there was one recently (this is
+ * very expensive on sandbox)
*/
-void video_sync(struct udevice *vid);
+void video_sync(struct udevice *vid, bool force);
/**
* video_sync_all() - Sync all devices' frame buffers with there hardware