/third_party/flutter/skia/third_party/externals/dawn/src/dawn_native/ |
D | RingBuffer.cpp | 99 UploadHandle RingBuffer::SubAllocate(size_t allocSize) { in SubAllocate() argument 116 if (mUsedEndOffset + allocSize <= mBufferSize) { in SubAllocate() 118 mUsedEndOffset += allocSize; in SubAllocate() 119 mUsedSize += allocSize; in SubAllocate() 120 mCurrentRequestSize += allocSize; in SubAllocate() 121 } else if (allocSize <= mUsedStartOffset) { // Try to sub-alloc at front. in SubAllocate() 124 const size_t requestSize = (mBufferSize - mUsedEndOffset) + allocSize; in SubAllocate() 127 mUsedEndOffset = allocSize; in SubAllocate() 131 } else if (mUsedEndOffset + allocSize <= in SubAllocate() 135 mUsedEndOffset += allocSize; in SubAllocate() [all …]
|
/third_party/skia/src/core/ |
D | SkBlockAllocator.cpp | 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/bench/ |
D | TriangulatorBench.cpp | 76 size_t allocSize = eagerCount * stride; in lock() local 77 if (allocSize > fVertexAllocSize) { in lock() 78 fVertexData.reset(allocSize); in lock()
|
/third_party/flutter/skia/src/gpu/ops/ |
D | GrDrawAtlasOp.cpp | 113 int allocSize = static_cast<int>(4 * vertexStride * spriteCount); in DrawAtlasOp() local 114 installedGeo.fVerts.reset(allocSize); in DrawAtlasOp() 207 size_t allocSize = args.fVerts.count(); in onPrepareDraws() local 208 memcpy(vertPtr, args.fVerts.begin(), allocSize); in onPrepareDraws() 209 vertPtr += allocSize; in onPrepareDraws()
|
/third_party/skia/src/gpu/ops/ |
D | DrawAtlasOp.cpp | 129 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/skia/third_party/externals/icu/source/common/ |
D | unisetspan.cpp | 271 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()
|
/third_party/flutter/skia/third_party/externals/icu/source/common/ |
D | unisetspan.cpp | 268 int32_t allocSize; in UnicodeSetStringSpan() local 271 allocSize=stringsLength*(4+1+1+1+1)+utf8Length; in UnicodeSetStringSpan() 273 allocSize=stringsLength; // One set of span lengths. in UnicodeSetStringSpan() 276 allocSize+=stringsLength*4+utf8Length; in UnicodeSetStringSpan() 279 if(allocSize<=(int32_t)sizeof(staticLengths)) { in UnicodeSetStringSpan() 282 utf8Lengths=(int32_t *)uprv_malloc(allocSize); in UnicodeSetStringSpan() 409 int32_t allocSize=stringsLength*(4+1+1+1+1)+utf8Length; in UnicodeSetStringSpan() local 410 if(allocSize<=(int32_t)sizeof(staticLengths)) { in UnicodeSetStringSpan() 413 utf8Lengths=(int32_t *)uprv_malloc(allocSize); in UnicodeSetStringSpan() 422 uprv_memcpy(utf8Lengths, otherStringSpan.utf8Lengths, allocSize); in UnicodeSetStringSpan()
|
/third_party/node/deps/icu-small/source/common/ |
D | unisetspan.cpp | 271 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()
|
/third_party/icu/icu4c/source/common/ |
D | unisetspan.cpp | 271 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()
|
/third_party/flutter/skia/tests/ |
D | GrTestingBackendTextureUploadTest.cpp | 50 size_t allocSize = SkAutoPixmapStorage::AllocSize(ii, nullptr); in testing_only_texture_test() local 53 memset(expectedPixels.writable_addr32(0, 0), 0, allocSize); in testing_only_texture_test()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/robustness/ |
D | vktRobustBufferAccessWithVariablePointersTests.cpp | 82 VkDeviceSize allocSize; member 120 data.allocSize = bufferMemoryReqs.size; in createTestBuffer() 122 data.maxAccessRange = deMinu64(data.allocSize, deMinu64(bufferParams.size, accessRange)); in createTestBuffer() 1398 …log << tcu::TestLog::Message << "input buffer - alloc size: " << m_inBufferAccess.allocSize << tc… in AccessInstance() 1400 …log << tcu::TestLog::Message << "output buffer - alloc size: " << m_outBufferAccess.allocSize << t… in AccessInstance() 1515 DE_ASSERT(offsetInBytes < m_inBufferAccess.allocSize); in isExpectedValueFromInBuffer() 1586 m_outBufferAccess.allocSize, // VkDeviceSize size; in iterate() 1612 …for (VkDeviceSize offsetInBytes = 0; offsetInBytes < m_outBufferAccess.allocSize; offsetInBytes +=… in verifyResult() 1615 …alueSize = static_cast<size_t>(deMinu64(elementSize, (m_outBufferAccess.allocSize - offsetInBytes)… in verifyResult() 1622 …&& (isReadAccess || !isValueWithinBufferOrZero(inDataPtr, m_inBufferAccess.allocSize, outValuePtr,… in verifyResult() [all …]
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/api/ |
D | vktApiGetMemoryCommitment.cpp | 390 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/ |
D | vk_mem_alloc.h | 6225 VkDeviceSize allocSize, 6247 VkDeviceSize allocSize, 6306 VkDeviceSize allocSize, 6326 VkDeviceSize allocSize, 6358 VkDeviceSize allocSize, 6484 VkDeviceSize allocSize, 6504 VkDeviceSize allocSize, 6560 VkDeviceSize allocSize, 6570 VkDeviceSize allocSize, 6614 VkDeviceSize allocSize, [all …]
|
/third_party/skia/third_party/externals/brotli/java/org/brotli/enc/ |
D | PreparedDictionaryGenerator.java | 129 int allocSize = part0 + part1 + part2 + part3 + sourceSize; in generate() local 130 ByteBuffer flat = ByteBuffer.allocateDirect(allocSize); in generate()
|
/third_party/skia/src/gpu/ |
D | GrResourceProvider.cpp | 561 size_t allocSize = intendedType == GrGpuBufferType::kUniform ? std::max(size, MIN_UNIFORM_SIZE) in createBuffer() local 563 size_t ceilPow2 = GrNextSizePow2(allocSize); in createBuffer() 566 allocSize = (allocSize <= mid) ? mid : ceilPow2; in createBuffer() 569 GrGpuBuffer::ComputeScratchKeyForDynamicBuffer(allocSize, intendedType, &key); in createBuffer() 574 buffer = this->gpu()->createBuffer(allocSize, intendedType, kDynamic_GrAccessPattern); in createBuffer()
|
/third_party/skia/third_party/externals/swiftshader/third_party/marl/src/ |
D | memory.cpp | 184 size_t allocSize = size + alignment + sizeof(void*); in alignedMalloc() local 185 auto allocation = malloc(allocSize); in alignedMalloc()
|
/third_party/flutter/skia/src/gpu/ |
D | GrResourceProvider.cpp | 522 size_t allocSize = SkTMax(MIN_SIZE, GrNextSizePow2(size)); in createBuffer() local 525 GrGpuBuffer::ComputeScratchKeyForDynamicVBO(allocSize, intendedType, &key); in createBuffer() 528 key, allocSize, GrResourceCache::ScratchFlags::kNone))); in createBuffer() 530 buffer = this->gpu()->createBuffer(allocSize, intendedType, kDynamic_GrAccessPattern); in createBuffer()
|
/third_party/skia/third_party/externals/d3d12allocator/src/ |
D | D3D12MemAlloc.cpp | 2132 UINT64 allocSize, 2139 UINT64 allocSize, 2179 UINT64 allocSize, 2185 UINT64 allocSize, 2210 UINT64 allocSize, 2804 UINT64 allocSize, in CreateAllocationRequest() argument 2808 D3D12MA_ASSERT(allocSize > 0); in CreateAllocationRequest() 2813 if(m_SumFreeSize < allocSize + 2 * D3D12MA_DEBUG_MARGIN) in CreateAllocationRequest() 2826 allocSize + 2 * D3D12MA_DEBUG_MARGIN, in CreateAllocationRequest() 2832 allocSize, in CreateAllocationRequest() [all …]
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/ |
D | UnicodeSetStringSpan.java | 142 int allocSize; in UnicodeSetStringSpan() local 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/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | UnicodeSetStringSpan.java | 145 int allocSize; in UnicodeSetStringSpan() local 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/skia/third_party/externals/swiftshader/third_party/marl/include/marl/ |
D | containers.h | 513 auto const allocSize = allocChainOffset + sizeof(AllocationChain); in grow() local 516 request.size = allocSize; in grow()
|
/third_party/skia/src/gpu/text/ |
D | GrTextBlob.h | 246 GrTextBlob(int allocSize, const SkMatrix& drawMatrix, SkColor initialLuminance);
|
D | GrTextBlob.cpp | 1618 GrTextBlob::GrTextBlob(int allocSize, in GrTextBlob() argument 1621 : fAlloc{SkTAddOffset<char>(this, sizeof(GrTextBlob)), allocSize, allocSize/2} in GrTextBlob() 1622 , fSize{allocSize}
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/binding_model/ |
D | vktBindingDescriptorSetRandomTests.cpp | 2302 …const auto allocSize = de::roundUp(static_cast<VkDeviceSize>(shaderGroupHandleSize), properties.pr… in iterate() local 2305 …makeBufferCreateInfo(allocSize, VK_BUFFER_USAGE_TRANSFER_DST_BIT | VK_BUFFER_USAGE_RAY_TRACING_BIT… in iterate() 2311 …vk.getRayTracingShaderGroupHandlesNV(device, *pipeline, 0, 1, static_cast<deUintptr>(allocSize), p… in iterate()
|