Commit Graph

37 Commits

Author SHA1 Message Date
Alexander Larsson
2192cc5e89 Covert cairo canvas put_image() to pixman 2012-03-20 15:25:39 +01:00
Alexander Larsson
2afb5544da Replace custom region implementation with pixman_region32_t
pixman_region32_t is an efficient well tested region implementation (its
the one used in X) that we already depend on via pixman and use in
some places. No need to have a custom region implementation.
2012-03-20 15:25:39 +01:00
Alexander Larsson
962bc74ed9 Convert cairo canvas clear() to pixman 2012-03-20 15:25:38 +01:00
Alexander Larsson
62a6c2513d Convert cairo canvas group_start/end to pixman 2012-03-20 15:25:38 +01:00
Alexander Larsson
f6f84f518c Convert cairo canvas read_bits() to pixman 2012-03-20 15:25:38 +01:00
Alexander Larsson
f853baae92 Remove unused cairo helper functions 2012-03-20 15:25:38 +01:00
Alexander Larsson
bbf8b18b85 Convert cairo canvas to use pixman for draw_stroke 2012-03-20 15:25:38 +01:00
Alexander Larsson
2685407da3 Convert cairo canvas draw_transparent to use pixman 2012-03-20 15:25:38 +01:00
Alexander Larsson
d2d7d6a806 Convert cairo canvas draw_rop3 to using pixman 2012-03-20 15:25:38 +01:00
Alexander Larsson
2e3a63a6dd Convert draw_blackness/whiteness/invers to using pixman 2012-03-20 15:25:38 +01:00
Alexander Larsson
1f1f32d4c8 Convert cairo canvas alpha_blend to using pixman 2012-03-20 15:25:38 +01:00
Alexander Larsson
45d5461183 Convert cairo canvas draw_text to using pixman 2012-03-20 15:25:38 +01:00
Alexander Larsson
0671b02dbc Convert cairo canvas copy bits to pixman 2012-03-20 15:25:38 +01:00
Alexander Larsson
fd80e8a0e8 Convert cairo canvas draw_copy() to using pixman
This is just identical to draw_blend().
2012-03-20 15:25:38 +01:00
Alexander Larsson
2275b25c94 Convert cairo canvas draw_blend() to using pixman 2012-03-20 15:25:38 +01:00
Alexander Larsson
2be667e8a3 Convert cairo canvas draw_opaque() to using pixman 2012-03-20 15:25:38 +01:00
Alexander Larsson
de3d6525e9 Convert cairo canvas draw_fill() to using pixman 2012-03-20 15:25:38 +01:00
Alexander Larsson
5784e86202 Add possibility to not invert bitmask in canvas_get_mask()
This allows the pixman implementation to instead invert the (generally
smaller) region instead of duplicating the bitmap to invert it.
2012-03-20 15:25:37 +01:00
Alexander Larsson
f4b7a9d004 Use pixman_image_t instead of cairo_surface_t as the generic pixman container
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.
2012-03-20 15:25:37 +01:00
Alexander Larsson
f9e187c619 Turn image and palette cache into c style dynamic interface
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.
2012-03-20 15:25:37 +01:00
Alexander Larsson
517e38ad0f Add pixman_image_t referencing the cairo_canvas bits
This references the same data as the cairo surface and can be used
for drawing to the surface using direct pixman calls instead.
2012-03-20 15:25:37 +01:00
Alexander Larsson
639b6b5b26 Add line rasterizer 2012-03-20 15:25:37 +01:00
Alexander Larsson
98f2dfbf2f Add pixman utilities
This includes:
 * pixman region from SpiceRects
 * rop2 enum
 * solid fill
 * solid fill with rop
 * tiled fill
 * tiled fill with rop
 * blit
 * blit with rop
 * copy rect
2012-03-20 15:25:37 +01:00
Alexander Larsson
9d9a3e12c0 Add emacs settings for indent according to spice styleguide 2012-03-20 15:25:37 +01:00
Alexander Larsson
5ead2f51a2 Use standard int types and <spice/types.h> 2012-03-20 15:25:37 +01:00
Alexander Larsson
87d0104241 Use the new header names
I just ran:
 find -name "*.[ch]" | xargs sed -i -f ../spice-protocol/includes.sed
 find -name "*.cpp" | xargs sed -i -f ../spice-protocol/includes.sed
2012-03-20 15:25:37 +01:00
Alexander Larsson
2637b1ac76 Rename symbols that were changed in spice-protocol
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
2012-03-20 15:25:37 +01:00
Alexander Larsson
3fb8b84103 Remove headers that were moved to spice-protocol 2012-03-20 15:25:37 +01:00
Izik Eidus
a940ecc40b libspice: add surface 0 support
This include alot of infestracture for off screens.

Signed-off-by: Izik Eidus <ieidus@redhat.com>
2012-03-20 15:25:37 +01:00
Yaniv Kamay
89b1b0e897 client: change rerror code to be positive 2012-03-20 15:25:37 +01:00
Yaniv Kamay
d6ee10057e client: add Platform::term_printf
Platform::term_printf is a variant of printf that
on windows dynamically opens console in order to
have visible output during command line processing.
2012-03-20 15:25:37 +01:00
Yonit Halperin
f7016f367f server,client: server authentication for secured channels.
3 available mechanisms:  by public key, by host name, and by certificate subject name.
In the former method, chain of trust verification is not performed.
The CA certificate files are looked for under <spice-config-dir>/spice_truststore.pem

windows <spice-config-dir>=%APPDATA%\spicec\
linux <spice-config-dir>=$HOME/.spicec/
2012-03-20 15:25:36 +01:00
Izik Eidus
f40720e780 spice client: fix wrong gdi-canvas handling of blend_alpha
Signed-off-by: Izik Eidus <ieidus@redhat.com>
2012-03-20 15:25:36 +01:00
Izik Eidus
8d3823c46a spice: server: add memslots support.
Signed-off-by: Izik Eidus <ieidus@redhat.com>
2012-03-20 15:25:36 +01:00
Yaniv Kamay
ee15aef4bc fix build on Debian 2012-03-20 15:25:36 +01:00
Yonit Halperin
5d6ebd5f1f tunnel 2012-03-20 15:25:36 +01:00
Yaniv Kamay
a9ae774c90 fresh start 2012-03-20 15:25:36 +01:00