gegl r2276 - in trunk: . gegl/buffer



Author: ok
Date: Mon May  5 21:52:14 2008
New Revision: 2276
URL: http://svn.gnome.org/viewvc/gegl?rev=2276&view=rev

Log:
* gegl/buffer/gegl-tile-source.h: improved docs.
* gegl/buffer/gegl-tile-storage.c: (tile_storage_idle): return TRUE
if work was done.


Modified:
   trunk/ChangeLog
   trunk/gegl/buffer/gegl-tile-source.h
   trunk/gegl/buffer/gegl-tile-storage.c

Modified: trunk/gegl/buffer/gegl-tile-source.h
==============================================================================
--- trunk/gegl/buffer/gegl-tile-source.h	(original)
+++ trunk/gegl/buffer/gegl-tile-source.h	Mon May  5 21:52:14 2008
@@ -90,7 +90,9 @@
  * @y: y coordinate
  * @z: tile zoom level
  *
- * Get a GeglTile *from the buffer.
+ * Get a GeglTile *from the buffer, mipmap tiles for levels z!=0 will be
+ * created on the fly as needed, empty tiles returned are copy on write
+ * and must be locked before written to, and unlocked afterwards.
  *
  * Returns: the tile at x,y,z or NULL if the tile could not be provided.
  */
@@ -150,8 +152,7 @@
  * @y: y coordinate
  * @z: tile zoom level
  *
- * Checks if a tile exists, this check would not cause the tile to be swapped
- * in.
+ * Causes all references to a tile to be removed.
  */
 void      gegl_tile_source_void      (GegTileSource *source,
                                       gint           x,
@@ -201,7 +202,6 @@
 #define gegl_tile_source_idle(source) \
    (gboolean)gegl_tile_source_command(source,GEGL_TILE_IDLE,0,0,0,NULL)
 
- 
 G_END_DECLS
 
 #endif

Modified: trunk/gegl/buffer/gegl-tile-storage.c
==============================================================================
--- trunk/gegl/buffer/gegl-tile-storage.c	(original)
+++ trunk/gegl/buffer/gegl-tile-storage.c	Mon May  5 21:52:14 2008
@@ -170,9 +170,7 @@
       return FALSE;
     }
 
-  gegl_tile_source_idle (GEGL_TILE_SOURCE (tile_storage));                        
-
-  return TRUE;
+  return gegl_tile_source_idle (GEGL_TILE_SOURCE (tile_storage));                        
 }
 
 GeglTileBackend *gegl_buffer_backend (GObject *buffer);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]