sandbox: video: Speed up video output
authorSimon Glass <sjg@chromium.org>
Mon, 1 Oct 2018 17:55:14 +0000 (11:55 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 9 Oct 2018 10:40:27 +0000 (04:40 -0600)
commit55d39911c0579b91a27f0acf3d0c1e123bb29ac1
tree6494c7650aebd1d22ec3a0d6565f85426d4f46a4
parentc3aed5db591ee38068dc2b6d73b04638bd7b7b26
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>
drivers/video/vidconsole-uclass.c
drivers/video/video-uclass.c
drivers/video/video_bmp.c
include/video.h
test/dm/video.c