diff options
author | Søren Sandmann Pedersen <ssp@redhat.com> | 2012-08-10 18:44:57 -0400 |
---|---|---|
committer | Søren Sandmann Pedersen <ssp@redhat.com> | 2012-08-24 13:45:31 -0400 |
commit | 37be9e0c2efd21e088e8106b4356de7fcbe5a95b (patch) | |
tree | 3cb472decbaccec1ad3c7f84aa11d89eb892a17a /client/canvas.cpp | |
parent | a91daa2feb50a3d39150993a9d1b397b3c85ad03 (diff) | |
download | spice-37be9e0c2efd21e088e8106b4356de7fcbe5a95b.tar.gz spice-37be9e0c2efd21e088e8106b4356de7fcbe5a95b.tar.xz spice-37be9e0c2efd21e088e8106b4356de7fcbe5a95b.zip |
Add support for Composite command to the client
All the real work is being done in spice-common, so this patch is just
hooking up the virtual calls and adding the SPICE_DISPLAY_CAP_COMPOSITE
capability.
Diffstat (limited to 'client/canvas.cpp')
-rw-r--r-- | client/canvas.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/client/canvas.cpp b/client/canvas.cpp index 7d1561a3..f132186a 100644 --- a/client/canvas.cpp +++ b/client/canvas.cpp @@ -114,6 +114,13 @@ void Canvas::draw_alpha_blend(SpiceMsgDisplayDrawAlphaBlend& alpha_blend, int si touched_bbox(&alpha_blend.base.box); } +void Canvas::draw_composite(SpiceMsgDisplayDrawComposite& composite, int size) +{ + begin_draw(composite.base, size, sizeof(SpiceMsgDisplayDrawComposite)); + _canvas->ops->draw_composite(_canvas, &composite.base.box, &composite.base.clip, &composite.data); + touched_bbox(&composite.base.box); +} + void Canvas::copy_bits(SpiceMsgDisplayCopyBits& copy, int size) { begin_draw(copy.base, size, sizeof(SpiceMsgDisplayCopyBits)); |