/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/ |
D | D3DTextureTest.cpp | 738 const size_t bufferSize = 32; in TEST_P() local 741 createPBuffer(bufferSize, bufferSize, EGL_NO_TEXTURE, EGL_NO_TEXTURE, 1, 0); in TEST_P() 749 glViewport(0, 0, static_cast<GLsizei>(bufferSize), static_cast<GLsizei>(bufferSize)); in TEST_P() 754 EXPECT_PIXEL_EQ(static_cast<GLint>(bufferSize) / 2, static_cast<GLint>(bufferSize) / 2, 255, 0, in TEST_P() 774 const size_t bufferSize = 32; in TEST_P() local 777 createPBuffer(bufferSize, bufferSize, EGL_NO_TEXTURE, EGL_NO_TEXTURE, 1, 0); in TEST_P() 785 glViewport(0, 0, static_cast<GLsizei>(bufferSize), static_cast<GLsizei>(bufferSize)); in TEST_P() 801 EXPECT_PIXEL_COLOR_EQ(static_cast<GLint>(bufferSize) / 2, static_cast<GLint>(bufferSize) / 2, in TEST_P() 806 EXPECT_PIXEL_COLOR_EQ(static_cast<GLint>(bufferSize) / 2, static_cast<GLint>(bufferSize) / 2, in TEST_P() 825 const size_t bufferSize = 32; in TEST_P() local [all …]
|
/third_party/skia/tests/ |
D | FrontBufferedStreamTest.cpp | 57 static void test_incremental_buffering(skiatest::Reporter* reporter, size_t bufferSize) { in test_incremental_buffering() argument 64 std::unique_ptr<SkStream>(memStream), bufferSize); in test_incremental_buffering() 69 test_read(reporter, bufferedStream.get(), gAbcs, bufferSize / 2); in test_incremental_buffering() 74 test_read(reporter, bufferedStream.get(), gAbcs, bufferSize / 4); in test_incremental_buffering() 77 test_read(reporter, bufferedStream.get(), gAbcs + bufferSize / 4, bufferSize / 2); in test_incremental_buffering() 82 test_read(reporter, bufferedStream.get(), gAbcs, bufferSize << 1); in test_incremental_buffering() 90 static void test_perfectly_sized_buffer(skiatest::Reporter* reporter, size_t bufferSize) { in test_perfectly_sized_buffer() argument 93 std::unique_ptr<SkStream>(memStream), bufferSize); in test_perfectly_sized_buffer() 97 test_read(reporter, bufferedStream.get(), gAbcs, bufferSize); in test_perfectly_sized_buffer() 103 test_read(reporter, bufferedStream.get(), gAbcs, bufferSize); in test_perfectly_sized_buffer() [all …]
|
/third_party/flutter/skia/tests/ |
D | FrontBufferedStreamTest.cpp | 53 static void test_incremental_buffering(skiatest::Reporter* reporter, size_t bufferSize) { in test_incremental_buffering() argument 60 bufferSize); in test_incremental_buffering() 64 test_read(reporter, bufferedStream.get(), gAbcs, bufferSize / 2); in test_incremental_buffering() 69 test_read(reporter, bufferedStream.get(), gAbcs, bufferSize / 4); in test_incremental_buffering() 72 test_read(reporter, bufferedStream.get(), gAbcs + bufferSize / 4, bufferSize / 2); in test_incremental_buffering() 77 test_read(reporter, bufferedStream.get(), gAbcs, bufferSize << 1); in test_incremental_buffering() 85 static void test_perfectly_sized_buffer(skiatest::Reporter* reporter, size_t bufferSize) { in test_perfectly_sized_buffer() argument 88 bufferSize); in test_perfectly_sized_buffer() 92 test_read(reporter, bufferedStream.get(), gAbcs, bufferSize); in test_perfectly_sized_buffer() 98 test_read(reporter, bufferedStream.get(), gAbcs, bufferSize); in test_perfectly_sized_buffer() [all …]
|
/third_party/flutter/skia/third_party/externals/angle2/src/tests/gl_tests/ |
D | D3DTextureTest.cpp | 743 const size_t bufferSize = 32; in TEST_P() local 746 createPBuffer(bufferSize, bufferSize, EGL_NO_TEXTURE, EGL_NO_TEXTURE, 1, 0); in TEST_P() 754 glViewport(0, 0, static_cast<GLsizei>(bufferSize), static_cast<GLsizei>(bufferSize)); in TEST_P() 759 EXPECT_PIXEL_EQ(static_cast<GLint>(bufferSize) / 2, static_cast<GLint>(bufferSize) / 2, 255, 0, in TEST_P() 779 const size_t bufferSize = 32; in TEST_P() local 782 createPBuffer(bufferSize, bufferSize, EGL_NO_TEXTURE, EGL_NO_TEXTURE, 1, 0); in TEST_P() 790 glViewport(0, 0, static_cast<GLsizei>(bufferSize), static_cast<GLsizei>(bufferSize)); in TEST_P() 806 EXPECT_PIXEL_COLOR_EQ(static_cast<GLint>(bufferSize) / 2, static_cast<GLint>(bufferSize) / 2, in TEST_P() 811 EXPECT_PIXEL_COLOR_EQ(static_cast<GLint>(bufferSize) / 2, static_cast<GLint>(bufferSize) / 2, in TEST_P() 830 const size_t bufferSize = 32; in TEST_P() local [all …]
|
/third_party/protobuf/csharp/src/Google.Protobuf/ |
D | SegmentedBufferHelper.cs | 163 …return state.bufferPos == state.bufferSize && !state.segmentedBufferHelper.RefillBuffer(ref buffer… in IsAtEnd() 170 if (state.totalBytesRetired + state.bufferSize == state.currentLimit) in RefillFromReadOnlySequence() 183 state.totalBytesRetired += state.bufferSize; in RefillFromReadOnlySequence() 186 state.bufferSize = 0; in RefillFromReadOnlySequence() 190 state.bufferSize = buffer.Length; in RefillFromReadOnlySequence() 197 if (state.bufferSize == 0) in RefillFromReadOnlySequence() 212 state.totalBytesRetired + state.bufferSize + state.bufferSizeAfterLimit; in RefillFromReadOnlySequence() 225 if (state.totalBytesRetired + state.bufferSize == state.currentLimit) in RefillFromCodedInputStream() 240 state.totalBytesRetired += state.bufferSize; in RefillFromCodedInputStream() 243 …state.bufferSize = (input == null) ? 0 : input.Read(codedInputStream.InternalBuffer, 0, buffer.Len… in RefillFromCodedInputStream() [all …]
|
D | ParsingPrimitives.cs | 86 if (state.bufferPos + 2 <= state.bufferSize) in ParseTag() 166 if (state.bufferPos + 10 > state.bufferSize) in ParseRawVarint64() 220 if (state.bufferPos + 5 > state.bufferSize) in ParseRawVarint32() 329 if (state.bufferPos + ulongLength > state.bufferSize) in ParseRawLittleEndian32() 355 if (state.bufferPos + length > state.bufferSize) in ParseRawLittleEndian64() 384 if (!BitConverter.IsLittleEndian || state.bufferPos + length > state.bufferSize) in ParseDouble() 400 if (!BitConverter.IsLittleEndian || state.bufferPos + length > state.bufferSize) in ParseFloat() 441 if (size <= state.bufferSize - state.bufferPos) in ReadRawBytes() 479 int pos = state.bufferSize - state.bufferPos; in ReadRawBytesSlow() 483 state.bufferPos = state.bufferSize; in ReadRawBytesSlow() [all …]
|
/third_party/skia/third_party/externals/dawn/src/tests/end2end/ |
D | ComputeStorageBufferBarrierTests.cpp | 30 uint64_t bufferSize = static_cast<uint64_t>(data.size() * sizeof(uint32_t)); in TEST_P() local 32 device, data.data(), bufferSize, wgpu::BufferUsage::Storage | wgpu::BufferUsage::CopySrc); in TEST_P() 53 utils::MakeBindGroup(device, pipeline.GetBindGroupLayout(0), {{0, buffer, 0, bufferSize}}); in TEST_P() 76 uint64_t bufferSize = static_cast<uint64_t>(data.size() * sizeof(uint32_t)); in TEST_P() local 79 device, data.data(), bufferSize, wgpu::BufferUsage::Storage | wgpu::BufferUsage::CopySrc); in TEST_P() 82 device, data.data(), bufferSize, wgpu::BufferUsage::Storage | wgpu::BufferUsage::CopySrc); in TEST_P() 105 {0, bufferA, 0, bufferSize}, in TEST_P() 106 {1, bufferB, 0, bufferSize}, in TEST_P() 111 {0, bufferB, 0, bufferSize}, in TEST_P() 112 {1, bufferA, 0, bufferSize}, in TEST_P() [all …]
|
/third_party/skia/third_party/externals/dawn/src/tests/white_box/ |
D | BufferAllocatedSizeTests.cpp | 54 const uint32_t bufferSize = kMinBufferSize; in TEST_P() local 55 wgpu::Buffer buffer = CreateBuffer(wgpu::BufferUsage::Uniform, bufferSize); in TEST_P() 57 Align(bufferSize, requiredBufferAlignment)); in TEST_P() 63 const uint32_t bufferSize = std::max(1u + requiredBufferAlignment, kMinBufferSize); in TEST_P() local 65 CreateBuffer(wgpu::BufferUsage::Uniform | wgpu::BufferUsage::Storage, bufferSize); in TEST_P() 67 Align(bufferSize, requiredBufferAlignment)); in TEST_P() 72 const uint32_t bufferSize = kMinBufferSize; in TEST_P() local 74 CreateBuffer(wgpu::BufferUsage::Uniform | wgpu::BufferUsage::Storage, bufferSize); in TEST_P() 76 Align(bufferSize, requiredBufferAlignment)); in TEST_P()
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/ |
D | TextureCopySplitter.cpp | 76 copy.copies[0].bufferSize = copySize; in Compute2DTextureCopySubresource() 143 copy.copies[0].bufferSize.width = copySize.width + texelOffset.x; in Compute2DTextureCopySubresource() 144 copy.copies[0].bufferSize.height = copySize.height + texelOffset.y; in Compute2DTextureCopySubresource() 145 copy.copies[0].bufferSize.depthOrArrayLayers = copySize.depthOrArrayLayers; in Compute2DTextureCopySubresource() 196 copy.copies[0].bufferSize.width = texelsPerRow; in Compute2DTextureCopySubresource() 197 copy.copies[0].bufferSize.height = copySize.height + texelOffset.y; in Compute2DTextureCopySubresource() 198 copy.copies[0].bufferSize.depthOrArrayLayers = copySize.depthOrArrayLayers; in Compute2DTextureCopySubresource() 220 copy.copies[1].bufferSize.width = copy.copies[1].copySize.width + texelOffsetForCopy1.x; in Compute2DTextureCopySubresource() 221 copy.copies[1].bufferSize.height = copySize.height + texelOffsetForCopy1.y; in Compute2DTextureCopySubresource() 222 copy.copies[1].bufferSize.depthOrArrayLayers = copySize.depthOrArrayLayers; in Compute2DTextureCopySubresource() [all …]
|
/third_party/bounds_checking_function/src/ |
D | gets_s.c | 55 size_t bufferSize = ((destMax == (size_t)(-1)) ? SECUREC_STRING_MAX_LEN : destMax); in gets_s() local 57 size_t bufferSize = destMax; in gets_s() 60 if (buffer == NULL || bufferSize == 0 || bufferSize > SECUREC_STRING_MAX_LEN) { in gets_s() 65 if (fgets(buffer, (int)bufferSize, SECUREC_STREAM_STDIN) != NULL) { in gets_s() 66 SecTrimCRLF(buffer, bufferSize); in gets_s()
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/ |
D | PersistentCache.cpp | 33 blob.bufferSize = mCache->LoadData(ToAPI(mDevice), key.data(), key.size(), nullptr, 0); in LoadData() 34 if (blob.bufferSize > 0) { in LoadData() 35 blob.buffer.reset(new uint8_t[blob.bufferSize]); in LoadData() 36 const size_t bufferSize = mCache->LoadData(ToAPI(mDevice), key.data(), key.size(), in LoadData() local 37 blob.buffer.get(), blob.bufferSize); in LoadData() 38 ASSERT(bufferSize == blob.bufferSize); in LoadData()
|
/third_party/skia/third_party/externals/oboe/apps/OboeTester/app/src/main/java/com/google/sample/oboe/manualtest/ |
D | AudioStreamBase.java | 33 status.bufferSize = getBufferSizeInFrames(); in getStreamStatus() 48 public int bufferSize; field in AudioStreamBase.StreamStatus 60 if (bufferSize < 0 || framesWritten < 0) { in dump() 81 if (bufferSize < 0) { in dump() 84 int numBuffers = bufferSize / framesPerBurst; in dump() 85 int remainder = bufferSize - (numBuffers * framesPerBurst); in dump() 86 … buffer.append(bufferSize + " = (" + numBuffers + " * " + framesPerBurst + ") + " + remainder); in dump() 151 public int setBufferSizeInFrames(int bufferSize) { in setBufferSizeInFrames() argument
|
/third_party/skia/third_party/externals/dng_sdk/source/ |
D | dng_resample.cpp | 99 uint32 bufferSize = 0; in Initialize() local 101 !SafeUint32Mult(dstEntries, sizeof(int32), &bufferSize)) { in Initialize() 105 fCoords.Reset (allocator.Allocate (bufferSize)); in Initialize() 188 uint32 bufferSize = 0; in Initialize() local 190 if (!SafeUint32Mult (fWeightStep, kResampleSubsampleCount, &bufferSize) || in Initialize() 191 !SafeUint32Mult (bufferSize, (uint32) sizeof (real32), &bufferSize)) in Initialize() 198 fWeights32.Reset (allocator.Allocate (bufferSize)); in Initialize() 203 if (!SafeUint32Mult (fWeightStep, kResampleSubsampleCount, &bufferSize) || in Initialize() 204 !SafeUint32Mult (bufferSize, (uint32) sizeof (int16), &bufferSize)) in Initialize() 211 fWeights16.Reset (allocator.Allocate (bufferSize)); in Initialize() [all …]
|
/third_party/skia/third_party/externals/expat/expat/tests/benchmark/ |
D | benchmark.c | 65 int nrOfLoops, bufferSize, fileSize, i, isFinal; in main() local 94 bufferSize = atoi(argv[j + 2]); in main() 96 if (bufferSize <= 0 || nrOfLoops <= 0) { in main() 118 if (parseBufferSize <= bufferSize) in main() 121 parseBufferSize = bufferSize; in main() 133 XMLBufPtr += bufferSize; in main() 145 nrOfLoops, bufferSize, cpuTime / (double)nrOfLoops); in main()
|
/third_party/expat/tests/benchmark/ |
D | benchmark.c | 65 int nrOfLoops, bufferSize, fileSize, i, isFinal; in main() local 94 bufferSize = atoi(argv[j + 2]); in main() 96 if (bufferSize <= 0 || nrOfLoops <= 0) { in main() 118 if (parseBufferSize <= bufferSize) in main() 121 parseBufferSize = bufferSize; in main() 133 XMLBufPtr += bufferSize; in main() 145 nrOfLoops, bufferSize, cpuTime / (double)nrOfLoops); in main()
|
/third_party/flutter/skia/third_party/externals/dawn/src/dawn_native/d3d12/ |
D | TextureCopySplitter.cpp | 62 copy.copies[0].bufferSize = copySize; in ComputeTextureCopySplit() 109 copy.copies[0].bufferSize.width = copySize.width + texelOffset.x; in ComputeTextureCopySplit() 110 copy.copies[0].bufferSize.height = imageHeight + texelOffset.y; in ComputeTextureCopySplit() 111 copy.copies[0].bufferSize.depth = copySize.depth + texelOffset.z; in ComputeTextureCopySplit() 161 copy.copies[0].bufferSize.width = texelsPerRow; in ComputeTextureCopySplit() 162 copy.copies[0].bufferSize.height = imageHeight + texelOffset.y; in ComputeTextureCopySplit() 163 copy.copies[0].bufferSize.depth = copySize.depth + texelOffset.z; in ComputeTextureCopySplit() 177 copy.copies[1].bufferSize.width = copy.copies[1].copySize.width; in ComputeTextureCopySplit() 178 copy.copies[1].bufferSize.height = imageHeight + texelOffset.y + format.blockHeight; in ComputeTextureCopySplit() 179 copy.copies[1].bufferSize.depth = copySize.depth + texelOffset.z; in ComputeTextureCopySplit()
|
/third_party/node/deps/icu-small/source/tools/toolutil/ |
D | flagparser.cpp | 18 static int32_t extractFlag(char* buffer, int32_t bufferSize, char* flag, int32_t flagSize, const ch… 19 static int32_t getFlagOffset(const char *buffer, int32_t bufferSize); 117 static int32_t extractFlag(char* buffer, int32_t bufferSize, char* flag, int32_t flagSize, const ch… in extractFlag() argument 125 offset = getFlagOffset(buffer, bufferSize); in extractFlag() 165 static int32_t getFlagOffset(const char *buffer, int32_t bufferSize) { in getFlagOffset() argument 168 for (offset = 0; offset < bufferSize;offset++) { in getFlagOffset() 175 if (offset == bufferSize || (offset - 1) == bufferSize) { in getFlagOffset()
|
/third_party/icu/icu4c/source/tools/toolutil/ |
D | flagparser.cpp | 18 static int32_t extractFlag(char* buffer, int32_t bufferSize, char* flag, int32_t flagSize, const ch… 19 static int32_t getFlagOffset(const char *buffer, int32_t bufferSize); 117 static int32_t extractFlag(char* buffer, int32_t bufferSize, char* flag, int32_t flagSize, const ch… in extractFlag() argument 125 offset = getFlagOffset(buffer, bufferSize); in extractFlag() 165 static int32_t getFlagOffset(const char *buffer, int32_t bufferSize) { in getFlagOffset() argument 168 for (offset = 0; offset < bufferSize;offset++) { in getFlagOffset() 175 if (offset == bufferSize || (offset - 1) == bufferSize) { in getFlagOffset()
|
/third_party/flutter/skia/third_party/externals/icu/source/tools/toolutil/ |
D | flagparser.cpp | 18 static int32_t extractFlag(char* buffer, int32_t bufferSize, char* flag, int32_t flagSize, const ch… 19 static int32_t getFlagOffset(const char *buffer, int32_t bufferSize); 117 static int32_t extractFlag(char* buffer, int32_t bufferSize, char* flag, int32_t flagSize, const ch… in extractFlag() argument 125 offset = getFlagOffset(buffer, bufferSize); in extractFlag() 165 static int32_t getFlagOffset(const char *buffer, int32_t bufferSize) { in getFlagOffset() argument 168 for (offset = 0; offset < bufferSize;offset++) { in getFlagOffset() 175 if (offset == bufferSize || (offset - 1) == bufferSize) { in getFlagOffset()
|
/third_party/skia/third_party/externals/icu/source/tools/toolutil/ |
D | flagparser.cpp | 18 static int32_t extractFlag(char* buffer, int32_t bufferSize, char* flag, int32_t flagSize, const ch… 19 static int32_t getFlagOffset(const char *buffer, int32_t bufferSize); 117 static int32_t extractFlag(char* buffer, int32_t bufferSize, char* flag, int32_t flagSize, const ch… in extractFlag() argument 125 offset = getFlagOffset(buffer, bufferSize); in extractFlag() 165 static int32_t getFlagOffset(const char *buffer, int32_t bufferSize) { in getFlagOffset() argument 168 for (offset = 0; offset < bufferSize;offset++) { in getFlagOffset() 175 if (offset == bufferSize || (offset - 1) == bufferSize) { in getFlagOffset()
|
/third_party/node/benchmark/fs/ |
D | bench-opendir.js | 11 bufferSize: [ 4, 32, 1024 ] property 14 async function main({ n, dir, mode, bufferSize }) { field 22 const dir = await fs.promises.opendir(fullPath, { bufferSize }); field 27 const dir = await fs.promises.opendir(fullPath, { bufferSize }); field 45 const dir = fs.opendirSync(fullPath, { bufferSize }); field
|
/third_party/skia/third_party/externals/sfntly/java/test/com/google/typography/font/sfntly/data/ |
D | FontDataTests.java | 155 for (int bufferSize = 1; bufferSize < length; bufferSize += increments) { in slicingWriteTest() 157 writeFontDataWithBuffer(rfd.slice(trim, length), slice, bufferSize); in slicingWriteTest() local 184 for (int bufferSize = 1; bufferSize <= length; bufferSize += increments) { in readComparison() 185 b1 = readFontDataWithBuffer(rfd1, bufferSize); in readComparison() 186 b2 = readFontDataWithBuffer(rfd2, bufferSize); in readComparison() 200 private static byte[] readFontDataWithBuffer(ReadableFontData rfd, int bufferSize) { in readFontDataWithBuffer() argument 201 byte[] buffer = new byte[bufferSize]; in readFontDataWithBuffer() 235 ReadableFontData rfd, WritableFontData wfd, int bufferSize) { in writeFontDataWithBuffer() argument 236 byte[] buffer = new byte[bufferSize]; in writeFontDataWithBuffer()
|
/third_party/flutter/skia/third_party/externals/sfntly/java/test/com/google/typography/font/sfntly/data/ |
D | FontDataTests.java | 155 for (int bufferSize = 1; bufferSize < length; bufferSize += increments) { in slicingWriteTest() 157 writeFontDataWithBuffer(rfd.slice(trim, length), slice, bufferSize); in slicingWriteTest() local 184 for (int bufferSize = 1; bufferSize <= length; bufferSize += increments) { in readComparison() 185 b1 = readFontDataWithBuffer(rfd1, bufferSize); in readComparison() 186 b2 = readFontDataWithBuffer(rfd2, bufferSize); in readComparison() 200 private static byte[] readFontDataWithBuffer(ReadableFontData rfd, int bufferSize) { in readFontDataWithBuffer() argument 201 byte[] buffer = new byte[bufferSize]; in readFontDataWithBuffer() 235 ReadableFontData rfd, WritableFontData wfd, int bufferSize) { in writeFontDataWithBuffer() argument 236 byte[] buffer = new byte[bufferSize]; in writeFontDataWithBuffer()
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d9/ |
D | IndexBuffer9.cpp | 31 unsigned int bufferSize, in initialize() argument 39 if (bufferSize > 0) in initialize() 62 mRenderer->createIndexBuffer(bufferSize, usageFlags, format, &mIndexBuffer); in initialize() 67 mBufferSize = bufferSize; in initialize() 111 unsigned int bufferSize, in setSize() argument 114 if (bufferSize > mBufferSize || indexType != mIndexType) in setSize() 116 return initialize(context, bufferSize, indexType, mDynamic); in setSize()
|
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d9/ |
D | IndexBuffer9.cpp | 31 unsigned int bufferSize, in initialize() argument 39 if (bufferSize > 0) in initialize() 62 mRenderer->createIndexBuffer(bufferSize, usageFlags, format, &mIndexBuffer); in initialize() 67 mBufferSize = bufferSize; in initialize() 111 unsigned int bufferSize, in setSize() argument 114 if (bufferSize > mBufferSize || indexType != mIndexType) in setSize() 116 return initialize(context, bufferSize, indexType, mDynamic); in setSize()
|