Home
last modified time | relevance | path

Searched refs:allocSize (Results 1 - 25 of 30) sorted by relevance

12

/third_party/skia/src/core/
H A DSkBlockAllocator.cpp206 // if allocSize > 32K, aligns on 4K boundary otherwise aligns on max_align_t, to play in addBlock()
212 int allocSize; in addBlock() local
217 allocSize = fHead.fPrev->fSize; in addBlock()
242 allocSize = maxSize; in addBlock()
244 allocSize = std::min(alignAllocSize(std::max(minSize, sizeIncrement * nextN1)), in addBlock()
250 allocSize = alignAllocSize(minSize); in addBlock()
255 mem = operator new(allocSize); in addBlock()
257 fTail->fNext = new (mem) Block(fTail, allocSize); in addBlock()
/third_party/skia/src/gpu/ops/
H A DDrawAtlasOp.cpp129 int allocSize = static_cast<int>(4 * vertexStride * spriteCount); in DrawAtlasOpImpl() local
130 installedGeo.fVerts.reset(allocSize); in DrawAtlasOpImpl()
241 size_t allocSize = args.fVerts.count(); in onPrepareDraws() local
242 memcpy(vertPtr, args.fVerts.begin(), allocSize); in onPrepareDraws()
243 vertPtr += allocSize; in onPrepareDraws()
/third_party/icu/icu4c/source/common/
H A Dunisetspan.cpp271 int32_t allocSize; in UnicodeSetStringSpan() local
274 allocSize=stringsLength*(4+1+1+1+1)+utf8Length; in UnicodeSetStringSpan()
276 allocSize=stringsLength; // One set of span lengths. in UnicodeSetStringSpan()
279 allocSize+=stringsLength*4+utf8Length; in UnicodeSetStringSpan()
282 if(allocSize<=(int32_t)sizeof(staticLengths)) { in UnicodeSetStringSpan()
285 utf8Lengths=(int32_t *)uprv_malloc(allocSize); in UnicodeSetStringSpan()
412 int32_t allocSize=stringsLength*(4+1+1+1+1)+utf8Length; in UnicodeSetStringSpan() local
413 if(allocSize<=(int32_t)sizeof(staticLengths)) { in UnicodeSetStringSpan()
416 utf8Lengths=(int32_t *)uprv_malloc(allocSize); in UnicodeSetStringSpan()
425 uprv_memcpy(utf8Lengths, otherStringSpan.utf8Lengths, allocSize); in UnicodeSetStringSpan()
[all...]
/third_party/node/deps/icu-small/source/common/
H A Dunisetspan.cpp271 int32_t allocSize; in UnicodeSetStringSpan() local
274 allocSize=stringsLength*(4+1+1+1+1)+utf8Length; in UnicodeSetStringSpan()
276 allocSize=stringsLength; // One set of span lengths. in UnicodeSetStringSpan()
279 allocSize+=stringsLength*4+utf8Length; in UnicodeSetStringSpan()
282 if(allocSize<=(int32_t)sizeof(staticLengths)) { in UnicodeSetStringSpan()
285 utf8Lengths=(int32_t *)uprv_malloc(allocSize); in UnicodeSetStringSpan()
412 int32_t allocSize=stringsLength*(4+1+1+1+1)+utf8Length; in UnicodeSetStringSpan() local
413 if(allocSize<=(int32_t)sizeof(staticLengths)) { in UnicodeSetStringSpan()
416 utf8Lengths=(int32_t *)uprv_malloc(allocSize); in UnicodeSetStringSpan()
425 uprv_memcpy(utf8Lengths, otherStringSpan.utf8Lengths, allocSize); in UnicodeSetStringSpan()
[all...]
/third_party/skia/third_party/externals/icu/source/common/
H A Dunisetspan.cpp271 int32_t allocSize; in UnicodeSetStringSpan() local
274 allocSize=stringsLength*(4+1+1+1+1)+utf8Length; in UnicodeSetStringSpan()
276 allocSize=stringsLength; // One set of span lengths. in UnicodeSetStringSpan()
279 allocSize+=stringsLength*4+utf8Length; in UnicodeSetStringSpan()
282 if(allocSize<=(int32_t)sizeof(staticLengths)) { in UnicodeSetStringSpan()
285 utf8Lengths=(int32_t *)uprv_malloc(allocSize); in UnicodeSetStringSpan()
412 int32_t allocSize=stringsLength*(4+1+1+1+1)+utf8Length; in UnicodeSetStringSpan() local
413 if(allocSize<=(int32_t)sizeof(staticLengths)) { in UnicodeSetStringSpan()
416 utf8Lengths=(int32_t *)uprv_malloc(allocSize); in UnicodeSetStringSpan()
425 uprv_memcpy(utf8Lengths, otherStringSpan.utf8Lengths, allocSize); in UnicodeSetStringSpan()
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/robustness/
H A DvktRobustBufferAccessWithVariablePointersTests.cpp83 VkDeviceSize allocSize; member
122 data.allocSize = bufferMemoryReqs.size; in createTestBuffer()
124 data.maxAccessRange = deMinu64(data.allocSize, deMinu64(bufferParams.size, accessRange)); in createTestBuffer()
1442 log << tcu::TestLog::Message << "input buffer - alloc size: " << m_inBufferAccess.allocSize << tcu::TestLog::EndMessage; in AccessInstance()
1444 log << tcu::TestLog::Message << "output buffer - alloc size: " << m_outBufferAccess.allocSize << tcu::TestLog::EndMessage; in AccessInstance()
1564 DE_ASSERT(offsetInBytes < m_inBufferAccess.allocSize); in isExpectedValueFromInBuffer()
1635 m_outBufferAccess.allocSize, // VkDeviceSize size;
1661 for (VkDeviceSize offsetInBytes = 0; offsetInBytes < m_outBufferAccess.allocSize; offsetInBytes += elementSize) in verifyResult()
1664 const size_t outValueSize = static_cast<size_t>(deMinu64(elementSize, (m_outBufferAccess.allocSize - offsetInBytes))); in verifyResult()
1671 && (isReadAccess || !isValueWithinBufferOrZero(inDataPtr, m_inBufferAccess.allocSize, outValuePt in verifyResult()
[all...]
H A DvktRobustnessIndexAccessTests.cpp643 VkDeviceSize allocSize = indices.size() * sizeof(deUint32); in iterate() local
657 allocSize = (indices.size() - 1) * sizeof(deUint32); in iterate()
662 const VkBufferCreateInfo indexBufferInfo = makeBufferCreateInfo(allocSize, VK_BUFFER_USAGE_INDEX_BUFFER_BIT | VK_BUFFER_USAGE_TRANSFER_DST_BIT); in iterate()
664 deMemcpy(indexBuffer.getAllocation().getHostPtr(), indices.data(), size_t(allocSize)); in iterate()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/robustness/
H A DvktRobustBufferAccessWithVariablePointersTests.cpp83 VkDeviceSize allocSize; member
122 data.allocSize = bufferMemoryReqs.size; in createTestBuffer()
124 data.maxAccessRange = deMinu64(data.allocSize, deMinu64(bufferParams.size, accessRange)); in createTestBuffer()
1448 log << tcu::TestLog::Message << "input buffer - alloc size: " << m_inBufferAccess.allocSize << tcu::TestLog::EndMessage; in AccessInstance()
1450 log << tcu::TestLog::Message << "output buffer - alloc size: " << m_outBufferAccess.allocSize << tcu::TestLog::EndMessage; in AccessInstance()
1570 DE_ASSERT(offsetInBytes < m_inBufferAccess.allocSize); in isExpectedValueFromInBuffer()
1641 m_outBufferAccess.allocSize, // VkDeviceSize size;
1667 for (VkDeviceSize offsetInBytes = 0; offsetInBytes < m_outBufferAccess.allocSize; offsetInBytes += elementSize) in verifyResult()
1670 const size_t outValueSize = static_cast<size_t>(deMinu64(elementSize, (m_outBufferAccess.allocSize - offsetInBytes))); in verifyResult()
1677 && (isReadAccess || !isValueWithinBufferOrZero(inDataPtr, m_inBufferAccess.allocSize, outValuePt in verifyResult()
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/api/
H A DvktApiGetMemoryCommitment.cpp388 VkDeviceSize allocSize[arrayLength]; in iterate() local
396 allocSize[i] = rand() % 1000 + 1; in iterate()
407 allocSize[i], // VkDeviceSize allocationSize in iterate()
419 if(pCommittedMemoryInBytes > allocSize[i]) in iterate()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/api/
H A DvktApiGetMemoryCommitment.cpp390 VkDeviceSize allocSize[arrayLength]; in iterate() local
398 allocSize[i] = rand() % 1000 + 1; in iterate()
409 allocSize[i], // VkDeviceSize allocationSize in iterate()
421 if(pCommittedMemoryInBytes > allocSize[i]) in iterate()
/third_party/skia/third_party/vulkanmemoryallocator/include/
H A Dvk_mem_alloc.h6276 VkDeviceSize allocSize,
6298 VkDeviceSize allocSize,
6357 VkDeviceSize allocSize,
6377 VkDeviceSize allocSize,
6409 VkDeviceSize allocSize,
6535 VkDeviceSize allocSize,
6555 VkDeviceSize allocSize,
6611 VkDeviceSize allocSize,
6621 VkDeviceSize allocSize,
6665 VkDeviceSize allocSize,
9116 CreateAllocationRequest( uint32_t currentFrameIndex, uint32_t frameInUseCount, VkDeviceSize bufferImageGranularity, VkDeviceSize allocSize, VkDeviceSize allocAlignment, bool upperAddress, VmaSuballocationType allocType, bool canMakeOtherLost, uint32_t strategy, VmaAllocationRequest* pAllocationRequest) CreateAllocationRequest() argument
9354 Alloc( const VmaAllocationRequest& request, VmaSuballocationType type, VkDeviceSize allocSize, VmaAllocation hAllocation) Alloc() argument
9467 CheckAllocation( uint32_t currentFrameIndex, uint32_t frameInUseCount, VkDeviceSize bufferImageGranularity, VkDeviceSize allocSize, VkDeviceSize allocAlignment, VmaSuballocationType allocType, VmaSuballocationList::const_iterator suballocItem, bool canMakeOtherLost, VkDeviceSize* pOffset, size_t* itemsToMakeLostCount, VkDeviceSize* pSumFreeSize, VkDeviceSize* pSumItemSize) const CheckAllocation() argument
10801 CreateAllocationRequest( uint32_t currentFrameIndex, uint32_t frameInUseCount, VkDeviceSize bufferImageGranularity, VkDeviceSize allocSize, VkDeviceSize allocAlignment, bool upperAddress, VmaSuballocationType allocType, bool canMakeOtherLost, uint32_t strategy, VmaAllocationRequest* pAllocationRequest) CreateAllocationRequest() argument
10826 CreateAllocationRequest_UpperAddress( uint32_t currentFrameIndex, uint32_t frameInUseCount, VkDeviceSize bufferImageGranularity, VkDeviceSize allocSize, VkDeviceSize allocAlignment, VmaSuballocationType allocType, bool canMakeOtherLost, uint32_t strategy, VmaAllocationRequest* pAllocationRequest) CreateAllocationRequest_UpperAddress() argument
10946 CreateAllocationRequest_LowerAddress( uint32_t currentFrameIndex, uint32_t frameInUseCount, VkDeviceSize bufferImageGranularity, VkDeviceSize allocSize, VkDeviceSize allocAlignment, VmaSuballocationType allocType, bool canMakeOtherLost, uint32_t strategy, VmaAllocationRequest* pAllocationRequest) CreateAllocationRequest_LowerAddress() argument
11368 Alloc( const VmaAllocationRequest& request, VmaSuballocationType type, VkDeviceSize allocSize, VmaAllocation hAllocation) Alloc() argument
11811 CreateAllocationRequest( uint32_t currentFrameIndex, uint32_t frameInUseCount, VkDeviceSize bufferImageGranularity, VkDeviceSize allocSize, VkDeviceSize allocAlignment, bool upperAddress, VmaSuballocationType allocType, bool canMakeOtherLost, uint32_t strategy, VmaAllocationRequest* pAllocationRequest) CreateAllocationRequest() argument
11884 Alloc( const VmaAllocationRequest& request, VmaSuballocationType type, VkDeviceSize allocSize, VmaAllocation hAllocation) Alloc() argument
12093 const VkDeviceSize allocSize = node->allocation.alloc->GetSize(); CalcAllocationStatInfoNode() local
12187 const VkDeviceSize allocSize = node->allocation.alloc->GetSize(); PrintDetailedMapNode() local
12356 WriteMagicValueAroundAllocation(VmaAllocator hAllocator, VkDeviceSize allocOffset, VkDeviceSize allocSize) WriteMagicValueAroundAllocation() argument
12376 ValidateMagicValueAroundAllocation(VmaAllocator hAllocator, VkDeviceSize allocOffset, VkDeviceSize allocSize) ValidateMagicValueAroundAllocation() argument
[all...]
/third_party/skia/src/gpu/
H A DGrResourceProvider.cpp567 size_t allocSize = intendedType == GrGpuBufferType::kUniform ? std::max(size, MIN_UNIFORM_SIZE) in createBuffer() local
569 size_t ceilPow2 = GrNextSizePow2(allocSize); in createBuffer()
572 allocSize = (allocSize <= mid) ? mid : ceilPow2; in createBuffer()
575 GrGpuBuffer::ComputeScratchKeyForDynamicBuffer(allocSize, intendedType, &key); in createBuffer()
580 buffer = this->gpu()->createBuffer(allocSize, intendedType, kDynamic_GrAccessPattern); in createBuffer()
/third_party/skia/third_party/externals/brotli/java/org/brotli/enc/
H A DPreparedDictionaryGenerator.java129 int allocSize = part0 + part1 + part2 + part3 + sourceSize; in generate()
130 ByteBuffer flat = ByteBuffer.allocateDirect(allocSize); in generate()
/third_party/skia/third_party/externals/swiftshader/third_party/marl/src/
H A Dmemory.cpp184 size_t allocSize = size + alignment + sizeof(void*);
185 auto allocation = malloc(allocSize);
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/
H A DvktPipelineBindVertexBuffers2Tests.cpp751 deUint32 allocSize = 0; in createBuffers() local
768 allocSize = 4; in createBuffers()
780 allocSize = 3; in createBuffers()
786 allocSize = 4; in createBuffers()
811 allocSize = 6; in createBuffers()
824 allocSize = 5; in createBuffers()
829 allocSize = 6; in createBuffers()
839 DE_ASSERT((allocSize != 0) && (allocSize >= sourceSize)); in createBuffers()
860 vk::VkDeviceSize clrSize = allocSize * in createBuffers()
[all...]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
H A DUnicodeSetStringSpan.java145 int allocSize; in UnicodeSetStringSpan()
148 allocSize = stringsLength * (2); in UnicodeSetStringSpan()
150 allocSize = stringsLength; // One set of span lengths. in UnicodeSetStringSpan()
152 spanLengths = new short[allocSize]; in UnicodeSetStringSpan()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/
H A DUnicodeSetStringSpan.java142 int allocSize; in UnicodeSetStringSpan()
145 allocSize = stringsLength * (2); in UnicodeSetStringSpan()
147 allocSize = stringsLength; // One set of span lengths. in UnicodeSetStringSpan()
149 spanLengths = new short[allocSize]; in UnicodeSetStringSpan()
/third_party/skia/third_party/externals/d3d12allocator/src/
H A DD3D12MemAlloc.cpp2132 UINT64 allocSize,
2139 UINT64 allocSize,
2179 UINT64 allocSize,
2185 UINT64 allocSize,
2210 UINT64 allocSize,
2804 UINT64 allocSize,
2808 D3D12MA_ASSERT(allocSize > 0);
2813 if(m_SumFreeSize < allocSize + 2 * D3D12MA_DEBUG_MARGIN)
2822 // Find first free suballocation with size not less than allocSize + 2 * D3D12MA_DEBUG_MARGIN.
2826 allocSize
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/mesh_shader/
H A DvktMeshShaderConditionalRenderingTestsEXT.cpp156 const auto allocSize = bufferMemReqs.size + bindOffset; in ConditionBuffer() local
158 const auto actualMemReqs = makeMemoryRequirements(allocSize, bufferMemReqs.alignment, bufferMemReqs.memoryTypeBits); in ConditionBuffer()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/mesh_shader/
H A DvktMeshShaderConditionalRenderingTestsEXT.cpp156 const auto allocSize = bufferMemReqs.size + bindOffset; in ConditionBuffer() local
158 const auto actualMemReqs = makeMemoryRequirements(allocSize, bufferMemReqs.alignment, bufferMemReqs.memoryTypeBits); in ConditionBuffer()
/third_party/skia/third_party/externals/swiftshader/third_party/marl/include/marl/
H A Dcontainers.h513 auto const allocSize = allocChainOffset + sizeof(AllocationChain);
516 request.size = allocSize;
/third_party/skia/src/gpu/text/
H A DGrTextBlob.h246 GrTextBlob(int allocSize, const SkMatrix& drawMatrix, SkColor initialLuminance);
H A DGrTextBlob.cpp1624 GrTextBlob::GrTextBlob(int allocSize, in GrTextBlob() argument
1627 : fAlloc{SkTAddOffset<char>(this, sizeof(GrTextBlob)), allocSize, allocSize/2} in GrTextBlob()
1628 , fSize{allocSize}
/third_party/lzma/CPP/7zip/Archive/
H A DXzHandler.cpp463 void Alloc(size_t allocSize) in Alloc()
465 buf = (Byte *)MyAlloc(allocSize); in Alloc()
467 this->bufSize = allocSize; in Alloc()
/third_party/skia/bench/
H A DTriangulatorBench.cpp76 size_t allocSize = eagerCount * stride; variable
77 if (allocSize > fVertexAllocSize) {
78 fVertexData.reset(allocSize);

Completed in 51 milliseconds

12