Home
last modified time | relevance | path

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

/third_party/skia/third_party/externals/dawn/src/dawn_wire/
H A DChunkedCommandSerializer.h44 [](const Cmd& cmd, size_t requiredSize, SerializeBuffer* serializeBuffer) { in SerializeCommand()
45 return cmd.Serialize(requiredSize, serializeBuffer); in SerializeCommand()
63 [&objectIdProvider](const Cmd& cmd, size_t requiredSize, in SerializeCommand()
65 return cmd.Serialize(requiredSize, serializeBuffer, objectIdProvider); in SerializeCommand()
77 size_t requiredSize = commandSize + extraSize; in SerializeCommandImpl() local
79 if (requiredSize <= mMaxAllocationSize) { in SerializeCommandImpl()
80 char* allocatedBuffer = static_cast<char*>(mSerializer->GetCmdSpace(requiredSize)); in SerializeCommandImpl()
82 SerializeBuffer serializeBuffer(allocatedBuffer, requiredSize); in SerializeCommandImpl()
83 WireResult r1 = SerializeCmd(cmd, requiredSize, &serializeBuffer); in SerializeCommandImpl()
92 auto cmdSpace = std::unique_ptr<char[]>(AllocNoThrow<char>(requiredSize)); in SerializeCommandImpl()
[all...]
/third_party/skia/third_party/externals/dawn/src/common/
H A DWindowsUtils.cpp24 int requiredSize = WideCharToMultiByte(CP_UTF8, 0, input, -1, nullptr, 0, nullptr, nullptr); in WCharToUTF8() local
27 std::unique_ptr<char[]> result = std::make_unique<char[]>(requiredSize); in WCharToUTF8()
28 WideCharToMultiByte(CP_UTF8, 0, input, -1, result.get(), requiredSize, nullptr, nullptr); in WCharToUTF8()
31 return std::string(result.get(), result.get() + (requiredSize - 1)); in WCharToUTF8()
37 int requiredSize = MultiByteToWideChar(CP_UTF8, 0, input, -1, nullptr, 0); in UTF8ToWStr() local
40 std::unique_ptr<wchar_t[]> result = std::make_unique<wchar_t[]>(requiredSize); in UTF8ToWStr()
41 MultiByteToWideChar(CP_UTF8, 0, input, -1, result.get(), requiredSize); in UTF8ToWStr()
44 return std::wstring(result.get(), result.get() + (requiredSize - 1)); in UTF8ToWStr()
/third_party/skia/third_party/externals/dawn/src/dawn_native/
H A DCommandBufferStateTracker.cpp107 uint64_t requiredSize = in ValidateBufferInRangeForVertexBuffer() local
113 requiredSize > bufferSize, in ValidateBufferInRangeForVertexBuffer()
116 firstVertex, vertexCount, requiredSize, bufferSize, in ValidateBufferInRangeForVertexBuffer()
145 uint64_t requiredSize = in ValidateBufferInRangeForInstanceBuffer() local
151 requiredSize > bufferSize, in ValidateBufferInRangeForInstanceBuffer()
154 firstInstance, instanceCount, requiredSize, bufferSize, in ValidateBufferInRangeForInstanceBuffer()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/
H A DImmutableStringBuilder.h66 size_t requiredSize = strLength + 1u; in AllocateEmptyPoolCharArray() local
67 return static_cast<char *>(GetGlobalPoolAllocator()->allocate(requiredSize)); in AllocateEmptyPoolCharArray()
H A DCommon.h226 size_t requiredSize = strLength + 1; in AllocatePoolCharArray() local
227 char *buffer = static_cast<char *>(GetGlobalPoolAllocator()->allocate(requiredSize)); in AllocatePoolCharArray()
228 memcpy(buffer, str, requiredSize); in AllocatePoolCharArray()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/
H A DResourceManager11.cpp457 size_t requiredSize = static_cast<size_t>(ComputeMemoryUsage(desc)); in createInitDataIfNeeded() local
458 if (mZeroMemory.size() < requiredSize) in createInitDataIfNeeded()
460 if (!mZeroMemory.resize(requiredSize)) in createInitDataIfNeeded()
507 size_t requiredSize = static_cast<size_t>(ComputeMemoryUsage(desc)); in createInitDataIfNeeded() local
508 if (mZeroMemory.size() < requiredSize) in createInitDataIfNeeded()
510 if (!mZeroMemory.resize(requiredSize)) in createInitDataIfNeeded()
H A DBuffer11.cpp411 size_t requiredSize = size + offset; in setSubData() local
458 if (writeBuffer->getSize() < requiredSize) in setSubData()
461 ANGLE_TRY(writeBuffer->resize(context, requiredSize, preserveData)); in setSubData()
468 mSize = std::max(mSize, requiredSize); in setSubData()
1160 size_t requiredSize = destOffset + size; in copyFromStorage() local
1164 if (!mBuffer.valid() || mBufferSize < requiredSize) in copyFromStorage()
1166 ANGLE_TRY(resize(context, requiredSize, preserveData)); in copyFromStorage()
H A DStateManager11.cpp3433 size_t requiredSize = mShaderConstants.getRequiredBufferSize(shaderType);
3436 d3d11::InitConstantBufferDesc(&constantBufferDescription, requiredSize);
3529 size_t requiredSize = mShaderConstants.getRequiredBufferSize(gl::ShaderType::Compute);
3532 d3d11::InitConstantBufferDesc(&constantBufferDescription, requiredSize);
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/memory/
H A DvktMemoryExternalMemoryHostTests.cpp348 const VkDeviceSize requiredSize = imageMemoryRequirements.size + (m_testParams.m_useOffset ? imageMemoryRequirements.alignment : 0ull); in iterate() local
349 if (requiredSize > m_allocationSize) in iterate()
352 const auto newHostAllocationSize = de::roundUp(requiredSize, m_minImportedHostPointerAlignment); in iterate()
356 m_log << tcu::TestLog::Message << "Realloc needed (required size: " << requiredSize << "). " << "New host allocation size: " << newHostAllocationSize << ")." in iterate()
807 VkDeviceSize requiredSize = bufferMemoryRequirements.size; in iterate() local
809 if (requiredSize > m_allocationSize) in iterate()
811 VkDeviceSize newHostAllocationSize = VkDeviceSize(deCeilFloatToInt32((float(requiredSize) / float(m_minImportedHostPointerAlignment))) * m_minImportedHostPointerAlignment); in iterate()
813 m_log << tcu::TestLog::Message << "Realloc needed (required size: " << requiredSize << "). " in iterate()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/memory/
H A DvktMemoryExternalMemoryHostTests.cpp348 const VkDeviceSize requiredSize = imageMemoryRequirements.size + (m_testParams.m_useOffset ? imageMemoryRequirements.alignment : 0ull); in iterate() local
349 if (requiredSize > m_allocationSize) in iterate()
352 const auto newHostAllocationSize = de::roundUp(requiredSize, m_minImportedHostPointerAlignment); in iterate()
356 m_log << tcu::TestLog::Message << "Realloc needed (required size: " << requiredSize << "). " << "New host allocation size: " << newHostAllocationSize << ")." in iterate()
807 VkDeviceSize requiredSize = bufferMemoryRequirements.size; in iterate() local
809 if (requiredSize > m_allocationSize) in iterate()
811 VkDeviceSize newHostAllocationSize = VkDeviceSize(deCeilFloatToInt32((float(requiredSize) / float(m_minImportedHostPointerAlignment))) * m_minImportedHostPointerAlignment); in iterate()
813 m_log << tcu::TestLog::Message << "Realloc needed (required size: " << requiredSize << "). " in iterate()
/third_party/skia/third_party/externals/dng_sdk/source/
H A Ddng_misc_opcodes.cpp296 uint32 requiredSize = SafeUint32Mult(fCount, 2); in dng_opcode_MapTable() local
297 requiredSize = SafeUint32Add(requiredSize, dng_area_spec::kDataSize); in dng_opcode_MapTable()
298 requiredSize = SafeUint32Add(requiredSize, 4); in dng_opcode_MapTable()
299 if (dataSize != requiredSize) in dng_opcode_MapTable()
/third_party/vulkan-loader/loader/
H A Dloader_windows.c172 DWORD requiredSize, data_type; in windows_get_device_registry_entry() local
188 LSTATUS ret = RegQueryValueEx(hkrKey, value_name, NULL, NULL, NULL, &requiredSize); in windows_get_device_registry_entry()
201 manifest_path = loader_instance_heap_alloc(inst, requiredSize, VK_SYSTEM_ALLOCATION_SCOPE_INSTANCE); in windows_get_device_registry_entry()
209 ret = RegQueryValueEx(hkrKey, value_name, NULL, &data_type, (BYTE *)manifest_path, &requiredSize); in windows_get_device_registry_entry()
225 found = windows_add_json_entry(inst, reg_data, total_size, value_name, data_type, manifest_path, requiredSize, result); in windows_get_device_registry_entry()
/third_party/lzma/CPP/7zip/UI/FileManager/
H A DProgressDialog2.cpp526 const int requiredSize = (labelSize + valueSize) * 2 + padSize; in OnSize() local
530 if (requiredSize < xSizeClient) in OnSize()
532 const int incr = (xSizeClient - requiredSize) / 3; in OnSize()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/
H A DSecondaryCommandBuffer.h793 const size_t requiredSize = allocationSize + sizeof(CommandHeader); in initCommand() local
794 if (mCurrentBytesRemaining < requiredSize) in initCommand()
797 if (requiredSize <= kBlockSize) in initCommand()
802 const size_t alignedSize = roundUpPow2<size_t>(requiredSize, 4); in initCommand()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/geometry/
H A DvktGeometryLayeredRenderingTests.cpp176 const VkExtent3D& requiredSize, in checkImageFormatProperties()
188 imageFormatProperties.maxExtent.height < requiredSize.height || in checkImageFormatProperties()
189 imageFormatProperties.maxExtent.width < requiredSize.width || in checkImageFormatProperties()
190 imageFormatProperties.maxExtent.depth < requiredSize.depth) in checkImageFormatProperties()
169 checkImageFormatProperties(const InstanceInterface& vki, const VkPhysicalDevice& physDevice, const VkImageType& imageType, const VkImageTiling& imageTiling, const VkImageUsageFlags imageUsageFlags, const VkImageCreateFlags imageCreateFlags, const VkFormat format, const VkExtent3D& requiredSize, const deUint32 requiredLayers) checkImageFormatProperties() argument
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/geometry/
H A DvktGeometryLayeredRenderingTests.cpp176 const VkExtent3D& requiredSize, in checkImageFormatProperties()
188 imageFormatProperties.maxExtent.height < requiredSize.height || in checkImageFormatProperties()
189 imageFormatProperties.maxExtent.width < requiredSize.width || in checkImageFormatProperties()
190 imageFormatProperties.maxExtent.depth < requiredSize.depth) in checkImageFormatProperties()
169 checkImageFormatProperties(const InstanceInterface& vki, const VkPhysicalDevice& physDevice, const VkImageType& imageType, const VkImageTiling& imageTiling, const VkImageUsageFlags imageUsageFlags, const VkImageCreateFlags imageCreateFlags, const VkFormat format, const VkExtent3D& requiredSize, const deUint32 requiredLayers) checkImageFormatProperties() argument
/third_party/protobuf/java/core/src/main/java/com/google/protobuf/
H A DCodedOutputStream.java2692 private void flushIfNotAvailable(int requiredSize) throws IOException { in flushIfNotAvailable() argument
2693 if (limit - position < requiredSize) { in flushIfNotAvailable()
3055 private void flushIfNotAvailable(int requiredSize) throws IOException { in flushIfNotAvailable() argument
3056 if (limit - position < requiredSize) { in flushIfNotAvailable()
/third_party/vk-gl-cts/modules/gles31/functional/
H A Des31fTessellationGeometryInteractionTests.cpp1844 const int requiredSize = getExpectedPointSize();
1848 if (float(requiredSize) > aliasedSizeRange[1])
1849 throw tcu::NotSupportedError("Test requires point size " + de::toString(requiredSize));
/third_party/glfw/src/
H A Dwl_window.c1325 const size_t requiredSize = length + readSize + 1; in readDataOfferAsString() local
1326 if (requiredSize > size) in readDataOfferAsString()
1328 char* longer = _glfw_realloc(string, requiredSize); in readDataOfferAsString()
1337 size = requiredSize; in readDataOfferAsString()
/third_party/glslang/glslang/MachineIndependent/
H A DParseHelper.h341 void checkIoArrayConsistency(const TSourceLoc&, int requiredSize, const char* feature, TType&, const TString&);
H A DParseHelper.cpp776 int requiredSize = 0; in checkIoArraysConsistency() local
788 // As I/O array sizes don't change, fetch requiredSize only once, in checkIoArraysConsistency()
791 requiredSize = getIoArrayImplicitSize(type.getQualifier(), &featureString); in checkIoArraysConsistency()
792 if (requiredSize == 0) in checkIoArraysConsistency()
797 checkIoArrayConsistency(loc, requiredSize, featureString.c_str(), type, in checkIoArraysConsistency()
846 void TParseContext::checkIoArrayConsistency(const TSourceLoc& loc, int requiredSize, const char* feature, TType& type, const TString& name) in checkIoArrayConsistency() argument
849 type.changeOuterArraySize(requiredSize); in checkIoArrayConsistency()
850 else if (type.getOuterArraySize() != requiredSize) { in checkIoArrayConsistency()
856 if (type.getOuterArraySize() > requiredSize) in checkIoArrayConsistency()
/third_party/lz4/lib/
H A Dlz4frame.c692 int requiredSize = ctxTypeID_to_size(ctxTypeID); in LZ4F_compressBegin_usingCDict() local
694 if (allocatedSize < requiredSize) { in LZ4F_compressBegin_usingCDict()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/imageless_framebuffer/
H A DvktImagelessFramebufferTests.cpp907 const VkExtent3D requiredSize = makeExtent3D(requiredSize2D.height, requiredSize2D.width, 1u); in checkImageFormatProperties() local
918 imageFormatProperties.maxExtent.height < requiredSize.height || in checkImageFormatProperties()
919 imageFormatProperties.maxExtent.width < requiredSize.width || in checkImageFormatProperties()
920 imageFormatProperties.maxExtent.depth < requiredSize.depth) in checkImageFormatProperties()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/imageless_framebuffer/
H A DvktImagelessFramebufferTests.cpp907 const VkExtent3D requiredSize = makeExtent3D(requiredSize2D.height, requiredSize2D.width, 1u); in checkImageFormatProperties() local
918 imageFormatProperties.maxExtent.height < requiredSize.height || in checkImageFormatProperties()
919 imageFormatProperties.maxExtent.width < requiredSize.width || in checkImageFormatProperties()
920 imageFormatProperties.maxExtent.depth < requiredSize.depth) in checkImageFormatProperties()
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/libGLESv2/
H A DContext.cpp3386 int requiredSize = outputPitch * height; in readPixels() local
3387 if(requiredSize > *bufSize) in readPixels()

Completed in 71 milliseconds