MCPcopy Index your code
hub / github.com/MapServer/MapServer / searchTileCache

Function searchTileCache

maprendering.c:119–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117 ((a).alpha==(b).alpha))
118
119tileCacheObj *searchTileCache(imageObj *img, symbolObj *symbol, symbolStyleObj *s, int width, int height) {
120 tileCacheObj *cur = img->tilecache;
121 while(cur != NULL) {
122 if( cur->width == width
123 && cur->height == height
124 && cur->symbol == symbol
125 && cur->outlinewidth == s->outlinewidth
126 && cur->rotation == s->rotation
127 && cur->scale == s->scale
128 && (!s->color || COMPARE_COLORS(cur->color,*s->color))
129 && (!s->backgroundcolor || COMPARE_COLORS(cur->backgroundcolor,*s->backgroundcolor))
130 && (!s->outlinecolor || COMPARE_COLORS(cur->outlinecolor,*s->outlinecolor)))
131 return cur;
132 cur = cur->next;
133 }
134 return NULL;
135}
136
137/* add a cached tile to the current image's cache */
138tileCacheObj *addTileCache(imageObj *img,

Callers 1

getTileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected