Home
last modified time | relevance | path

Searched refs:sizeInBytes (Results 1 – 25 of 60) sorted by relevance

123

/third_party/skia/src/gpu/mtl/
DGrMtlBuffer.mm84 bool GrMtlBuffer::onUpdateData(const void* src, size_t sizeInBytes) {
89 if (sizeInBytes > this->size()) {
94 this->internalMap(sizeInBytes);
98 memcpy(fMapPtr, src, sizeInBytes);
99 this->internalUnmap(sizeInBytes);
104 sizeInBytes, this->mtlGpu()->mtlCaps().getMinBufferAlignment());
108 memcpy(slice.fOffsetMapPtr, src, sizeInBytes);
121 size: sizeInBytes];
149 void GrMtlBuffer::internalMap(size_t sizeInBytes) {
152 SkASSERT(sizeInBytes <= this->size());
[all …]
DGrMtlBuffer.h41 void internalMap(size_t sizeInBytes);
42 void internalUnmap(size_t sizeInBytes);
/third_party/skia/third_party/externals/oboe/tests/
DtestUtilities.cpp33 int32_t sizeInBytes = oboe::convertFormatToSizeInBytes(AudioFormat::I16); in TEST_F() local
34 ASSERT_EQ(sizeInBytes, 2); in TEST_F()
38 int32_t sizeInBytes = oboe::convertFormatToSizeInBytes(AudioFormat::Float); in TEST_F() local
39 ASSERT_EQ(sizeInBytes, 4); in TEST_F()
/third_party/skia/third_party/externals/dawn/src/tests/unittests/
DRingBufferAllocatorTests.cpp25 constexpr uint64_t sizeInBytes = 64000; in TEST() local
26 RingBufferAllocator allocator(sizeInBytes); in TEST()
31 ASSERT_EQ(allocator.GetSize(), sizeInBytes); in TEST()
34 ASSERT_EQ(allocator.Allocate(sizeInBytes + 1, ExecutionSerial(0)), in TEST()
38 ASSERT_EQ(allocator.Allocate(sizeInBytes / 2, ExecutionSerial(1)), 0u); in TEST()
39 ASSERT_EQ(allocator.Allocate(sizeInBytes / 2, ExecutionSerial(2)), 32000u); in TEST()
/third_party/flutter/skia/third_party/externals/dawn/src/tests/unittests/
DRingBufferTests.cpp56 constexpr size_t sizeInBytes = 64000; in TEST_F() local
57 std::unique_ptr<RingBuffer> buffer = CreateRingBuffer(sizeInBytes); in TEST_F()
62 ASSERT_EQ(buffer->GetSize(), sizeInBytes); in TEST_F()
65 ValidateInvalidUploadHandle(buffer->SubAllocate(sizeInBytes + 1)); in TEST_F()
68 ValidateValidUploadHandle(buffer->SubAllocate(sizeInBytes / 2)); in TEST_F()
69 ValidateValidUploadHandle(buffer->SubAllocate(sizeInBytes / 2)); in TEST_F()
/third_party/boost/boost/regex/v4/
Dregex_workaround.hpp197 std::size_t sizeInBytes, in strcpy_s() argument
202 if (lenSourceWithNull > sizeInBytes) in strcpy_s()
209 std::size_t sizeInBytes, in strcat_s() argument
215 if (lenSourceWithNull + lenDestination > sizeInBytes) in strcat_s()
/third_party/flutter/skia/src/gpu/dawn/
DGrDawnBuffer.cpp30 GrDawnBuffer::GrDawnBuffer(GrDawnGpu* gpu, size_t sizeInBytes, GrGpuBufferType type, in GrDawnBuffer() argument
32 : INHERITED(gpu, sizeInBytes, type, pattern) in GrDawnBuffer()
35 bufferDesc.size = sizeInBytes; in GrDawnBuffer()
DGrDawnBuffer.h18 GrDawnBuffer(GrDawnGpu* gpu, size_t sizeInBytes, GrGpuBufferType tpye, GrAccessPattern pattern);
/third_party/flutter/skia/src/gpu/mtl/
DGrMtlBuffer.mm106 void GrMtlBuffer::internalMap(size_t sizeInBytes) {
113 fMtlBuffer = this->mtlGpu()->resourceProvider().getDynamicBuffer(sizeInBytes, &fOffset);
120 [this->mtlGpu()->device() newBufferWithLength: sizeInBytes
127 void GrMtlBuffer::internalUnmap(size_t sizeInBytes) {
142 [fMtlBuffer didModifyRange: NSMakeRange(fOffset, sizeInBytes)];
151 size: sizeInBytes];
DGrMtlBuffer.h42 void internalMap(size_t sizeInBytes);
43 void internalUnmap(size_t sizeInBytes);
/third_party/flutter/skia/src/gpu/mock/
DGrMockBuffer.h17 GrMockBuffer(GrMockGpu* gpu, size_t sizeInBytes, GrGpuBufferType type, in GrMockBuffer() argument
19 : INHERITED(gpu, sizeInBytes, type, accessPattern) { in GrMockBuffer()
/third_party/skia/src/gpu/mock/
DGrMockBuffer.h17 GrMockBuffer(GrMockGpu* gpu, size_t sizeInBytes, GrGpuBufferType type, in GrMockBuffer() argument
19 : INHERITED(gpu, sizeInBytes, type, accessPattern) { in GrMockBuffer()
/third_party/skia/src/gpu/dawn/
DGrDawnBuffer.cpp30 GrDawnBuffer::GrDawnBuffer(GrDawnGpu* gpu, size_t sizeInBytes, GrGpuBufferType type, in GrDawnBuffer() argument
32 : INHERITED(gpu, sizeInBytes, type, pattern) { in GrDawnBuffer()
34 bufferDesc.size = sizeInBytes; in GrDawnBuffer()
DGrDawnBuffer.h18 GrDawnBuffer(GrDawnGpu* gpu, size_t sizeInBytes, GrGpuBufferType type, GrAccessPattern pattern);
/third_party/flutter/skia/src/gpu/
DGrGpuBuffer.cpp12 GrGpuBuffer::GrGpuBuffer(GrGpu* gpu, size_t sizeInBytes, GrGpuBufferType type, in GrGpuBuffer() argument
16 , fSizeInBytes(sizeInBytes) in GrGpuBuffer()
DGrGpuBuffer.h84 GrGpuBuffer(GrGpu*, size_t sizeInBytes, GrGpuBufferType, GrAccessPattern);
/third_party/skia/third_party/externals/dawn/src/tests/end2end/
DTexture3DTests.cpp75 uint32_t sizeInBytes = in TEST_P() local
78 uint32_t size = sizeInBytes / bytesPerTexel; in TEST_P()
89 utils::CreateBufferFromData(device, data.data(), sizeInBytes, wgpu::BufferUsage::CopySrc); in TEST_P()
/third_party/skia/src/gpu/
DGrGpuBuffer.cpp12 GrGpuBuffer::GrGpuBuffer(GrGpu* gpu, size_t sizeInBytes, GrGpuBufferType type, in GrGpuBuffer() argument
16 , fSizeInBytes(sizeInBytes) in GrGpuBuffer()
DGrGpuBuffer.h84 GrGpuBuffer(GrGpu*, size_t sizeInBytes, GrGpuBufferType, GrAccessPattern);
/third_party/skia/third_party/externals/swiftshader/src/Vulkan/
DVkDescriptorSetLayout.hpp65 int sizeInBytes; member
80 int sizeInBytes; // intended size of the bound region -- slides along with dynamic offsets member
/third_party/skia/include/effects/
DSkRuntimeEffect.h78 size_t sizeInBytes() const;
304 } else if (sizeof(val) != fVar->sizeInBytes()) {
316 } else if (fVar->sizeInBytes() != 9 * sizeof(float)) {
334 } else if (sizeof(T) * count != fVar->sizeInBytes()) { in set()
/third_party/skia/src/gpu/d3d/
DGrD3DBuffer.cpp215 sizeInBytes = SkAlign4(sizeInBytes); in internalUnmap()
/third_party/skia/src/gpu/vk/
DGrVkBuffer.h38 size_t sizeInBytes,
/third_party/icu/icu4c/source/common/
Duarrsort.cpp39 static constexpr int32_t sizeInMaxAlignTs(int32_t sizeInBytes) { in sizeInMaxAlignTs() argument
40 return (sizeInBytes + sizeof(std::max_align_t) - 1) / sizeof(std::max_align_t); in sizeInMaxAlignTs()
/third_party/skia/third_party/externals/icu/source/common/
Duarrsort.cpp39 static constexpr int32_t sizeInMaxAlignTs(int32_t sizeInBytes) { in sizeInMaxAlignTs() argument
40 return (sizeInBytes + sizeof(std::max_align_t) - 1) / sizeof(std::max_align_t); in sizeInMaxAlignTs()

123