• Home
  • Raw
  • Download

Lines Matching refs:arr

77         const auto& arr = implicit_layers_;  in Parse()  local
78 if (arr.result != VK_SUCCESS) in Parse()
79 return arr.result; in Parse()
82 if (!arr.count) in Parse()
85 names_ = AllocateNameArray(arr.count + count); in Parse()
90 for (uint32_t i = 0; i < arr.count; i++) in Parse()
93 name_count_ = arr.count; in Parse()
141 auto& arr = implicit_layers_; in AddImplicitLayers() local
142 std::sort(arr.elements, arr.elements + arr.count, in AddImplicitLayers()
224 auto& arr = implicit_layers_; in AddImplicitLayer() local
225 auto& layer = arr.elements[arr.count++]; in AddImplicitLayer()
230 ALOGV("Added implicit layer %s", GetImplicitLayerName(arr.count - 1)); in AddImplicitLayer()
238 auto& arr = implicit_layers_; in AddImplicitLayerName() local
239 size_t offset = arr.pool_size; in AddImplicitLayerName()
240 char* dst = arr.name_pool + offset; in AddImplicitLayerName()
245 arr.pool_size += len + 1; in AddImplicitLayerName()
254 auto& arr = implicit_layers_; in GrowImplicitLayerArray() local
257 while (arr.count + layer_count > arr.max_count) { in GrowImplicitLayerArray()
259 (arr.max_count) ? (arr.max_count << 1) : initial_max_count; in GrowImplicitLayerArray()
262 if (new_max_count > arr.max_count) { in GrowImplicitLayerArray()
264 allocator_.pUserData, arr.elements, in GrowImplicitLayerArray()
270 arr.result = VK_ERROR_OUT_OF_HOST_MEMORY; in GrowImplicitLayerArray()
271 arr.count = 0; in GrowImplicitLayerArray()
275 arr.elements = reinterpret_cast<ImplicitLayer*>(new_mem); in GrowImplicitLayerArray()
276 arr.max_count = new_max_count; in GrowImplicitLayerArray()
280 while (arr.pool_size + name_size > arr.max_pool_size) { in GrowImplicitLayerArray()
281 size_t new_max_pool_size = (arr.max_pool_size) in GrowImplicitLayerArray()
282 ? (arr.max_pool_size << 1) in GrowImplicitLayerArray()
286 if (new_max_pool_size > arr.max_pool_size) { in GrowImplicitLayerArray()
288 allocator_.pUserData, arr.name_pool, new_max_pool_size, in GrowImplicitLayerArray()
293 arr.result = VK_ERROR_OUT_OF_HOST_MEMORY; in GrowImplicitLayerArray()
294 arr.pool_size = 0; in GrowImplicitLayerArray()
298 arr.name_pool = reinterpret_cast<char*>(new_mem); in GrowImplicitLayerArray()
299 arr.max_pool_size = new_max_pool_size; in GrowImplicitLayerArray()
306 const auto& arr = implicit_layers_; in GetImplicitLayerName() local
309 return implicit_layers_.name_pool + arr.elements[index].name_offset; in GetImplicitLayerName()
313 const auto& arr = implicit_layers_; in IsImplicitLayer() local
315 for (uint32_t i = 0; i < arr.count; i++) { in IsImplicitLayer()