Lines Matching refs:cache_item_metadata
244 struct cache_item_metadata *cache_item_metadata) in create_put_job() argument
257 if (cache_item_metadata) { in create_put_job()
258 dc_job->cache_item_metadata.type = cache_item_metadata->type; in create_put_job()
259 if (cache_item_metadata->type == CACHE_ITEM_TYPE_GLSL) { in create_put_job()
260 dc_job->cache_item_metadata.num_keys = in create_put_job()
261 cache_item_metadata->num_keys; in create_put_job()
262 dc_job->cache_item_metadata.keys = (cache_key *) in create_put_job()
263 malloc(cache_item_metadata->num_keys * sizeof(cache_key)); in create_put_job()
265 if (!dc_job->cache_item_metadata.keys) in create_put_job()
268 memcpy(dc_job->cache_item_metadata.keys, in create_put_job()
269 cache_item_metadata->keys, in create_put_job()
270 sizeof(cache_key) * cache_item_metadata->num_keys); in create_put_job()
273 dc_job->cache_item_metadata.type = CACHE_ITEM_TYPE_UNKNOWN; in create_put_job()
274 dc_job->cache_item_metadata.keys = NULL; in create_put_job()
291 free(dc_job->cache_item_metadata.keys); in destroy_put_job()
333 struct cache_item_metadata *cache_item_metadata) in disk_cache_put() argument
344 create_put_job(cache, key, data, size, cache_item_metadata); in disk_cache_put()