summaryrefslogtreecommitdiff
path: root/src/cairo-fixed.c
AgeCommit message (Collapse)AuthorFilesLines
2007-07-18[fixpt] Make fixed point methods static inline and genericVladimir Vukicevic1-99/+1
Move the fixed point methods to static inline versions in cairo-fixed-private.h, and don't hardcode fixed to be 16.16.
2006-11-06Change _cairo_fixed_from_double to use the "magic number" techniqueDan Amelang1-1/+47
See long thread here: http://lists.freedesktop.org/archives/cairo/2006-October/008285.html This patch provides a 3x performance improvement (on x86) for the conversion of floating-point to fixed-point values as measured by the recent pattern_create_radial performance test: image-rgba pattern_create_radial-16 8.98 3.36% -> 2.97 1.03%: 3.38x speedup ██▍ image-rgb pattern_create_radial-16 8.94 3.21% -> 2.97 0.18%: 3.36x speedup ██▍ xlib-rgb pattern_create_radial-16 9.55 3.17% -> 3.64 0.51%: 2.93x speedup █▉ xlib-rgba pattern_create_radial-16 9.63 3.53% -> 3.69 0.66%: 2.91x speedup █▉
2005-08-19Fix for bug #4137:Carl Worth1-1/+1
Fix to round properly.
2005-08-18Fix to not right-shift a negative number when called with an argument of 0.Carl Worth1-1/+1
2005-02-22Switch from broken cworth@isi.edu address to canonical cworth@cworth.org ↵Carl Worth1-1/+1
address.
2004-12-20Add _cairo_gstate_restore_external_state, _cairo_fixed_integer_floor and ↵Alexander Larsson1-0/+18
_cairo_fixed_integer_ceil. Call _cairo_gstate_restore_external_state on restore. Fix cache-misses. Implement floor and ceil Restore surface clip region on restroe. (_calculate_region_for_intermediate_clip_surface), (_cairo_gstate_clip_and_composite_trapezoids), (_cairo_gstate_show_surface), (_cairo_gstate_show_glyphs): Create intermediate clip surfaces of the minimal required size.
2004-10-21Convert all files to utf-8. Add copyright information to cairo_png_surface.c.Carl Worth1-1/+1
2004-09-04Add the MPL as a new license option, in addition to the LGPL.Carl Worth1-12/+29
2004-08-02Fix to explicitly refer to GNU Lesser Public License 2.1 rather than the ↵Carl Worth1-7/+5
Library Public License version 2 or 'any later version'
2004-08-02Change from MIT license to LGPL.Carl Worth1-20/+14
2004-05-20Add sanity checking feature configury.Graydon Hoare1-0/+11
Add sanity checking feature. Add sanity checking. Add prototypes. New functions. New function. Use fixed functions. (_cairo_gstate_clip): Arithmetic fixes. (_cairo_gstate_clip_and_composite_trapezoids): (_cairo_gstate_show_surface): (_cairo_gstate_show_text): (_cairo_gstate_show_glyphs): Corrections to clipping. Add XCopyArea fast path. (_cairo_xlib_surface_set_clip_region): Drive clip to drawable.
2004-02-12Add typedefs for new callbacks to be used by cairo_current_path: ↵Carl Worth1-0/+7
cairo_move_to_func, cairo_line_to_func, cairo_curve_to_func, and cairo_close_path_func. cairo_path.last_move_point and cairo_path.current_point are now fixed-point not doubles for consistency. Now accept 4 explicit function pointers rather than a structure. Eliminate unnecessary done_path callback. Track change in _cairo_path_interpret. Code previously in done_path callback is now here immediately after call to _cairo_path_interpret. Internal _cairo_path API modified to accept fixed-point data everywhere. Much cleaner this way. Have to convert doubles to fixed-point to track changes in _cairo_path API. Keep data in fixed-point rather than going through intermediate doubles. Track changes in _cairo_path API. New function to help when working with freetype.
2003-10-23Fixed copyright attribution to refer to "University of Southern CaliforniaCarl Worth1-1/+1
2003-09-05Preliminary support for running Cairo with X servers without the Render ↵Carl Worth1-0/+46
extension. This is still horribly slow. Removed many uses of X-specific macros, (eg. XDoubleToFixed)