Lines Matching refs:arr
74 const auto& arr = implicit_layers_; in Parse() local
75 if (arr.result != VK_SUCCESS) in Parse()
76 return arr.result; in Parse()
79 if (!arr.count) in Parse()
82 names_ = AllocateNameArray(arr.count + count); in Parse()
87 for (uint32_t i = 0; i < arr.count; i++) in Parse()
90 name_count_ = arr.count; in Parse()
138 auto& arr = implicit_layers_; in AddImplicitLayers() local
139 std::sort(arr.elements, arr.elements + arr.count, in AddImplicitLayers()
212 auto& arr = implicit_layers_; in AddImplicitLayer() local
213 auto& layer = arr.elements[arr.count++]; in AddImplicitLayer()
218 ALOGV("Added implicit layer %s", GetImplicitLayerName(arr.count - 1)); in AddImplicitLayer()
226 auto& arr = implicit_layers_; in AddImplicitLayerName() local
227 size_t offset = arr.pool_size; in AddImplicitLayerName()
228 char* dst = arr.name_pool + offset; in AddImplicitLayerName()
233 arr.pool_size += len + 1; in AddImplicitLayerName()
242 auto& arr = implicit_layers_; in GrowImplicitLayerArray() local
245 while (arr.count + layer_count > arr.max_count) { in GrowImplicitLayerArray()
247 (arr.max_count) ? (arr.max_count << 1) : initial_max_count; in GrowImplicitLayerArray()
250 if (new_max_count > arr.max_count) { in GrowImplicitLayerArray()
252 allocator_.pUserData, arr.elements, in GrowImplicitLayerArray()
258 arr.result = VK_ERROR_OUT_OF_HOST_MEMORY; in GrowImplicitLayerArray()
259 arr.count = 0; in GrowImplicitLayerArray()
263 arr.elements = reinterpret_cast<ImplicitLayer*>(new_mem); in GrowImplicitLayerArray()
264 arr.max_count = new_max_count; in GrowImplicitLayerArray()
268 while (arr.pool_size + name_size > arr.max_pool_size) { in GrowImplicitLayerArray()
269 size_t new_max_pool_size = (arr.max_pool_size) in GrowImplicitLayerArray()
270 ? (arr.max_pool_size << 1) in GrowImplicitLayerArray()
274 if (new_max_pool_size > arr.max_pool_size) { in GrowImplicitLayerArray()
276 allocator_.pUserData, arr.name_pool, new_max_pool_size, in GrowImplicitLayerArray()
281 arr.result = VK_ERROR_OUT_OF_HOST_MEMORY; in GrowImplicitLayerArray()
282 arr.pool_size = 0; in GrowImplicitLayerArray()
286 arr.name_pool = reinterpret_cast<char*>(new_mem); in GrowImplicitLayerArray()
287 arr.max_pool_size = new_max_pool_size; in GrowImplicitLayerArray()
294 const auto& arr = implicit_layers_; in GetImplicitLayerName() local
297 return implicit_layers_.name_pool + arr.elements[index].name_offset; in GetImplicitLayerName()
301 const auto& arr = implicit_layers_; in IsImplicitLayer() local
303 for (uint32_t i = 0; i < arr.count; i++) { in IsImplicitLayer()