mutter/cogl
Neil Roberts 067a520f26 cogl: Support retained paths
This adds three new API calls:

  CoglHandle cogl_path_get()
  void cogl_path_set(CoglHandle path)
  CoglHandle cogl_path_copy(CoglHandle path)

All of the fields relating to the path have been moved from the Cogl
context to a new CoglPath handle type. The cogl context now just
contains a CoglPath handle. All of the existing path commands
manipulate the data in the current path handle. cogl_path_new now just
creates a new path handle and unrefs the old one.

The path handle can be stored for later with cogl_path_get. The path
can then be copied with cogl_path_copy. Internally it implements
copy-on-write semantics with an extra optimisation that it will only
copy the data if the new path is modified, but not if the original
path is modified. It can do this because the only way to modify a path
is by appending to it so the copied path is able to store its own path
length and only render the nodes up to that length. For this to work
the copied path also needs to keep its own copies of the path extents
because the parent path may change these by adding nodes.

The clip stack now uses the cogl_path_copy mechanism to store paths in
the stack instead of directly copying the data. This should save some
memory and processing time.
2010-04-08 19:53:38 +01:00
..
driver Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
winsys Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-atlas-texture-private.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-atlas-texture.c Fix checks for out-of-bounds coordinates and repeats 2010-03-15 16:09:41 +00:00
cogl-atlas.c Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-atlas.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-bitmap-fallback.c Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-bitmap-pixbuf.c Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-bitmap-private.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-bitmap.c Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-bitmap.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-blend-string.c Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-blend-string.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-buffer-private.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-buffer.c Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-buffer.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-clip-stack.c cogl: Support retained paths 2010-04-08 19:53:38 +01:00
cogl-clip-stack.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-color.c cogl: move cogl_set_source* funcs into cogl.c 2010-04-06 09:26:05 +01:00
cogl-color.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-context.c cogl: Support retained paths 2010-04-08 19:53:38 +01:00
cogl-context.h cogl: Support retained paths 2010-04-08 19:53:38 +01:00
cogl-debug.c cogl debug: Adds missing guards around debug cogl_args[] 2010-03-02 16:15:39 +00:00
cogl-debug.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-deprecated.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-enum-types.c.in Intial Re-layout of the Cogl source code and introduction of a Cogl Winsys 2009-10-16 18:58:50 +01:00
cogl-enum-types.h.in Intial Re-layout of the Cogl source code and introduction of a Cogl Winsys 2009-10-16 18:58:50 +01:00
cogl-feature-private.c Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-feature-private.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-fixed.c Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-fixed.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-framebuffer-private.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-framebuffer.c Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-handle.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-internal.h cogl: Support retained paths 2010-04-08 19:53:38 +01:00
cogl-journal-private.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-journal.c cogl: rename cogl_enable to _cogl_enable 2010-04-01 12:34:42 +01:00
cogl-material-private.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-material.c cogl: move cogl_set_source* funcs into cogl.c 2010-04-06 09:26:05 +01:00
cogl-material.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-matrix-mesa.c Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-matrix-mesa.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-matrix-private.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-matrix-stack.c Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-matrix-stack.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-matrix.c Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-matrix.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-offscreen.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-path-private.h cogl: Support retained paths 2010-04-08 19:53:38 +01:00
cogl-path.c cogl: Support retained paths 2010-04-08 19:53:38 +01:00
cogl-path.h cogl: Support retained paths 2010-04-08 19:53:38 +01:00
cogl-pixel-buffer-private.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-pixel-buffer.c Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-pixel-buffer.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-primitives.c cogl: rename cogl_enable to _cogl_enable 2010-04-01 12:34:42 +01:00
cogl-primitives.h Use begin/end macros in cogl-primitives.h 2010-03-25 09:33:26 +00:00
cogl-profile.c profiling: Adds initial UProf accounting to Cogl 2010-01-08 20:19:50 +00:00
cogl-profile.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-shader.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-spans.c Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-spans.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-sub-texture-private.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-sub-texture.c Fix checks for out-of-bounds coordinates and repeats 2010-03-15 16:09:41 +00:00
cogl-texture-2d-private.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-texture-2d-sliced-private.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-texture-2d-sliced.c Fix checks for out-of-bounds coordinates and repeats 2010-03-15 16:09:41 +00:00
cogl-texture-2d.c Set pixel store parameters before calling glGetTexImage 2010-03-19 10:21:34 +00:00
cogl-texture-driver.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-texture-private.h Fix checks for out-of-bounds coordinates and repeats 2010-03-15 16:09:41 +00:00
cogl-texture.c Fix checks for out-of-bounds coordinates and repeats 2010-03-15 16:09:41 +00:00
cogl-texture.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-types.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-util.c Return and warn if a handle's refcount is <= 0 2010-03-15 16:22:20 +00:00
cogl-util.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-vertex-buffer-private.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-vertex-buffer.c cogl: rename cogl_enable to _cogl_enable 2010-04-01 12:34:42 +01:00
cogl-vertex-buffer.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl.c cogl: renames cogl_multiply_matrix to cogl_transform 2010-04-08 14:37:01 +01:00
cogl.h cogl: renames cogl_multiply_matrix to cogl_transform 2010-04-08 14:37:01 +01:00
cogl.pc.in Intial Re-layout of the Cogl source code and introduction of a Cogl Winsys 2009-10-16 18:58:50 +01:00
Makefile.am cogl: Support retained paths 2010-04-08 19:53:38 +01:00
stb_image.c Update stb_image.c 2010-03-03 17:02:51 +00:00