Commit graph

8152 commits

Author SHA1 Message Date
Chris Wilson
514d366cde snapshot: propagate status on finish 2010-04-27 11:09:25 +01:00
Chris Wilson
a505104013 image: Compute sample extents
In order to reuse the original image as the pixman pattern, then the
entire operation must be wholly contained within the extents of the
image (including subsurfaces) and be reducible to an untransformed
REPEAT_NONE.
2010-04-27 11:07:45 +01:00
Andrea Canciani
b8a7f8621a Update FSF address
I updated the Free Software Foundation address using the following script.

for i in $(git grep Temple | cut -d: -f1 )
do
  sed -e 's/59 Temple Place[, -]* Suite 330, Boston, MA *02111-1307[, ]* USA/51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA/' -i "$i"
done

Fixes http://bugs.freedesktop.org/show_bug.cgi?id=21356
2010-04-27 11:13:38 +02:00
Benjamin Otte
9672aab6b7 tests: Integrate xlib-expose-event test into usual tests
Previously the test was using the preamble vfunc and generating output
itself. Now it uses the draw function and ignores any but the xlib
backends.
2010-04-26 21:42:47 +02:00
Chris Wilson
36e0a3d3a0 trace: Remove unused functions
trace.c:1154: warning: ‘_has_font_face_id’ defined but not used
trace.c:1196: warning: ‘_get_pattern_id’ defined but not used
trace.c:1870: warning: ‘_emit_font_face’ defined but not used
trace.c:1882: warning: ‘_emit_scaled_font’ defined but not used
2010-04-26 18:18:49 +01:00
Chris Wilson
3a2d9ffe03 trace: Check return value to suppress compiler warning
trace.c: In function ‘get_prog_name’:
trace.c:741: warning: ignoring return value of ‘fgets’, declared with
attribute warn_unused_result
2010-04-26 18:18:49 +01:00
Chris Wilson
37be183412 trace: Trivial compiler warning fix
trace.c:1665: warning: initialization from incompatible pointer type
2010-04-26 18:18:49 +01:00
Chris Wilson
3c9e5d9792 region: Cast to remove const to suppress compiler warnings.
airo-region.c: In function ‘cairo_region_intersect’:
cairo-region.c:503: warning: passing argument 3 of
‘pixman_region32_intersect’ discards qualifiers from pointer target type
/usr/local/include/pixman-1/pixman.h:518: note: expected ‘struct
pixman_region32_t *’ but argument is of type ‘const struct pixman_region32_t *’

cairo-region.c: In function ‘cairo_region_union’:
cairo-region.c:566: warning: passing argument 3 of
‘pixman_region32_union’ discards qualifiers from pointer target type
/usr/local/include/pixman-1/pixman.h:521: note: expected ‘struct
pixman_region32_t *’ but argument is of type ‘const struct pixman_region32_t *’
2010-04-26 18:18:48 +01:00
Chris Wilson
8c72122df5 clip: Skip combining with solid pixel aligned boxes. 2010-04-25 10:30:12 +01:00
Chris Wilson
240ebaf81a clip: Fix sign reverse when combining with the clip surface.
Finally, found the reversed sign in the clipping code, thanks cu!

Fixes: test/clip-shape
2010-04-25 09:45:41 +01:00
Chris Wilson
4d3632761b clip: Report the surface offset when retrieving the clip mask
Stop the callers from guessing the origin of the clip surface by
reporting it explicitly! This enables the clip to bypass any rectangles
overlaid on top of the clip surface, which is common when the backends
limit the clip to the extents of the operation -- but irrelevant to the
actual content of the clip mask
2010-04-25 09:45:41 +01:00
Chris Wilson
241ce933f8 test: Add clip-shape
cu found a bug when using clipping and fills with the image backend, but
it turns out to be the lost sign bug afflicting everything...

To trigger the bug requires evaluating the clip surface prior to using
in with _cairo_clip_combine_with_surface(). Which is taken along a
particular path when using a clip mask with non-pixel geometry on image,
but more easily hit by the fallback code.

Reported-by: <cairouser@yahoo.com>
2010-04-25 09:45:41 +01:00
Benjamin Otte
1687c7b7d3 xlib: Fix display closing to work properly
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-23 22:22:28 +02:00
Benjamin Otte
637564c562 xlib: Fix screen device handling
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-23 22:18:54 +02:00
Benjamin Otte
49b52a8946 gl: Make drawing to windows work again
The correct MIN/MAG_FILTER wasn't set.
2010-04-23 21:46:22 +02:00
Benjamin Otte
3efbc0c5c8 gl: Only unref a surface if it exists
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-23 21:46:12 +02:00
Benjamin Otte
64662be4ef gl: Use GLfloat instead of float in gl*Array() functions 2010-04-23 21:46:04 +02:00
Benjamin Otte
e4f84f97b2 gl: Don't acquire the gl context twice 2010-04-23 21:45:56 +02:00
Benjamin Otte
e40a2d1f5e gl: Use correct type when uploading images 2010-04-23 21:45:01 +02:00
Benjamin Otte
55cf323f96 gl: fix typo in comment 2010-04-23 21:44:20 +02:00
Chris Wilson
887d43578c xlib: Simply release the ref, not destroy, from CloseDisplay.
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-23 20:15:44 +01:00
Chris Wilson
c63e3490a5 cairo: Handle the all-clipped state in cairo_push_group()
Yet another bug reported by Jeff Muizelaar, thanks!

Fixes: test/clip-empty-group
2010-04-23 14:47:59 +01:00
Chris Wilson
567e485f28 test: Add clip-empty-group
Exercise a bug reported by Jeff Muizelaar whereby cairo_push_group() was
broken by everything being clipped out.
2010-04-23 14:47:51 +01:00
Chris Wilson
4438cc6a49 cairo: Use explicit device flushing.
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-23 14:39:21 +01:00
Chris Wilson
0fc140abc3 pdf: Suppress compiler warning. 2010-04-23 14:39:21 +01:00
Chris Wilson
1923a33a72 cairoint.h: Change ASSERT_NOT_REACHED to remove compiler warning 2010-04-23 14:39:21 +01:00
Chris Wilson
d366da7d8c Win32 features update 2010-04-23 14:39:21 +01:00
Chris Wilson
c1e51a0264 build: Spelling correction 2010-04-23 14:39:21 +01:00
Chris Wilson
e0306da1d7 configure: typo in check for xcb-shm 2010-04-21 22:52:16 +01:00
Andrea Canciani
b7fbda276d Revert "script: Another RGB16_565 warning."
This reverts commit a9f5064933.

The change was already applied in bdf8f50ada.
2010-04-19 10:38:43 +02:00
Benjamin Otte
f74ad37e66 xlib: Make display a cairo_device_t
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-18 23:20:02 +02:00
Benjamin Otte
2bffa2467e Use pixman_image_composite32()
Replace all occurences of pixman_image_composite()
2010-04-15 18:31:01 +02:00
Benjamin Otte
567923d66a image: Make unbounded fixup code not use pixman_fill()
The new pixman_image_fill_boxes() does proper fallbacks for weird pixman
formats.
2010-04-15 18:31:01 +02:00
Benjamin Otte
b648365cfa Require pixman 0.17.5
We want pixman_image_composite32() and pixman_image_fill_boxes()
2010-04-15 18:31:01 +02:00
Benjamin Otte
0a19ad7c10 gl: Get rid of "return value not checked" warnings
Assert that those functions only return successfully.
2010-04-15 18:31:00 +02:00
Benjamin Otte
7745ea21e1 gl: acquire/release properly in _cairo_gl_draw_image()
Fixes various testsuite failures, in particular ones related to masks.
2010-04-15 18:31:00 +02:00
Benjamin Otte
596d3017a1 gl: acquire/release context when getting images
Avoids Mesa complaining about no current context.
2010-04-15 18:31:00 +02:00
Benjamin Otte
46ef05c3d7 glx: Add getters for device's Display and GLXContext 2010-04-15 18:31:00 +02:00
Benjamin Otte
712919223d gl: Make code safe for multithreaded access
The code callss the gl device's acquire/release in
cairo_device_acquire/release(). This way, external APIs can use these
functions to prepare for rendering GL.

Also adds code to unset the glx context if it wasn't set when acquiring
the device. This allows multithreaded apps to work fine with just using
cairo APIs, but might introduce penalties in single-threaded
applications.
2010-04-15 18:30:54 +02:00
Benjamin Otte
8f2e82cea3 xcb: Make code not complain about every new format 2010-04-15 17:48:24 +02:00
Benjamin Otte
1d753b2f4d xlib: Make code not complain about every new format 2010-04-15 17:47:01 +02:00
Benjamin Otte
ebc9cc46fe gl: Use right format
The internal format should always be GL_RGBA.
2010-04-15 17:43:32 +02:00
Chris Wilson
4142f0836d gl: Handle component-alpha ADD
A simple extension to the component-alpha OVER [as ca-ADD is just the
second pass in ca-OVER] to support amalgamation of glyph masks. This
speeds up firefox-36 by ~5% on g45.

Before:
  firefox-36-20090611   76.185
After:
  firefox-36-20090611   72.863
2010-04-15 09:21:05 +01:00
Benjamin Otte
a4bae1956b gl: Really don't write error status to the inert object. 2010-04-14 22:46:34 +02:00
Benjamin Otte
5fed41ee2b test: Add test checking that all setters properly check surface->status
In particular, make sure that the setters when called on a const nil
surface don't try to set surface->status.
2010-04-14 22:45:18 +02:00
Chris Wilson
6826f02001 gl: Don't write error status to the inert object.
Reported-by: Benjamin Otte <otte@redhat.com>
2010-04-14 20:26:48 +01:00
Chris Wilson
3814855a64 script: Flush prior to modifying the image data. 2010-04-14 20:22:14 +01:00
Chris Wilson
03f7bfc351 rtree: Remove the false assert upon collapse. 2010-04-14 20:14:39 +01:00
Chris Wilson
b0383d0cd2 svg: Don't write error status to the inert object.
Reported-by: Benjamin Otte <otte@redhat.com>
2010-04-14 19:42:20 +01:00
Chris Wilson
5274b63adb ps: Don't write error status to the inert object.
Reported-by: Benjamin Otte <otte@redhat.com>
2010-04-14 19:42:20 +01:00