summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2012-03-23cairo: Add some missing doc entries for cairo_raster_source_pattern_tChris Wilson2-1/+10
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-23win32: mark-dirty cannot assume the fallback has been discardedChris Wilson1-2/+1
Flushing only releases the fallback if we flush twice with no intervening damage (the theory is to try and reduce readbacks). So it is possible for a correctly behaving application to call mark-dirty and there still be a fallback. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-23gl: GL_UNPACK_ROW_LENGTH does not accept negative valuesIgor Oliveira1-3/+4
Use the slow fallback path if passed an image with a negative stride. Fixes negative-stride-image.
2012-03-23win32: Copy back the fallback damage to the right locationChris Wilson1-5/+6
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-23image: Fix leak of white solid color for masked composition of CLEARChris Wilson1-1/+5
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-22gl: use direct mode for uploading gradient textureHenry Song1-32/+20
The gradient is relatively small and any differences between upload methods should be hidden by the caching. As it stands, using pbo with the gradient fails with fglrx. As the workaround to use a simple TexImage2D is inconsequential (may even be a minute win) and simplifies the code, just do it.
2012-03-22directfb: Tweak, tweak, tweak.Chris Wilson1-72/+16
A couple of mistakes, such as inverting the logic as to when to flush damage back from the shadow, meant that nothing happened when drawing to the directfb surface. Again still only compile tested. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-22win32: Remove obsolete font rendering routinesChris Wilson1-187/+0
These are now done by cairo-win32-gdi-compositor. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-22win32: Hook up glyph creation againChris Wilson1-19/+61
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-21win32: Fix damage flushingChris Wilson2-13/+34
The damage wasn't being created on the right surface, so the damage to the fallback image surface was not being tracked. Perform a little bit of juggling so that we track dirty regions on the fallback surface itself. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-21damage: Fix memcpy sizeChris Wilson1-2/+16
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-21compositor: Add tracing for damageChris Wilson1-5/+30
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-20win32: Check for damage before blittingChris Wilson1-1/+1
During the surface flush, we reduce any pending damage and then blit. If no damage had been accrued then the damage->region would be NULL leading to a segfault. Patch suggested by Szuromi Gábor. Reported-by: Szuromi Gábor <kukkerman@gmail.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=47605 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-19stroke: Adapt rectilinear stroker to handle separable non-unity scalingChris Wilson3-79/+84
Reported-by: Christos Sotiriou <csotiriou@gmail.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-19gl: Manually invert images without MESA_pack_invert extensionChris Wilson1-2/+27
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-19skia: add a missing header into archiveKouhei Sutou1-0/+1
2012-03-13scaled-font: Ignore empty glyphs when checking for potential overlapHenry (Yu) Song1-0/+3
A zero-sized box contains no pixels and so cannot overlap, but it does still need to contribute to the extents.
2012-03-13subsurface: Avoid potential crash when subsurface's size is less than 0Chuanbo Weng1-0/+5
When cairo_surface_create_for_rectangle() is given non-integer parameters, the subsurface's size may be negative(e.g x = 0.2, width = 0.7, the final width will be -1). This illegal surface may cause crash somewhere upon later use, and although the fractional subsurface is ill-defined, we should never crash!
2012-03-13spans-compositor: Only destroy the clip if we made the copyChris Wilson1-2/+2
The extents->clip may be replaced elsewhere and so we cannot assume that simply because it changed from the stashed value, that it was us that made that copy. So becareful to only free our copy. Fixes a double-free of a clip after a complex fallback operation. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-12clip: Intialise polygon fill-rule prior to useChris Wilson1-2/+3
The earliest use of the clip path's polygon fill rule is now for intersecting the original polygon with the plurality of clip boxes. However, the initialisation of the fill rule remained after the intersection. ==8968== Conditional jump or move depends on uninitialised value(s) ==8968== at 0x4C99449: _cairo_polygon_intersect (cairo-polygon-intersect.c:1382) ==8968== by 0x4C9B788: _cairo_polygon_intersect_with_boxes.part.12 (cairo-polygon-intersect.c:1520) ==8968== by 0x4C6AE6E: _cairo_clip_get_polygon (cairo-clip-polygon.c:104) ==8968== by 0x4CAA667: clip_and_composite_boxes.part.13 (cairo-spans-compositor.c:773) ==8968== by 0x4CAAD1D: clip_and_composite_boxes (cairo-spans-compositor.c:758) ==8968== by 0x4CAB25C: _cairo_spans_compositor_fill (cairo-spans-compositor.c:1023) ==8968== by 0x4C6CB69: _cairo_compositor_fill (cairo-compositor.c:184) ==8968== by 0x4C7CE3E: _cairo_image_surface_fill (cairo-image-surface.c:945) ==8968== by 0x4CAE2B6: _cairo_surface_fill (cairo-surface.c:2047) ==8968== by 0x4C74AB7: _cairo_gstate_fill (cairo-gstate.c:1268) ==8968== by 0x4C6E6D3: _cairo_default_context_fill (cairo-default-context.c:1009) ==8968== by 0x4C67944: cairo_fill (cairo.c:2105) Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-12image: Support SRC compositing with in the inline span-compositorChris Wilson1-10/+96
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-12skia: Setup opacity for cairo_paint_with_alpha()Chris Wilson1-2/+6
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-10skia: compile fixChris Wilson1-0/+1
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-10stroke: Do not initialise the pen if will not use itChris Wilson1-11/+19
The pen is only used for ensuring that we generate consist vertices around a fan used for end-capping or line-joining when set to ROUND. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-10mono-scan-converter: Use edge->is_vertical flagChris Wilson1-5/+7
The earlier bug found in edge advancement was actually due to the missed opportunity of not performing the increment when we know the step is zero. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-10bentley-ottmann: Sort by edge bounding boxes before computing xChris Wilson1-0/+7
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-10bentley-ottmann: Skip intersection check if the bounds do not overlapChris Wilson1-0/+4
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-10hash: Keep a simple lut in front of the main hashChris Wilson1-6/+20
Whilst we wait for IvyBridge with its fast integer divide, in the meantime avoid the overhead by inspecting a smaller simpler cache before doing the full hash table lookup. Shaves around 10% off glyph microbenchmarks for -image. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-10doc: fix broken linkNis Martensen1-1/+1
cairo_win32_scaled_font_create_for_logfontw() does not exist. Probably cairo_win32_font_face_create_for_logfontw() was meant instead. Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-03-10doc/xcb: document cairo_xcb_device_get_connectionNis Martensen1-0/+10
Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-03-10doc/xlib/xcb: document get/set_precision APINis Martensen2-1/+40
Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-03-10doc/ps-surface: minor improvementsNis Martensen1-3/+5
Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-03-10doc/ft-font: add reference to cairo_ft_synthesize_tNis Martensen1-1/+3
Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-03-10doc: describe cairo_recording_surface_get_extentsNis Martensen1-0/+12
Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-03-10doc: avoid confusing gtk-doc by double asterisksNis Martensen5-115/+115
Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-03-10doc: move value descriptions upNis Martensen1-4/+3
to make gtk-doc happy Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-03-10doc: ensure "compatibility" spellingNis Martensen3-15/+15
This changes not only comments, but also code! Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-03-10doc: symbol names in header and comment must matchNis Martensen2-4/+4
The names of the function arguments in the function prototype and in the description comment must match, otherwise gtk-doc is confused. When the argument names differ between function prototype and definition, use the names from the prototype. Also add a missing colon. Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-03-10doc: preserve whitespace by using docbook screen tagNis Martensen2-11/+11
Using the programlisting tag is not appropriate everywhere. Use the screen tag where the formatting shall be preserved and the text is no code listing. Also add whitespace to prevent gtk-doc from inserting paragraph breaks. Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-03-10doc: fix a few typos found by codespellNis Martensen13-14/+14
Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-03-10doc: script_mode_t needs at least one line of textNis Martensen1-1/+3
Gtk-doc recognizes documentation only if there is additional text. Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-03-10doc: Add colon to Returns statementNis Martensen1-1/+1
Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-03-10doc: do not confuse gtk-doc by @ and double *Nis Martensen1-2/+2
Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-03-10doc: add missing _face to function namesNis Martensen1-3/+3
Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-03-10doc: add colon to .._padded_image_from_imageNis Martensen1-1/+1
Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-03-10doc: typoNis Martensen1-1/+1
Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-03-10doc: add missing colons to since tagsNis Martensen2-7/+7
Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-03-08surface: Relax assertion about not rendering to a snapshotChris Wilson1-1/+3
Recently I began using the surface->snapshot_of member of a subsurface to cache a target representation of the current subsurface. More recently, I discovered this caused an assertion failure in epiphany, and probably other GTK3 based programs. Throwaway the assertion and trust that the programmer doesn't make any mistakes... Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-07gl/msaa: Do not attach a depth-stencil attachment to the default framebufferMartin Robinson1-0/+3
Only texture surfaces need to have a depth-stencil attachment. The default framebuffer is responsible for managing its own depth and stencil attachments.
2012-03-06xlib: Apply the glyph offsetChris Wilson1-5/+5
The (dst_x, dst_y) parameters passed to the XRenderCompositeText are misleading and do not perform any adjustment, so we have to do it ourselves. Fixes clip-operator Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>