summaryrefslogtreecommitdiffstats
path: root/common/gdi_canvas.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix various misspellingsAlexander Larsson2010-07-081-1/+1
| | | | | | | | | | | | | letancy -> latency compund -> compound SpicedSubMessage -> SpiceSubMessage modifaiers -> modifiers massage -> message outgoiong -> outgoing AlphaBlnd -> AlphaBlend remoth -> remote modifires -> modifiers secore -> secure
* Properly parse QXLLineAttrs.styleAlexander Larsson2010-07-081-2/+1
|
* Convert SpicePath.segments to a pointer arrayAlexander Larsson2010-07-051-8/+5
|
* Fix build on win32Alexander Larsson2010-07-011-18/+18
|
* Update for the SpicePath.segments type changeAlexander Larsson2010-07-011-1/+1
|
* Simplify SpiceLineAttr by removing unsed stuffAlexander Larsson2010-06-301-41/+4
| | | | Also in new protocol don't send style data if not needed.
* Store SpicePath segment count rather than sizeAlexander Larsson2010-06-301-9/+6
| | | | | | | | | | | | | | | | | | | Internally and in the network protocol (for the new version) we now store the actual number of segments rather than the size of the full segments array in bytes. This change consists of multiple changes to handle this: * Make the qxl parser calculate num_segments * Make the canvas stroke code handle the new SpicePath layout. * Fix up is_equal_path in red_worker.c for the new layout * replace multiple calls to spice_marshall_PathSegment with a single spice_marshall_Path call * Make the byte_size() array size handling do the conversion from network size to number of elements when marshalling/demarshalling. * Update the current spice protocol to send the segment count rather than the size * Update the old spice protocol to use the new byte_size functionallity to calculate the size sent and the number of elements recieved
* Remove support for clip by pathAlexander Larsson2010-06-241-6/+0
| | | | This is not supported currently anyway and was not generated before.
* applying zlib compression over glz on WAN connectionYonit Halperin2010-06-211-1/+3
|
* Client: Use the autogenerated demarshallersAlexander Larsson2010-06-181-17/+0
| | | | | | | | | | | | | | | | When a message has been read from the network we now pass it into the generated demarshaller for the channel. The demarshaller converts the network data to in-memory structures that is passed on to the spice internals. Additionally it also: * Converts endianness * Validates sizes of message and any pointers in it * Localizes offsets (converts them to pointers) * Checks for zero offsets in messages where they are not supported Some of this was previously done using custom code in the client, this is now removed.
* There are multiple line attribute flags enums, use only oneAlexander Larsson2010-06-171-2/+2
|
* JPEG support: introducing jpeg encoding for spice bitmapsYonit Halperin2010-06-091-1/+3
|
* Remove all mentions of "cairo" from the codeAlexander Larsson2010-05-031-5/+5
| | | | | The command line option is renamed from "cairo" to "sw", and similarly all filenames and types from Cairo to Sw (and similar).
* win32 client: Remove unnecessary GDIImage typeAlexander Larsson2010-04-291-67/+40
| | | | We just use pixman_image_t as the "information about image data" structure.
* Win32 canvas fixesAlexander Larsson2010-04-231-9/+9
|
* Make client canvas and pixmaps handle more formats and simplifyAlexander Larsson2010-04-231-2/+2
| | | | | | | | | | | We now support 16bit format pixmaps as well as the old ones. Including both 555 and 565 modes. We drop the palette argument for pixmap construction as it was only used for black/white anyway. Canvas creation is simplified so that there is no separate set_mode state. Canvases are already created in the right mode and never change.
* Relicense everything from GPL to LGPL 2.1+Alexander Larsson2010-04-131-9/+9
|
* spice: win32 client: fix gdi lockingIzik Eidus2010-04-091-46/+111
| | | | | | | | | | | While the fix could have been more effective, it seems like this patch stream better with the coding logic that was there..., maybe later we will want to change the locking into more effective way. (There is just the primary surface to protect in reiality) Signed-off-by: Izik Eidus <ieidus@redhat.com>
* spice: common: gdi_canvas fix gdi objects leakIzik Eidus2010-04-051-0/+1
| | | | | | | | | | | BitmapMask was used by the draw_text function as well therefore we need to mark from_surface = 0 if we want it to release the boject... (Was evil, took me few hours to understand from where the leak come...) Signed-off-by: Izik Eidus <ieidus@redhat.com>
* libspice: add off screens supportIzik Eidus2010-04-031-181/+284
| | | | Signed-off-by: Izik Eidus <ieidus@redhat.com>
* Use the spice allocator in common/Alexander Larsson2010-03-111-3/+3
|
* Update gdi canvas wrt latest changesAlexander Larsson2010-03-091-2/+2
| | | | ALIGN -> SPICE_ALIGN
* Move canvas_region and group_start/end to canvas_baseAlexander Larsson2010-03-081-2/+4
|
* Move virtualization of canvas drawing into common/canvas_baseAlexander Larsson2010-03-081-37/+70
| | | | | | | | | | | Instead of having two virtualizations of the canvas we push the virtualization into the canvas code itself. This not only avoids the duplication of this code, it also makes the exposed API for the canvas much smaller (in terms of exported API). It also lets us use the virtualization to implement basic support for operations in canvas_base which is then overridden by each canvas implementation.
* Make glz_decoder non-optional canvas_base in canvas constructorsAlexander Larsson2010-03-081-7/+1
| | | | | It can still be NULL, but we simplify the headers by always including it. There is no practical performance difference here.
* Make canvas Glz decoder integration nicerAlexander Larsson2010-03-081-3/+2
| | | | | We use a dynamic interface similar to e.g. SpiceImageCache instead of passing both function and opaque
* Make gdi canvas build in the new pixman worldLarsson@.(none)2010-03-011-14/+17
|
* Add possibility to not invert bitmask in canvas_get_mask()Alexander Larsson2010-02-231-1/+1
| | | | | This allows the pixman implementation to instead invert the (generally smaller) region instead of duplicating the bitmap to invert it.
* Use pixman_image_t instead of cairo_surface_t as the generic pixman containerAlexander Larsson2010-02-231-78/+78
| | | | | | This allows us to use the simpler dependency of pixman outside of the cairo backend, and it later lets us move the cairo backend to using pixman only.
* Turn image and palette cache into c style dynamic interfaceAlexander Larsson2010-02-231-16/+6
| | | | | | Instead of passing a bunch of function pointer and an opaque pointer we make a real type and add a vtable pointer to it. This means we can simplify all the canvas constructors, etc.
* Add emacs settings for indent according to spice styleguideAlexander Larsson2010-02-231-0/+1
|
* Use standard int types and <spice/types.h>Alexander Larsson2010-02-041-1/+1
|
* Rename symbols that were changed in spice-protocolAlexander Larsson2010-02-041-117/+117
| | | | | | This is an automatic change using: $ find -name "*.[ch]" | xargs ../spice-protocol/rename-identifiers.sh ../spice-protocol/renames $ find -name "*.cpp" | xargs ../spice-protocol/rename-identifiers.sh ../spice-protocol/renames
* spice client: fix wrong gdi-canvas handling of blend_alphaIzik Eidus2009-12-231-6/+14
| | | | Signed-off-by: Izik Eidus <ieidus@redhat.com>
* spice: server: add memslots support.Izik Eidus2009-11-231-10/+2
| | | | Signed-off-by: Izik Eidus <ieidus@redhat.com>
* fresh startYaniv Kamay2009-10-141-0/+1757