summaryrefslogtreecommitdiff
path: root/gdi_canvas.h
AgeCommit message (Collapse)AuthorFilesLines
2012-03-15Remove need for SPICE_CANVAS_INTERNALMarc-André Lureau1-4/+0
Why is this useful?
2012-03-15Use SPICE_{BEGIN,END}_DECLSMarc-André Lureau1-7/+4
2012-01-13Death to all TABsDaniel P. Berrange1-1/+1
Source files should all use spaces instead of tabs for indentation. Update the few files not already in compliance
2011-05-03autotools: correctly build canvas-related codeChristophe Fergeau1-0/+4
spice client and spice server shares code from common/{gdi,gl,sw}_canvas.[ch]. However, while most of the code is shared, the server code wants a canvas compiled with SW_CANVAS_IMAGE_CACHE defined while the client code wants a canvas compiled with SW_CANVAS_CACHE. The initial autotools refactoring didn't take that into account, this is now fixed by this commit. After this commit, the canvas files from common/ are no longer compiled as part of the libspice-common.la convenience library. Instead, there are "proxy" canvas source files in client/ and server/ which #include the appropriate C files after defining the relevant #define for the binary that is being built. To prevent misuse of the canvas c files and headers in common/, SPICE_CANVAS_INTERNAL must be set when including the canvas headers from common/ or when building the c files from common/ otherwise the build will error out.
2011-05-02use foo(void) instead of foo() in prototypesChristophe Fergeau1-1/+1
In C, the latter isn't a prototype for a function with no arg, but declares a function with an undefined number of args.
2011-05-02common: add extern "C" guards to headersChristophe Fergeau1-0/+8
Since some spice C++ code is using code from common/, the C functions need to be marked as such for the C++ compiler, otherwise we'll get linkage issues.
2010-07-08Move in spice/draw.h from spice-protocol to common/Alexander Larsson1-1/+0
2010-06-21applying zlib compression over glz on WAN connectionYonit Halperin1-1/+2
2010-06-09JPEG support: introducing jpeg encoding for spice bitmapsYonit Halperin1-1/+2
2010-04-29win32 client: Remove unnecessary GDIImage typeAlexander Larsson1-7/+0
We just use pixman_image_t as the "information about image data" structure.
2010-04-23Make client canvas and pixmaps handle more formats and simplifyAlexander Larsson1-1/+1
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.
2010-04-13Relicense everything from GPL to LGPL 2.1+Alexander Larsson1-9/+9
2010-04-09spice: win32 client: fix gdi lockingIzik Eidus1-1/+1
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>
2010-04-03libspice: add off screens supportIzik Eidus1-0/+1
Signed-off-by: Izik Eidus <ieidus@redhat.com>
2010-03-08Move canvas_region and group_start/end to canvas_baseAlexander Larsson1-1/+2
2010-03-08Move virtualization of canvas drawing into common/canvas_baseAlexander Larsson1-32/+4
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.
2010-03-08Make canvas Glz decoder integration nicerAlexander Larsson1-2/+1
We use a dynamic interface similar to e.g. SpiceImageCache instead of passing both function and opaque
2010-03-01Make gdi canvas build in the new pixman worldLarsson@.(none)1-2/+2
2010-02-23Use pixman_image_t instead of cairo_surface_t as the generic pixman containerAlexander Larsson1-1/+1
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.
2010-02-23Turn image and palette cache into c style dynamic interfaceAlexander Larsson1-4/+2
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.
2010-02-23Add emacs settings for indent according to spice styleguideAlexander Larsson1-0/+1
2010-02-04Use the new header namesAlexander Larsson1-1/+1
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
2010-02-04Rename symbols that were changed in spice-protocolAlexander Larsson1-15/+15
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
2009-11-23spice: server: add memslots support.Izik Eidus1-4/+1
Signed-off-by: Izik Eidus <ieidus@redhat.com>
2009-10-14fresh startYaniv Kamay1-0/+76