cairo/build
Robert Bragg 571a27b4fc backends: Adds a new Cogl based backend
This adds a new GPU accelerated backend for Cairo based on the Cogl 3D
graphics API.

This backend aims to support Cairo in a way that translates as naturally
as possible to using a GPU, it does not strive to compete with the
anti-aliasing quality of the image backend if it can't be done
efficiently using the GPU - raw performance isn't the only metric of
concern, so is power usage.

As an overview of how the backend works:
- fills are handled by tessellating paths into triangles
- the backend has an extra fill_rectangle drawing operation so we have
  a fast-path for drawing rectangles which are so common.
- strokes are also tessellated into triangles.
- stroke and fill tessellations are cached to avoid the cpu overhead
  of tessellation and cost of upload given that its common for apps to
  re-draw the same path multiple times. The tessellations can survive
  translations and rotations increasing the probability that they can be
  re-used.
- sources and masks are handled using multi-texturing.
- clipping is handled with a scissor and the stencil buffer which
  we're careful to only update when they really change.
- linear gradients are rendered to a 1d texture using a triangle
  strip + interpolating color attributes. All cairo extend modes
  are handled by corresponding texture sampler wrap modes without
  needing programmable fragment processing.
- antialiasing should be handled using Cogl's multisampling API

XXX: This is a work in progress!!
TODO:
- handle at least basic radial gradients (No need to handle full
  pdf semantics, since css, svg and canvas only allow radial gradients
  defined as one circle + a point that must lie within the first
  circle.) - currently we fall back to pixman for radial gradients.
- support glyph rendering with a decent glyph cache design. The
  current plan is a per scaled-font growable cache texture + a
  scratch cache for one-shot/short-lived glyphs.
- decide how to handle npot textures when lacking hardware support.
  Current plan is to add a transparent border to npot textures and use
  CLAMP_TO_EDGE for the default EXTEND_NONE semantics. For anything else
  we can allocate a shadow npot texture and scale the original to fit
  that so we can map extend modes to texture sampler modes.
2011-10-11 09:05:45 +01:00
..
.gitignore configure: remove shave 2010-07-05 00:35:39 +02:00
aclocal.cairo.m4 build: Silence autoconf warnings 2011-06-20 11:07:33 +02:00
aclocal.compare.m4 [configure] Replace awk comparator with an aclocal version 2009-01-02 15:44:52 +00:00
aclocal.enable.m4 Don't cache _CAIRO_ENABLE results 2011-03-18 13:13:18 -03:00
aclocal.float.m4 Move m4 macros into build/aclocal.*.m4 files 2008-09-11 04:17:43 -04:00
aclocal.gtk-doc.m4 Move m4 macros into build/aclocal.*.m4 files 2008-09-11 04:17:43 -04:00
aclocal.makefile.m4 Generate build/Makefile.win32.features 2008-09-22 22:24:38 -04:00
aclocal.pkg.m4 Update FSF address 2010-04-27 11:13:38 +02:00
configure.ac.analysis [build] Refine the -Wno-attribute test to check our use cases. 2009-09-02 06:35:14 +03:00
configure.ac.features backends: Adds a new Cogl based backend 2011-10-11 09:05:45 +01:00
configure.ac.noversion build: Fix regression provoked by newer autoconf and dodgy configuring. 2010-07-11 21:40:26 +03:00
configure.ac.pthread build: Respect CFLAGS and LIBS env settings 2011-07-29 19:29:53 +02:00
configure.ac.system On OS/2, WIFSIGNALED and WTERMSIG are prototyped in sys/wait.h 2011-09-18 08:50:26 +01:00
configure.ac.tools [boilerplate/test] Convert make-*-constructors to shell 2009-08-06 10:11:32 +01:00
configure.ac.version [test] Build test suite into single binary. 2008-10-31 12:30:11 +00:00
configure.ac.warnings build: Use $GREP -e instead of plain grep -e 2011-05-20 20:59:13 +02:00
Makefile.am.analysis [perf] Include trace comparison in html output 2009-07-20 22:20:01 +01:00
Makefile.am.changelog Fix pollution from skia commit 2011-08-13 10:06:08 +01:00
Makefile.am.common [Makefile.am.common] Remove gcc precompiled headers in "make clean" 2008-09-19 18:42:54 -04:00
Makefile.am.gtk-doc Add note re gtk-doc.make 2010-11-17 13:30:28 -05:00
Makefile.am.releasing Makefile: Fix two typos preventing doc-publish from working 2009-06-12 12:08:22 -07:00
Makefile.win32.common build: Clean up environment variables and flags for the win32 build 2011-06-20 10:24:21 +02:00
Makefile.win32.features backends: Adds a new Cogl based backend 2011-10-11 09:05:45 +01:00
Makefile.win32.features-h backends: Adds a new Cogl based backend 2011-10-11 09:05:45 +01:00