diff options
author | Gerd Hoffmann | 2012-02-24 12:43:45 +0100 |
---|---|---|
committer | Anthony Liguori | 2012-02-24 20:36:05 +0100 |
commit | 45efb16124efef51de5157afc31984b5a47700f9 (patch) | |
tree | 3f391912a9c7d6172c3abf861bf2e56accdf8aae /hw/qxl.c | |
parent | Remove screendump dummy functions. (diff) | |
download | qemu-45efb16124efef51de5157afc31984b5a47700f9.tar.gz qemu-45efb16124efef51de5157afc31984b5a47700f9.tar.xz qemu-45efb16124efef51de5157afc31984b5a47700f9.zip |
optimize screendump for the common non-switch case
switch console only if needed, also pass down whenever the console was
switched or not because a displaysurface redraw is only needed in case
the console was switched.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/qxl.c')
-rw-r--r-- | hw/qxl.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1436,7 +1436,7 @@ static void qxl_hw_invalidate(void *opaque) vga->invalidate(vga); } -static void qxl_hw_screen_dump(void *opaque, const char *filename) +static void qxl_hw_screen_dump(void *opaque, const char *filename, bool cswitch) { PCIQXLDevice *qxl = opaque; VGACommonState *vga = &qxl->vga; @@ -1448,7 +1448,7 @@ static void qxl_hw_screen_dump(void *opaque, const char *filename) ppm_save(filename, qxl->ssd.ds->surface); break; case QXL_MODE_VGA: - vga->screen_dump(vga, filename); + vga->screen_dump(vga, filename, cswitch); break; default: break; |