Home
last modified time | relevance | path

Searched refs:desiredSize (Results 1 – 25 of 58) sorted by relevance

123

/third_party/node/test/fixtures/wpt/streams/readable-streams/
Dcount-queuing-strategy-integration.any.js23 assert_equals(controller.desiredSize, 0, '0 reads, 0 enqueues: desiredSize should be 0');
25 assert_equals(controller.desiredSize, -1, '0 reads, 1 enqueue: desiredSize should be -1');
27 assert_equals(controller.desiredSize, -2, '0 reads, 2 enqueues: desiredSize should be -2');
29 assert_equals(controller.desiredSize, -3, '0 reads, 3 enqueues: desiredSize should be -3');
31 assert_equals(controller.desiredSize, -4, '0 reads, 4 enqueues: desiredSize should be -4');
48 assert_equals(controller.desiredSize, -1, '3 reads, 4 enqueues: desiredSize should be -1');
50 assert_equals(controller.desiredSize, -2, '3 reads, 5 enqueues: desiredSize should be -2');
63 assert_equals(controller.desiredSize, 0, '5 reads, 5 enqueues: desiredSize should be 0');
65 assert_equals(controller.desiredSize, -1, '5 reads, 6 enqueues: desiredSize should be -1');
67 assert_equals(controller.desiredSize, -2, '5 reads, 7 enqueues: desiredSize should be -2');
[all …]
Dfloating-point-total-queue-size.any.js13 …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,
20 assert_equals(controller.desiredSize, 0 - Number.MAX_SAFE_INTEGER - 2 + 2,
25 …assert_equals(controller.desiredSize, 0, '[[queueTotalSize]] must clamp to 0 if it becomes negativ…
33 …assert_equals(controller.desiredSize, 0 - 1e-16, 'desiredSize must be -1e16 after enqueueing such …
36 assert_equals(controller.desiredSize, 0 - 1e-16 - 1,
40 assert_equals(controller.desiredSize, 0 - 1e-16 - 1 + 1e-16,
45 …assert_equals(controller.desiredSize, 0, '[[queueTotalSize]] must clamp to 0 if it becomes negativ…
53 …assert_equals(controller.desiredSize, 0 - 1e-16, 'desiredSize must be -2e16 after enqueueing such …
56 assert_equals(controller.desiredSize, 0 - 1e-16 - 1,
[all …]
Dgeneral.any.js673 assert_equals(c.desiredSize, 10, 'desiredSize must start at highWaterMark');
675 assert_equals(c.desiredSize, 0, 'after closing, desiredSize must be 0');
685 assert_equals(c.desiredSize, 10, 'desiredSize must start at highWaterMark');
687 assert_equals(c.desiredSize, null, 'after erroring, desiredSize must be null');
723 assert_equals(c.desiredSize, 1);
725 assert_equals(c.desiredSize, 0);
727 assert_equals(c.desiredSize, -1);
729 assert_equals(c.desiredSize, -2);
731 assert_equals(c.desiredSize, -3);
751 assert_equals(controller.desiredSize, 1, 'desiredSize should start at 1');
[all …]
/third_party/node/test/fixtures/wpt/streams/writable-streams/
Dcount-queuing-strategy.any.js27 assert_equals(writer.desiredSize, 0, 'desiredSize should be initially 0');
30 assert_equals(writer.desiredSize, -1, 'desiredSize should be -1 after 1st write()');
33 assert_equals(writer.desiredSize, -2, 'desiredSize should be -2 after 2nd write()');
38 assert_equals(writer.desiredSize, -1, 'desiredSize should be -1 after completing 1st write()');
43 assert_equals(writer.desiredSize, 0, 'desiredSize should be 0 after completing 2nd write()');
46 assert_equals(writer.desiredSize, -1, 'desiredSize should be -1 after 3rd write()');
51 assert_equals(writer.desiredSize, 0, 'desiredSize should be 0 after completing 3rd write()');
75 assert_equals(writer.desiredSize, 4, 'desiredSize should be initially 4');
78 assert_equals(writer.desiredSize, 3, 'desiredSize should be 3 after 1st write()');
81 assert_equals(writer.desiredSize, 2, 'desiredSize should be 2 after 2nd write()');
[all …]
Dfloating-point-total-queue-size.any.js17 assert_equals(writer.desiredSize, 0 - 2 - Number.MAX_SAFE_INTEGER,
21 … assert_equals(writer.desiredSize, 0, '[[queueTotalSize]] must clamp to 0 if it becomes negative');
33 assert_equals(writer.desiredSize, 0 - 1e-16 - 1,
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,
54 assert_equals(writer.desiredSize, 0 - 1e-16 - 1 - 2e-16 + 1e-16 + 1 + 2e-16,
67 assert_equals(writer.desiredSize, 0 - 2e-16 - 1,
71 assert_equals(writer.desiredSize, 0 - 2e-16 - 1 + 2e-16 + 1,
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 should be 0');
130 assert_equals(writer.desiredSize, -1, 'desiredSize should be -1');
134 assert_equals(writer.desiredSize, -1, 'desiredSize should still be -1');
Dconstructor.any.js23 assert_equals(writer.desiredSize, null, 'desiredSize should be null');
66 assert_equals(writer.desiredSize, 1000, 'desiredSize should be 1000');
80 assert_equals(writer.desiredSize, Infinity, 'desiredSize should be Infinity');
108 assert_equals(writer.desiredSize, 1, 'desiredSize should start at 1');
Dgeneral.any.js9 assert_throws_js(TypeError, () => writer.desiredSize, 'desiredSize should throw a TypeError');
17 assert_equals(writer.desiredSize, 1, 'desiredSize should be 1');
28 assert_equals(writer.desiredSize, 0, 'desiredSize should be 0');
40 assert_equals(writer.desiredSize, null, 'desiredSize should be null');
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');
Dclose.any.js131 assert_equals(writer.desiredSize, 1, 'desiredSize should be 1');
134 assert_equals(writer.desiredSize, 1, 'desiredSize should be still 1');
155 assert_equals(writer.desiredSize, 0, 'desiredSize should be 0');
257 assert_equals(ws.getWriter().desiredSize, 0, 'desiredSize should be 0');
/third_party/skia/src/codec/
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->width()), in computeSampleSize()
219 std::max(1, desiredSize->height())); in computeSampleSize()
226 int sampleX = origDims.width() / desiredSize->width(); in computeSampleSize()
227 int sampleY = origDims.height() / desiredSize->height(); in computeSampleSize()
[all …]
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/transform-streams/
Dstrategies.any.js12 assert_equals(ts.writable.getWriter().desiredSize, 17, 'desiredSize should be 17');
66 assert_equals(writer.desiredSize, 1, 'default writable HWM is 1');
68 assert_equals(writer.desiredSize, 0, 'default chunk size is 1');
75 assert_equals(controller.desiredSize, 0, 'desiredSize should be 0');
78 assert_equals(controller.desiredSize, 0, 'desiredSize should still be 0');
80 assert_equals(controller.desiredSize, -1, 'desiredSize should be -1');
108 assert_equals(writer.desiredSize, 42, 'writable HWM is 42');
114 assert_equals(controller.desiredSize, 42, 'desiredSize should be 42');
Dbackpressure.any.js115 assert_equals(writer.desiredSize, 1, 'desiredSize should be 1');
119 assert_equals(writer.desiredSize, 0, 'desiredSize should be 0');
122 assert_equals(writer.desiredSize, 0, 'desiredSize should still be 0');
126 assert_equals(writer.desiredSize, 1, 'desiredSize should be 1');
/third_party/node/test/fixtures/wpt/streams/piping/
Dflow-control.any.js64 assert_equals(writer.desiredSize, 0, 'after writing the writer\'s desiredSize must be 0');
102 assert_equals(writer.desiredSize, 0, 'after writing the writer\'s desiredSize must be 0');
147 assert_equals(writer.desiredSize, 2, 'after writing the writer\'s desiredSize must be 2');
207 desiredSizes.push(controller.desiredSize);
241 assert_equals(rs.controller.desiredSize, 1, 'at step 2, the current desiredSize must be 1');
253 assert_equals(rs.controller.desiredSize, 0, 'at step 4, the current desiredSize must be 0');
265 … assert_equals(rs.controller.desiredSize, -1, 'at step 6, the current desiredSize must be -1');
276 … assert_equals(rs.controller.desiredSize, -2, 'at step 8, the current desiredSize must be -2');
284 … assert_equals(rs.controller.desiredSize, -1, 'at step 10, the current desiredSize must be -1');
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/wsi/
DvktWsiColorSpaceTests.cpp283 const tcu::UVec2& desiredSize, in getBasicSwapchainParameters() argument
319 …TCH_WINDOW_SIZE ? capabilities.currentExtent : vk::makeExtent2D(desiredSize.x(), desiredSize.y())), in getBasicSwapchainParameters()
419 const tcu::UVec2 desiredSize (256, 256); in basicExtensionTest() local
421 …Objects native (context, instHelper.supportedExtensions, wsiType, 1u, tcu::just(desiredSize)); in basicExtensionTest()
460 const tcu::UVec2 desiredSize (256, 256); in colorspaceCompareTest() local
462 …s native (context, instHelper.supportedExtensions, params.wsiType, tcu::just(desiredSize)); in colorspaceCompareTest()
506 desiredSize, in colorspaceCompareTest()
594 allocator, desiredSize, textureFormat, in colorspaceCompareTest()
601 allocator, desiredSize, textureFormat, in colorspaceCompareTest()
630 const tcu::UVec2 desiredSize (256, 256); in surfaceFormatRenderTest() local
[all …]
DvktWsiSwapchainTests.cpp959 const tcu::UVec2 desiredSize (256, 256); in testImageSwapchainCreateInfo() local
961 …Objects 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() argument
1148 ? capabilities.currentExtent : vk::makeExtent2D(desiredSize.x(), desiredSize.y())), in getBasicSwapchainParameters()
1293 const tcu::UVec2 desiredSize (256, 256); in basicRenderTest() local
1295 …ects native (context, instHelper.supportedExtensions, wsiType, 1u, tcu::just(desiredSize)); in basicRenderTest()
1301 …icSwapchainParameters(wsiType, instHelper.vki, devHelper.physicalDevice, *surface, desiredSize, 2); in basicRenderTest()
[all …]
DvktWsiPresentIdWaitTests.cpp266 const tcu::UVec2& desiredSize, in getBasicSwapchainParameters() argument
287 ? capabilities.currentExtent : vk::makeExtent2D(desiredSize.x(), desiredSize.y())), in getBasicSwapchainParameters()
393 const tcu::UVec2 desiredSize (256, 256); in iterate() local
395 … native (m_context, instHelper.supportedExtensions, m_wsiType, 1u, tcu::just(desiredSize)); in iterate()
401 …SwapchainParameters(m_wsiType, instHelper.vki, devHelper.physicalDevice, *surface, desiredSize, 2); in iterate()
916 const tcu::UVec2 desiredSize (256, 256); in iterate() local
918 … native (m_context, instHelper.supportedExtensions, m_wsiType, 2u, tcu::just(desiredSize)); in iterate()
925 …ainParameters(m_wsiType, instHelper.vki, devHelper.physicalDevice, surface1.get(), desiredSize, 2); in iterate()
926 …ainParameters(m_wsiType, instHelper.vki, devHelper.physicalDevice, surface2.get(), desiredSize, 2); in iterate()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/wsi/
DvktWsiColorSpaceTests.cpp283 const tcu::UVec2& desiredSize, in getBasicSwapchainParameters() argument
319 …TCH_WINDOW_SIZE ? capabilities.currentExtent : vk::makeExtent2D(desiredSize.x(), desiredSize.y())), in getBasicSwapchainParameters()
419 const tcu::UVec2 desiredSize (256, 256); in basicExtensionTest() local
421 …Objects native (context, instHelper.supportedExtensions, wsiType, 1u, tcu::just(desiredSize)); in basicExtensionTest()
460 const tcu::UVec2 desiredSize (256, 256); in colorspaceCompareTest() local
462 …s native (context, instHelper.supportedExtensions, params.wsiType, tcu::just(desiredSize)); in colorspaceCompareTest()
506 desiredSize, in colorspaceCompareTest()
594 allocator, desiredSize, textureFormat, in colorspaceCompareTest()
601 allocator, desiredSize, textureFormat, in colorspaceCompareTest()
630 const tcu::UVec2 desiredSize (256, 256); in surfaceFormatRenderTest() local
[all …]
DvktWsiSwapchainTests.cpp959 const tcu::UVec2 desiredSize (256, 256); in testImageSwapchainCreateInfo() local
961 …Objects 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() argument
1148 ? capabilities.currentExtent : vk::makeExtent2D(desiredSize.x(), desiredSize.y())), in getBasicSwapchainParameters()
1293 const tcu::UVec2 desiredSize (256, 256); in basicRenderTest() local
1295 …ects native (context, instHelper.supportedExtensions, wsiType, 1u, tcu::just(desiredSize)); in basicRenderTest()
1301 …icSwapchainParameters(wsiType, instHelper.vki, devHelper.physicalDevice, *surface, desiredSize, 2); in basicRenderTest()
[all …]
DvktWsiPresentIdWaitTests.cpp266 const tcu::UVec2& desiredSize, in getBasicSwapchainParameters() argument
287 ? capabilities.currentExtent : vk::makeExtent2D(desiredSize.x(), desiredSize.y())), in getBasicSwapchainParameters()
393 const tcu::UVec2 desiredSize (256, 256); in iterate() local
395 … native (m_context, instHelper.supportedExtensions, m_wsiType, 1u, tcu::just(desiredSize)); in iterate()
401 …SwapchainParameters(m_wsiType, instHelper.vki, devHelper.physicalDevice, *surface, desiredSize, 2); in iterate()
916 const tcu::UVec2 desiredSize (256, 256); in iterate() local
918 … native (m_context, instHelper.supportedExtensions, m_wsiType, 2u, tcu::just(desiredSize)); in iterate()
925 …ainParameters(m_wsiType, instHelper.vki, devHelper.physicalDevice, surface1.get(), desiredSize, 2); in iterate()
926 …ainParameters(m_wsiType, instHelper.vki, devHelper.physicalDevice, surface2.get(), desiredSize, 2); in iterate()
/third_party/node/test/parallel/
Dtest-whatwg-writablestream.js100 assert(typeof writer.desiredSize, 'number');
150 assert.strictEqual(writer.desiredSize, 0);
152 assert.strictEqual(writer.desiredSize, 1);
252 assert.strictEqual(writer.desiredSize, null);
253 setImmediate(() => assert.strictEqual(writer.desiredSize, null));
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, 1);
[all …]
/third_party/node/test/fixtures/wpt/interfaces/
Dstreams.idl97 readonly attribute unrestricted double? desiredSize;
107 readonly attribute unrestricted double? desiredSize;
151 readonly attribute unrestricted double? desiredSize;
189 readonly attribute unrestricted double? desiredSize;
/third_party/node/test/fixtures/wpt/streams/readable-byte-streams/
Dgeneral.any.js43 let desiredSize; variable
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');
143 assert_equals(c.desiredSize, 10, 'desiredSize must start at the highWaterMark');
145 assert_equals(c.desiredSize, null, 'after erroring, desiredSize must be null');
506 desiredSizeInStart = c.desiredSize;
513 desiredSizeInPull = controller.desiredSize;
732 desiredSizes.push(controller.desiredSize);
[all …]

123