Commit 8884327c authored by scott's avatar scott
Browse files

Oops again, this time let's commit the _right_ version of the file. :)

--sg
parent 10d2b081
......@@ -11,19 +11,6 @@
#include "config.h"
typedef struct _TileLink TileLink;
struct _TileLink
{
TileLink *next;
int tile_num; /* the number of this tile within the drawable */
void *tm; /* A pointer to the tile manager for this tile.
* We need this in order to call the tile managers
* validate proc whenever the tile is referenced yet
* invalid.
*/
};
struct _Tile
{
short ref_count; /* reference count. when the reference count is
......@@ -39,6 +26,20 @@ struct _Tile
* case the tile data is on disk.
*/
Tile *real_tile_ptr;/* if this tile's 'data' pointer is just a copy-on-write
* mirror of another's, this is that source tile.
* (real_tile itself can actually be a virtual tile
* too.) This is NULL if this tile is not a virtual
* tile.
*/
Tile *mirrored_by; /* If another tile is mirroring this one, this is
* a pointer to that tile, otherwise this is NULL.
* Note that only one tile may be _directly_ mirroring
* another given tile. This ensures that the graph
* of mirrorings is no more complex than a linked
* list.
*/
int ewidth; /* the effective width of the tile */
int eheight; /* the effective height of the tile */
/* a tile's effective width and height may be smaller
......@@ -46,14 +47,19 @@ struct _Tile
* this is to handle edge tiles of a drawable.
*/
int bpp; /* the bytes per pixel (1, 2, 3 or 4) */
int tile_num; /* the number of this tile within the drawable */
int swap_num; /* the index into the file table of the file to be used
* for swapping. swap_num 1 is always the global swap file.
*/
off_t swap_offset; /* the offset within the swap file of the tile data.
* if the tile data is in memory this will be set to -1.
*/
TileLink tlink;
void *tm; /* A pointer to the tile manager for this tile.
* We need this in order to call the tile managers validate
* proc whenever the tile is referenced yet invalid.
*/
Tile *next;
Tile *prev; /* List pointers for the tile cache lists */
void *listhead; /* Pointer to the head of the list this tile is on */
......
......@@ -11,19 +11,6 @@
#include "config.h"
typedef struct _TileLink TileLink;
struct _TileLink
{
TileLink *next;
int tile_num; /* the number of this tile within the drawable */
void *tm; /* A pointer to the tile manager for this tile.
* We need this in order to call the tile managers
* validate proc whenever the tile is referenced yet
* invalid.
*/
};
struct _Tile
{
short ref_count; /* reference count. when the reference count is
......@@ -39,6 +26,20 @@ struct _Tile
* case the tile data is on disk.
*/
Tile *real_tile_ptr;/* if this tile's 'data' pointer is just a copy-on-write
* mirror of another's, this is that source tile.
* (real_tile itself can actually be a virtual tile
* too.) This is NULL if this tile is not a virtual
* tile.
*/
Tile *mirrored_by; /* If another tile is mirroring this one, this is
* a pointer to that tile, otherwise this is NULL.
* Note that only one tile may be _directly_ mirroring
* another given tile. This ensures that the graph
* of mirrorings is no more complex than a linked
* list.
*/
int ewidth; /* the effective width of the tile */
int eheight; /* the effective height of the tile */
/* a tile's effective width and height may be smaller
......@@ -46,14 +47,19 @@ struct _Tile
* this is to handle edge tiles of a drawable.
*/
int bpp; /* the bytes per pixel (1, 2, 3 or 4) */
int tile_num; /* the number of this tile within the drawable */
int swap_num; /* the index into the file table of the file to be used
* for swapping. swap_num 1 is always the global swap file.
*/
off_t swap_offset; /* the offset within the swap file of the tile data.
* if the tile data is in memory this will be set to -1.
*/
TileLink tlink;
void *tm; /* A pointer to the tile manager for this tile.
* We need this in order to call the tile managers validate
* proc whenever the tile is referenced yet invalid.
*/
Tile *next;
Tile *prev; /* List pointers for the tile cache lists */
void *listhead; /* Pointer to the head of the list this tile is on */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment