Home
last modified time | relevance | path

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

12

/third_party/node/test/fixtures/wpt/streams/readable-streams/
H A Dfloating-point-total-queue-size.any.js4 // Due to the limitations of floating-point precision, the calculation of desiredSize sometimes gives different answers
13 assert_equals(controller.desiredSize, 0 - 2, 'desiredSize must be -2 after enqueueing such a chunk');
16 assert_equals(controller.desiredSize, 0 - Number.MAX_SAFE_INTEGER - 2,
17 'desiredSize must be calculated using double-precision floating-point arithmetic (adding a second chunk)');
20 assert_equals(controller.desiredSize, 0 - Number.MAX_SAFE_INTEGER - 2 + 2,
21 'desiredSize must be calculated using double-precision floating-point arithmetic (subtracting a chunk)');
25 assert_equals(controller.desiredSize, 0, '[[queueTotalSize]] must clamp to 0 if it becomes negative');
33 assert_equals(controller.desiredSize, 0 - 1e-16, 'desiredSize mus
[all...]
/third_party/skia/src/codec/
H A DSkAndroidCodec.cpp203 int SkAndroidCodec::computeSampleSize(SkISize* desiredSize) const { in computeSampleSize()
204 SkASSERT(desiredSize); in computeSampleSize()
207 if (!desiredSize || *desiredSize == origDims) { in computeSampleSize()
211 if (smaller_than(origDims, *desiredSize)) { in computeSampleSize()
212 *desiredSize = origDims; in computeSampleSize()
217 if (desiredSize->width() < 1 || desiredSize->height() < 1) { in computeSampleSize()
218 *desiredSize = SkISize::Make(std::max(1, desiredSize in computeSampleSize()
[all...]
H A DSkIcoCodec.cpp252 float desiredSize = desiredScale * origWidth * desiredScale * origHeight; in onGetScaledDimensions() local
254 float desiredSize = desiredScale * origWidth * origHeight; in onGetScaledDimensions() local
257 float minError = ((float) (origWidth * origHeight)) - desiredSize + 1.0f; in onGetScaledDimensions()
263 float error = SkTAbs(((float) (width * height)) - desiredSize); in onGetScaledDimensions()
/third_party/node/test/fixtures/wpt/streams/writable-streams/
H A Dfloating-point-total-queue-size.any.js4 // Due to the limitations of floating-point precision, the calculation of desiredSize sometimes gives different answers
17 assert_equals(writer.desiredSize, 0 - 2 - Number.MAX_SAFE_INTEGER,
18 'desiredSize must be calculated using double-precision floating-point arithmetic (after writing two chunks)');
21 assert_equals(writer.desiredSize, 0, '[[queueTotalSize]] must clamp to 0 if it becomes negative');
33 assert_equals(writer.desiredSize, 0 - 1e-16 - 1,
34 'desiredSize must be calculated using double-precision floating-point arithmetic (after writing two chunks)');
37 assert_equals(writer.desiredSize, 0, '[[queueTotalSize]] must clamp to 0 if it becomes negative');
50 assert_equals(writer.desiredSize, 0 - 1e-16 - 1 - 2e-16,
51 'desiredSize must be calculated using double-precision floating-point arithmetic (after writing three chunks)');
54 assert_equals(writer.desiredSize,
[all...]
H A Dwrite.any.js78 assert_equals(writer.desiredSize, 1, 'desiredSize should be 1');
85 assert_equals(writer.desiredSize, 0, 'desiredSize should be 0 after writer.write()');
98 assert_equals(writer.desiredSize, 1, 'desiredSize should be 1 again');
121 assert_equals(writer.desiredSize, 1, 'desiredSize should be 1');
126 assert_equals(writer.desiredSize, 0, 'desiredSize shoul
[all...]
H A Dstart.any.js20 assert_equals(writer.desiredSize, 1, 'desiredSize should be 1');
22 assert_equals(writer.desiredSize, 0, 'desiredSize should be 0 after writer.write()');
48 assert_equals(writer.desiredSize, 1, 'desiredSize should be 1');
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/wsi/
H A DvktWsiColorSpaceTests.cpp283 const tcu::UVec2& desiredSize, in getBasicSwapchainParameters()
319 (platformProperties.swapchainExtent == PlatformProperties::SWAPCHAIN_EXTENT_MUST_MATCH_WINDOW_SIZE ? capabilities.currentExtent : vk::makeExtent2D(desiredSize.x(), desiredSize.y())), in getBasicSwapchainParameters()
419 const tcu::UVec2 desiredSize (256, 256); in basicExtensionTest()
421 const NativeObjects native (context, instHelper.supportedExtensions, wsiType, 1u, tcu::just(desiredSize)); in basicExtensionTest()
460 const tcu::UVec2 desiredSize (256, 256); in colorspaceCompareTest()
462 const NativeObjects native (context, instHelper.supportedExtensions, params.wsiType, tcu::just(desiredSize)); in colorspaceCompareTest()
506 desiredSize, in colorspaceCompareTest()
594 allocator, desiredSize, textureFormat, in colorspaceCompareTest()
601 allocator, desiredSize, textureForma in colorspaceCompareTest()
278 getBasicSwapchainParameters(Type wsiType, const InstanceInterface& vki, VkPhysicalDevice physicalDevice, VkSurfaceKHR surface, VkSurfaceFormatKHR surfaceFormat, const tcu::UVec2& desiredSize, deUint32 desiredImageCount, VkColorSpaceKHR desiredColorspace = VK_COLOR_SPACE_MAX_ENUM_KHR) getBasicSwapchainParameters() argument
[all...]
H A DvktWsiSwapchainTests.cpp975 const tcu::UVec2 desiredSize (256, 256); in testImageSwapchainCreateInfo()
977 const NativeObjects native (context, instHelper.supportedExtensions, wsiType, 1u, tcu::just(desiredSize)); in testImageSwapchainCreateInfo()
1010 ? capabilities.currentExtent : vk::makeExtent2D(desiredSize.x(), desiredSize.y())), in testImageSwapchainCreateInfo()
1044 desiredSize.x(), // width in testImageSwapchainCreateInfo()
1045 desiredSize.y(), // height in testImageSwapchainCreateInfo()
1143 const tcu::UVec2& desiredSize, in getBasicSwapchainParameters()
1164 ? capabilities.currentExtent : vk::makeExtent2D(desiredSize.x(), desiredSize.y())), in getBasicSwapchainParameters()
1309 const tcu::UVec2 desiredSize (25 in basicRenderTest()
1139 getBasicSwapchainParameters(Type wsiType, const InstanceInterface& vki, VkPhysicalDevice physicalDevice, VkSurfaceKHR surface, const tcu::UVec2& desiredSize, deUint32 desiredImageCount) getBasicSwapchainParameters() argument
[all...]
H A DvktWsiPresentIdWaitTests.cpp266 const tcu::UVec2& desiredSize, in getBasicSwapchainParameters()
287 ? capabilities.currentExtent : vk::makeExtent2D(desiredSize.x(), desiredSize.y())), in getBasicSwapchainParameters()
393 const tcu::UVec2 desiredSize (256, 256); in iterate()
395 const NativeObjects native (m_context, instHelper.supportedExtensions, m_wsiType, 1u, tcu::just(desiredSize)); in iterate()
401 const vk::VkSwapchainCreateInfoKHR swapchainInfo = getBasicSwapchainParameters(m_wsiType, instHelper.vki, devHelper.physicalDevice, *surface, desiredSize, 2); in iterate()
916 const tcu::UVec2 desiredSize (256, 256); in iterate()
918 const NativeObjects native (m_context, instHelper.supportedExtensions, m_wsiType, 2u, tcu::just(desiredSize)); in iterate()
925 const vk::VkSwapchainCreateInfoKHR swapchainInfo1 = getBasicSwapchainParameters(m_wsiType, instHelper.vki, devHelper.physicalDevice, surface1.get(), desiredSize, 2); in iterate()
926 const vk::VkSwapchainCreateInfoKHR swapchainInfo2 = getBasicSwapchainParameters(m_wsiType, instHelper.vki, devHelper.physicalDevice, surface2.get(), desiredSize, in iterate()
262 getBasicSwapchainParameters(vk::wsi::Type wsiType, const vk::InstanceInterface& vki, vk::VkPhysicalDevice physicalDevice, vk::VkSurfaceKHR surface, const tcu::UVec2& desiredSize, deUint32 desiredImageCount) getBasicSwapchainParameters() argument
[all...]
H A DvktWsiFullScreenExclusiveTests.cpp263 const tcu::UVec2& desiredSize, in getBasicSwapchainParameters()
281 ? capabilities.currentExtent : vk::makeExtent2D(desiredSize.x(), desiredSize.y())), in getBasicSwapchainParameters()
258 getBasicSwapchainParameters(Type wsiType, const InstanceInterface& vki, VkPhysicalDevice physicalDevice, VkSurfaceKHR surface, VkSurfaceFormatKHR surfaceFormat, const tcu::UVec2& desiredSize, deUint32 desiredImageCount) getBasicSwapchainParameters() argument
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/wsi/
H A DvktWsiColorSpaceTests.cpp283 const tcu::UVec2& desiredSize, in getBasicSwapchainParameters()
319 (platformProperties.swapchainExtent == PlatformProperties::SWAPCHAIN_EXTENT_MUST_MATCH_WINDOW_SIZE ? capabilities.currentExtent : vk::makeExtent2D(desiredSize.x(), desiredSize.y())), in getBasicSwapchainParameters()
419 const tcu::UVec2 desiredSize (256, 256); in basicExtensionTest()
421 const NativeObjects native (context, instHelper.supportedExtensions, wsiType, 1u, tcu::just(desiredSize)); in basicExtensionTest()
460 const tcu::UVec2 desiredSize (256, 256); in colorspaceCompareTest()
462 const NativeObjects native (context, instHelper.supportedExtensions, params.wsiType, tcu::just(desiredSize)); in colorspaceCompareTest()
506 desiredSize, in colorspaceCompareTest()
594 allocator, desiredSize, textureFormat, in colorspaceCompareTest()
601 allocator, desiredSize, textureForma in colorspaceCompareTest()
278 getBasicSwapchainParameters(Type wsiType, const InstanceInterface& vki, VkPhysicalDevice physicalDevice, VkSurfaceKHR surface, VkSurfaceFormatKHR surfaceFormat, const tcu::UVec2& desiredSize, deUint32 desiredImageCount, VkColorSpaceKHR desiredColorspace = VK_COLOR_SPACE_MAX_ENUM_KHR) getBasicSwapchainParameters() argument
[all...]
H A DvktWsiSwapchainTests.cpp959 const tcu::UVec2 desiredSize (256, 256); in testImageSwapchainCreateInfo()
961 const NativeObjects native (context, instHelper.supportedExtensions, wsiType, 1u, tcu::just(desiredSize)); in testImageSwapchainCreateInfo()
994 ? capabilities.currentExtent : vk::makeExtent2D(desiredSize.x(), desiredSize.y())), in testImageSwapchainCreateInfo()
1028 desiredSize.x(), // width in testImageSwapchainCreateInfo()
1029 desiredSize.y(), // height in testImageSwapchainCreateInfo()
1127 const tcu::UVec2& desiredSize, in getBasicSwapchainParameters()
1148 ? capabilities.currentExtent : vk::makeExtent2D(desiredSize.x(), desiredSize.y())), in getBasicSwapchainParameters()
1293 const tcu::UVec2 desiredSize (25 in basicRenderTest()
1123 getBasicSwapchainParameters(Type wsiType, const InstanceInterface& vki, VkPhysicalDevice physicalDevice, VkSurfaceKHR surface, const tcu::UVec2& desiredSize, deUint32 desiredImageCount) getBasicSwapchainParameters() argument
[all...]
H A DvktWsiPresentIdWaitTests.cpp266 const tcu::UVec2& desiredSize, in getBasicSwapchainParameters()
287 ? capabilities.currentExtent : vk::makeExtent2D(desiredSize.x(), desiredSize.y())), in getBasicSwapchainParameters()
393 const tcu::UVec2 desiredSize (256, 256); in iterate()
395 const NativeObjects native (m_context, instHelper.supportedExtensions, m_wsiType, 1u, tcu::just(desiredSize)); in iterate()
401 const vk::VkSwapchainCreateInfoKHR swapchainInfo = getBasicSwapchainParameters(m_wsiType, instHelper.vki, devHelper.physicalDevice, *surface, desiredSize, 2); in iterate()
916 const tcu::UVec2 desiredSize (256, 256); in iterate()
918 const NativeObjects native (m_context, instHelper.supportedExtensions, m_wsiType, 2u, tcu::just(desiredSize)); in iterate()
925 const vk::VkSwapchainCreateInfoKHR swapchainInfo1 = getBasicSwapchainParameters(m_wsiType, instHelper.vki, devHelper.physicalDevice, surface1.get(), desiredSize, 2); in iterate()
926 const vk::VkSwapchainCreateInfoKHR swapchainInfo2 = getBasicSwapchainParameters(m_wsiType, instHelper.vki, devHelper.physicalDevice, surface2.get(), desiredSize, in iterate()
262 getBasicSwapchainParameters(vk::wsi::Type wsiType, const vk::InstanceInterface& vki, vk::VkPhysicalDevice physicalDevice, vk::VkSurfaceKHR surface, const tcu::UVec2& desiredSize, deUint32 desiredImageCount) getBasicSwapchainParameters() argument
[all...]
H A DvktWsiFullScreenExclusiveTests.cpp263 const tcu::UVec2& desiredSize, in getBasicSwapchainParameters()
281 ? capabilities.currentExtent : vk::makeExtent2D(desiredSize.x(), desiredSize.y())), in getBasicSwapchainParameters()
258 getBasicSwapchainParameters(Type wsiType, const InstanceInterface& vki, VkPhysicalDevice physicalDevice, VkSurfaceKHR surface, VkSurfaceFormatKHR surfaceFormat, const tcu::UVec2& desiredSize, deUint32 desiredImageCount) getBasicSwapchainParameters() argument
/third_party/node/test/parallel/
H A Dtest-whatwg-readablestream.js1130 assert.strictEqual(controller.desiredSize, 10);
1132 assert.strictEqual(controller.desiredSize, 0);
1145 assert.strictEqual(controller.desiredSize, 10);
1147 assert.strictEqual(controller.desiredSize, null);
1166 assert.strictEqual(controller.desiredSize, 1);
1168 assert.strictEqual(controller.desiredSize, 0);
1170 assert.strictEqual(controller.desiredSize, -1);
1172 assert.strictEqual(controller.desiredSize, -2);
1174 assert.strictEqual(controller.desiredSize, -3);
1192 assert.strictEqual(c.desiredSize,
[all...]
/third_party/node/test/fixtures/wpt/streams/readable-byte-streams/
H A Dgeneral.any.js43 let desiredSize;
58 desiredSize = controller.desiredSize;
68 assert_equals(desiredSize, 256, 'desiredSize should equal highWaterMark');
130 assert_equals(c.desiredSize, 10, 'desiredSize must start at the highWaterMark');
132 assert_equals(c.desiredSize, 0, 'after closing, desiredSize must be 0');
138 }, 'ReadableStream with byte source: desiredSize whe
[all...]
/third_party/vk-gl-cts/external/openglcts/modules/glesext/fragment_shading_rate/
H A DesextcFragmentShadingRateCombinedTests.cpp576 deUint32 desiredSize = ext.width * ext.height; in shadingRateExtentToClampedMask() local
580 while (desiredSize > 0) in shadingRateExtentToClampedMask()
588 if (fragmentSize.width * fragmentSize.height == desiredSize && in shadingRateExtentToClampedMask()
624 desiredSize /= 2; in shadingRateExtentToClampedMask()
/third_party/node/lib/internal/webstreams/
H A Dadapters.js436 if (controller.desiredSize <= 0)
952 if (controller.desiredSize <= 0)
H A Dtransformstream.js285 get desiredSize() {
332 desiredSize: kEnumerableProperty,
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/fragment_shading_rate/
H A DvktFragmentShadingRatePixelConsistency.cpp349 deUint32 desiredSize = m_data.shadingRate.width * m_data.shadingRate.height; in clampShadingRate() local
351 while (desiredSize > 0) in clampShadingRate()
372 supportedRate.fragmentSize.width * supportedRate.fragmentSize.height == desiredSize) in clampShadingRate()
407 desiredSize /= 2; in clampShadingRate()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/fragment_shading_rate/
H A DvktFragmentShadingRatePixelConsistency.cpp349 deUint32 desiredSize = m_data.shadingRate.width * m_data.shadingRate.height; in clampShadingRate() local
351 while (desiredSize > 0) in clampShadingRate()
372 supportedRate.fragmentSize.width * supportedRate.fragmentSize.height == desiredSize) in clampShadingRate()
407 desiredSize /= 2; in clampShadingRate()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/protected_memory/
H A DvktProtectedMemWsiSwapchainTests.cpp953 const tcu::UVec2& desiredSize, in getBasicSwapchainParameters()
975 ? capabilities.currentExtent : vk::makeExtent2D(desiredSize.x(), desiredSize.y())), in getBasicSwapchainParameters()
1309 const tcu::UVec2 desiredSize (256, 256); in basicRenderTest()
1310 const NativeObjects native (baseCtx, supportedExtensions, wsiType, tcu::just(desiredSize)); in basicRenderTest()
1319 desiredSize, in basicRenderTest()
949 getBasicSwapchainParameters(vk::wsi::Type wsiType, const vk::InstanceInterface& vki, vk::VkPhysicalDevice physicalDevice, vk::VkSurfaceKHR surface, const tcu::UVec2& desiredSize, deUint32 desiredImageCount) getBasicSwapchainParameters() argument
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/protected_memory/
H A DvktProtectedMemWsiSwapchainTests.cpp774 const tcu::UVec2& desiredSize, in getBasicSwapchainParameters()
796 ? capabilities.currentExtent : vk::makeExtent2D(desiredSize.x(), desiredSize.y())), in getBasicSwapchainParameters()
1130 const tcu::UVec2 desiredSize (256, 256); in basicRenderTest()
1131 const NativeObjects native (baseCtx, supportedExtensions, wsiType, tcu::just(desiredSize)); in basicRenderTest()
1140 desiredSize, in basicRenderTest()
770 getBasicSwapchainParameters(vk::wsi::Type wsiType, const vk::InstanceInterface& vki, vk::VkPhysicalDevice physicalDevice, vk::VkSurfaceKHR surface, const tcu::UVec2& desiredSize, deUint32 desiredImageCount) getBasicSwapchainParameters() argument
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/descriptor_indexing/
H A DvktDescriptorSetsIndexingTestsUtils.cpp588 VkDeviceSize desiredSize) in createBufferAndBind()
591 const VkDeviceSize roundedSize (deAlignSize(static_cast<size_t>(desiredSize), nonCoherentAtomSize)); in createBufferAndBind()
585 createBufferAndBind(ut::BufferHandleAllocSp& output, const vkt::Context& ctx, VkBufferUsageFlags usage, VkDeviceSize desiredSize) createBufferAndBind() argument
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/descriptor_indexing/
H A DvktDescriptorSetsIndexingTestsUtils.cpp588 VkDeviceSize desiredSize) in createBufferAndBind()
591 const VkDeviceSize roundedSize (deAlignSize(static_cast<size_t>(desiredSize), nonCoherentAtomSize)); in createBufferAndBind()
585 createBufferAndBind(ut::BufferHandleAllocSp& output, const vkt::Context& ctx, VkBufferUsageFlags usage, VkDeviceSize desiredSize) createBufferAndBind() argument

Completed in 32 milliseconds

12