summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-04-23gl: Add some stuff to multiplane shaders patchplanarBenjamin Otte2-5/+3
2010-04-23gl: Add code for to handle subsampled multiplane surfacesBenjamin Otte2-20/+89
In fact, we now handle y420, y422 and y444 surfaces.
2010-04-23gl: Allow drawing image formats with special shadersBenjamin Otte4-26/+272
Extends the code to query formats and to draw images onto surfaces, so that it can use shaders. Implement shaders for the different color spaces.
2010-04-23gl: Make _gl_set_destination() take the context as an argumentBenjamin Otte3-13/+11
Keeping with the API introduced for Xlib, functions that require an acquired context take this context as the first argument.
2010-04-23glx: Make _glx_acquire/release() lock the X deviceBenjamin Otte5-11/+52
This avoids crashes when GLX and X are used at the same time.
2010-04-23xlib: Add cairo_xlib_device APIBenjamin Otte5-6/+33
cairo_xlib_device_create() and cairo_xlib_device_get_display() were added and used as replacements for the previous private APIs.
2010-04-23gl: Add cairo_gl_surface_create_for_texture()Benjamin Otte3-55/+86
This creates a Cairo surface from a given texture. This allows using content previously created using OpenGL inside Cairo.
2010-04-23gl: Add cairo_gl_surface_get_texture()Benjamin Otte2-0/+14
2010-04-23swap format and colorspace argumentsBenjamin Otte1-2/+2
2010-04-23gl: Make device (un)lock (un)set the current contextBenjamin Otte3-0/+24
2010-04-23put back lost enum valueBenjamin Otte1-1/+1
2010-04-23test: Add a test for all the different color space / format combinationsBenjamin Otte3-0/+153
2010-04-23Add CAIRO_FORMAT_PLANAR_420Benjamin Otte4-2/+15
2010-04-23Add CAIRO_FORMAT_PLANAR_422Benjamin Otte4-2/+15
2010-04-23Fix GL surface to compile with changed APIsBenjamin Otte2-41/+27
2010-04-23Add packed YUV formatsBenjamin Otte4-4/+41
2010-04-23Add Y444 formatBenjamin Otte4-2/+14
2010-04-23Add RGBA32, BGRA32 and ABGR32 formatsBenjamin Otte6-41/+80
2010-04-23API: Add YUV color spacesBenjamin Otte3-2/+20
2010-04-23scaled-font: Make code not complain about every new formatBenjamin Otte1-9/+4
2010-04-23Add cairo_image_surface_create_planar()Benjamin Otte5-20/+213
Includes addition of cairo_color_space_t enum with values for ARGB, RGB and unpremultiplied ARGB. We also keep track of the color space in image surfaces. This is needed for creating copies of the pixman_image_t and when drawing to other surface types.
2010-04-23png: Make code not complain about every new formatBenjamin Otte1-13/+17
2010-04-23xcb: Make work with removal of data/strideBenjamin Otte3-22/+23
As there's no fallback code, no attempt was made to fix it.
2010-04-23remove duplicated members from image surface structBenjamin Otte10-64/+83
Also introduce cairo_image_surface_get_data_for_row() macro and use it instead.
2010-04-23xlib: Fix display closing to work properlyBenjamin Otte1-14/+23
Previously we free()'d the cairo_device's memory which was not good at all. Now the code causes cairo_device_finish() instead.
2010-04-23xlib: Fix screen device handlingBenjamin Otte3-24/+36
Add a _cairo_xlib_device_create() function that could easily be exported as a replacement for _cairo_xlib_display_get(). This function returns a cairo_device_t instead of a cairo_xlib_display_t because the display isn't acquired.
2010-04-23gl: Make drawing to windows work againBenjamin Otte1-0/+2
The correct MIN/MAG_FILTER wasn't set.
2010-04-23gl: Only unref a surface if it existsBenjamin Otte1-1/+2
Note: This will likely work for NULL clones, but I prefer not dereferencing NULLs. That gives people a wrong understanding of the code (i.e. me).
2010-04-23gl: Use GLfloat instead of float in gl*Array() functionsBenjamin Otte1-3/+3
2010-04-23gl: Don't acquire the gl context twiceBenjamin Otte1-7/+0
2010-04-23gl: Use correct type when uploading imagesBenjamin Otte1-1/+1
2010-04-23gl: fix typo in commentBenjamin Otte1-1/+1
2010-04-23xlib: Simply release the ref, not destroy, from CloseDisplay.Chris Wilson1-10/+12
Do not call the destroy function directly, but rely on the reference counting to call the notifier upon the last reference. Instead, simply release the reference we were holding for the cache and CloseDisplay callback.
2010-04-23cairo: Handle the all-clipped state in cairo_push_group()Chris Wilson1-35/+46
Yet another bug reported by Jeff Muizelaar, thanks! Fixes: test/clip-empty-group
2010-04-23test: Add clip-empty-groupChris Wilson4-0/+67
Exercise a bug reported by Jeff Muizelaar whereby cairo_push_group() was broken by everything being clipped out.
2010-04-23cairo: Use explicit device flushing.Chris Wilson1-11/+0
Now with the concept of a cairo_device_t and the ability to flush it, we now longer require the heuristic of automatically flushing on behalf of the user at the end of every context.
2010-04-23pdf: Suppress compiler warning.Chris Wilson1-6/+6
2010-04-23cairoint.h: Change ASSERT_NOT_REACHED to remove compiler warningChris Wilson1-2/+1
2010-04-23Win32 features updateChris Wilson2-16/+0
2010-04-23build: Spelling correctionChris Wilson2-2/+1
2010-04-21configure: typo in check for xcb-shmChris Wilson1-1/+1
2010-04-19Revert "script: Another RGB16_565 warning."Andrea Canciani1-6/+0
This reverts commit a9f506493371ac91494488e5ca38e57ceb5a10cb. The change was already applied in bdf8f50adae67498d5fe36727ed2cd34c0206509.
2010-04-18xlib: Make display a cairo_device_tBenjamin Otte5-526/+494
The code now uses the locking of the cairo_device_t instead of its own mutexes. The code was modified so that cairo_surface_t does no longer reference the display directly. Instead, it calls _cairo_xlib_display_acquire(). If a function assumes an already acquired display, it now requires the caller to provide a cairo_xlib_display_t parameter. Functions that do not require an acquired display will not require the display parameter or they will take the cairo_device_t instead.
2010-04-15Use pixman_image_composite32()Benjamin Otte7-224/+224
Replace all occurences of pixman_image_composite()
2010-04-15image: Make unbounded fixup code not use pixman_fill()Benjamin Otte1-76/+47
The new pixman_image_fill_boxes() does proper fallbacks for weird pixman formats.
2010-04-15Require pixman 0.17.5Benjamin Otte1-1/+1
We want pixman_image_composite32() and pixman_image_fill_boxes()
2010-04-15gl: Get rid of "return value not checked" warningsBenjamin Otte1-18/+24
Assert that those functions only return successfully.
2010-04-15gl: acquire/release properly in _cairo_gl_draw_image()Benjamin Otte1-2/+14
Fixes various testsuite failures, in particular ones related to masks.
2010-04-15gl: acquire/release context when getting imagesBenjamin Otte1-0/+7
Avoids Mesa complaining about no current context.
2010-04-15glx: Add getters for device's Display and GLXContextBenjamin Otte2-0/+36