[cairo-commit] 4 commits - HACKING NEWS src/cairo-xlib-surface-shm.c util/cairo-script
Bryce Harrington
bryce at kemper.freedesktop.org
Sat Mar 7 00:30:59 PST 2015
HACKING | 18 +++++++---------
NEWS | 47 ++++++++++++++++++++++++++++++++++++++++++
src/cairo-xlib-surface-shm.c | 5 ----
util/cairo-script/csi-trace.c | 10 ++++++++
4 files changed, 64 insertions(+), 16 deletions(-)
New commits:
commit 79dbe1bad8089aa3e0b9a9a63443a74cd9e22f32
Author: Bryce Harrington <b.harrington at samsung.com>
Date: Sat Mar 7 00:30:40 2015 -0800
NEWS: Update for changes through Nov 2014
diff --git a/NEWS b/NEWS
index 2370dfd..59e195b 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,50 @@
+Release 1.14.2 (2014-03-09 Bryce Harrington <bryce at osg.samsung.com>)
+====================================================================
+
+
+Features
+--------
+None
+
+API Changes
+-----------
+None
+
+Dependency Changes
+------------------
+None
+
+Performance Optimizations
+-------------------------
+ * Improve performance of cpu_to_be32 and be32_to_cpu, making truetype
+ subsetting of large fonts run about 15% faster.
+
+Bug Fixes
+---------
+ * Fix unaligned access on sparc with the compact font format (CFF).
+ Unlike truetype, all data in CFF is not aligned.
+ (Debian bug #712836)
+ * Fix unaligned access on sparc with tor-scan-converter's memory pool.
+ * Fix crash when loading a PDF with a transformed image.
+ (fdo bug #85151)
+ * Fix regression on mingw for bigendian test due to removal of file
+ extension for executables.
+ (fdo bug #85120)
+ * Fix handling of backslash in PDF interpreter
+ (fdo bug #85662)
+ * Fix crash in xlib and xcb renderers when swapping a 0-sized glyph
+ * Fix bug with RTL text in PDF operators
+ (fdo bug #86461)
+ * Fix compilation 'cairo-path-stroke-traps.c' with MSVC8
+ (fdo bug #84908)
+ * Fix crash in _fill_xrgb32_lerp_opaque_spans when a span length is
+ negative.
+ * Fix valgrind error by releasing pattern created by
+ cairo_pattern_create_rgb().
+ * Fix valgrind errors when running cairo-test-suite.
+
+ * Fix various documentation warnings and errors
+
Release 1.14.0 (2014-10-13 Bryce Harrington <bryce at osg.samsung.com>)
====================================================================
Hard to believe it's been over a year since our last release, but it's
commit 581f8137052db60d072ee5a4cefdf7292cddab05
Author: Bryce Harrington <b.harrington at samsung.com>
Date: Fri Mar 6 23:54:49 2015 -0800
HACKING: Add link to git tutorial and wordsmith a bit
diff --git a/HACKING b/HACKING
index 752efba..aba2c54 100644
--- a/HACKING
+++ b/HACKING
@@ -73,9 +73,9 @@ We use /git/ for version control. See:
http://cairographics.org/download/
-TODO:
-Add links to some git tutorials or better, write a few paragraphs
-about how to use git to efficiently hack on cairo.
+For more information on using git, see:
+
+ http://freedesktop.org/wiki/Infrastructure/git/
Build System
@@ -103,10 +103,9 @@ No manual ChangeLog writing is necessary.
Copyrights and Licensing
------------------------
-The cairo library is dual-licensed under LGPL and MPL. See file named
-COPYING for details. The test suites are more liberal. For example,
-GPL code is allowed in the test suites, though it's always better to
-keep things simple.
+The cairo library is dual-licensed under LGPL and MPL. See the file
+named COPYING for details. The test suites are more liberal, and are
+allowed to include GPL code.
When writing new code, update the file headers to add your (or your
employers) copyright line and contributor line. If adding new files
@@ -174,9 +173,8 @@ Some of those should gradually be moved to doc/.
Utilities
---------
-There are a few useful utilities we have developed that are either
-useful when writing code using cairo, or writing cairo, or useful in
-general. These tools can be found under the util/ directory.
+We have developed several utilities useful for writing cairo or code
+that uses cairo. These tools can be found under the util/ directory.
See util/README for more information.
commit c0458b456007f718747be7fd690e674df5026059
Author: Bryce Harrington <b.harrington at samsung.com>
Date: Fri Mar 6 23:31:25 2015 -0800
csi-trace: Add --version and --help args to utility
diff --git a/util/cairo-script/csi-trace.c b/util/cairo-script/csi-trace.c
index c57a56b..a0466a3 100644
--- a/util/cairo-script/csi-trace.c
+++ b/util/cairo-script/csi-trace.c
@@ -2,6 +2,7 @@
#include <cairo-script-interpreter.h>
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include <libgen.h>
@@ -22,11 +23,18 @@ main (int argc, char **argv)
.surface_create = _script_surface_create,
};
int i;
+ char buf[4096];
csi = cairo_script_interpreter_create ();
for (i = 1; i < argc; i++) {
- char buf[4096];
+ if (strcmp (argv[i], "--version")) {
+ printf ("%s: version %s\n", argv[0], __DATE__);
+ exit (0);
+ } else if (strcmp (argv[i], "--help")) {
+ printf ("usage: %s < in > out\n", argv[0]);
+ exit (0);
+ }
snprintf (buf, sizeof (buf), "%s.trace", basename (argv[i]));
cairo_device_destroy (hooks.closure);
commit 3a7d411539975728f90b7d0bb55e3bee2e8600bb
Author: Bryce Harrington <b.harrington at samsung.com>
Date: Fri Mar 6 22:26:22 2015 -0800
Revert "xlib: Remove queued event from _XReadEvents"
This reverts commit e7fc8f405beeeb1048f69fe22923170a137b805e.
diff --git a/src/cairo-xlib-surface-shm.c b/src/cairo-xlib-surface-shm.c
index 9b4dea5..fb40699 100644
--- a/src/cairo-xlib-surface-shm.c
+++ b/src/cairo-xlib-surface-shm.c
@@ -670,7 +670,6 @@ _cairo_xlib_shm_surface_flush (void *abstract_surface, unsigned flags)
cairo_xlib_shm_surface_t *shm = abstract_surface;
cairo_xlib_display_t *display;
Display *dpy;
- _XQEvent *qev;
cairo_status_t status;
if (shm->active == 0)
@@ -695,10 +694,6 @@ _cairo_xlib_shm_surface_flush (void *abstract_surface, unsigned flags)
while (! seqno_passed (shm->active, LastKnownRequestProcessed (dpy))) {
LockDisplay(dpy);
_XReadEvents(dpy);
- while (dpy->head) {
- qev = dpy->head;
- _XDeq (dpy, NULL, qev);
- }
UnlockDisplay(dpy);
}
More information about the cairo-commit
mailing list