Home
last modified time | relevance | path

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

123

/external/skqp/src/gpu/
DGrBuffer.cpp12 sk_sp<GrBuffer> GrBuffer::MakeCPUBacked(GrGpu* gpu, size_t sizeInBytes, GrBufferType intendedType, in MakeCPUBacked() argument
17 cpuData = sk_calloc_throw(sizeInBytes); in MakeCPUBacked()
19 cpuData = sk_malloc_throw(sizeInBytes); in MakeCPUBacked()
22 memcpy(cpuData, data, sizeInBytes); in MakeCPUBacked()
24 return sk_sp<GrBuffer>(new GrBuffer(gpu, sizeInBytes, intendedType, cpuData)); in MakeCPUBacked()
27 GrBuffer::GrBuffer(GrGpu* gpu, size_t sizeInBytes, GrBufferType type, void* cpuData) in GrBuffer() argument
30 , fSizeInBytes(sizeInBytes) in GrBuffer()
37 GrBuffer::GrBuffer(GrGpu* gpu, size_t sizeInBytes, GrBufferType type, GrAccessPattern pattern) in GrBuffer() argument
40 , fSizeInBytes(sizeInBytes) in GrBuffer()
DGrBuffer.h20 static SK_WARN_UNUSED_RESULT sk_sp<GrBuffer> MakeCPUBacked(GrGpu*, size_t sizeInBytes,
31 size_t sizeInBytes() const { return fSizeInBytes; } in sizeInBytes() function
104 GrBuffer(GrGpu*, size_t sizeInBytes, GrBufferType, GrAccessPattern);
112 GrBuffer(GrGpu*, size_t sizeInBytes, GrBufferType, void* cpuData);
/external/skqp/src/gpu/gl/
DGrGLBuffer.cpp177 if (this->glCaps().useBufferDataNullHint() || fGLSizeInBytes != this->sizeInBytes()) { in onMap()
178 GL_CALL(BufferData(target, this->sizeInBytes(), nullptr, fUsage)); in onMap()
186 if (fGLSizeInBytes != this->sizeInBytes()) { in onMap()
187 GL_CALL(BufferData(target, this->sizeInBytes(), nullptr, fUsage)); in onMap()
194 GL_CALL_RET(fMapPtr, MapBufferRange(target, 0, this->sizeInBytes(), in onMap()
201 if (fGLSizeInBytes != this->sizeInBytes()) { in onMap()
202 GL_CALL(BufferData(target, this->sizeInBytes(), nullptr, fUsage)); in onMap()
204 GL_CALL_RET(fMapPtr, MapBufferSubData(target, 0, this->sizeInBytes(), in onMap()
209 fGLSizeInBytes = this->sizeInBytes(); in onMap()
252 if (srcSizeInBytes > this->sizeInBytes()) { in onUpdateData()
[all …]
/external/webrtc/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/
DWebRtcAudioTrack.java81 final int sizeInBytes = byteBuffer.capacity(); in run() local
87 nativeGetPlayoutData(sizeInBytes, nativeAudioTrack); in run()
91 assertTrue(sizeInBytes <= byteBuffer.remaining()); in run()
94 bytesWritten = writeOnLollipop(audioTrack, byteBuffer, sizeInBytes); in run()
96 bytesWritten = writePreLollipop(audioTrack, byteBuffer, sizeInBytes); in run()
98 if (bytesWritten != sizeInBytes) { in run()
124 private int writeOnLollipop(AudioTrack audioTrack, ByteBuffer byteBuffer, int sizeInBytes) { in writeOnLollipop() argument
125 return audioTrack.write(byteBuffer, sizeInBytes, AudioTrack.WRITE_BLOCKING); in writeOnLollipop()
128 private int writePreLollipop(AudioTrack audioTrack, ByteBuffer byteBuffer, int sizeInBytes) { in writePreLollipop() argument
129 return audioTrack.write(byteBuffer.array(), byteBuffer.arrayOffset(), sizeInBytes); in writePreLollipop()
/external/skqp/src/gpu/mock/
DGrMockBuffer.h17 GrMockBuffer(GrMockGpu* gpu, size_t sizeInBytes, GrBufferType type, in GrMockBuffer() argument
19 : INHERITED(gpu, sizeInBytes, type, accessPattern) { in GrMockBuffer()
26 fMapPtr = sk_malloc_throw(this->sizeInBytes()); in onMap()
DGrMockGpu.cpp186 sk_sp<GrBuffer> GrMockGpu::onCreateBuffer(size_t sizeInBytes, GrBufferType type, in onCreateBuffer() argument
188 return sk_sp<GrBuffer>(new GrMockBuffer(this, sizeInBytes, type, accessPattern)); in onCreateBuffer()
/external/deqp/external/vulkancts/modules/vulkan/tessellation/
DvktTessellationCommonEdgeTests.cpp331 …nst VkDeviceSize vertexDataSizeBytes = sizeInBytes(gridPosComps) + sizeInBytes(gridTessParams) … in test()
333 const std::size_t vertexTessParamsOffset = sizeInBytes(gridPosComps); in test()
334 const std::size_t vertexIndicesOffset = vertexTessParamsOffset + sizeInBytes(gridTessParams); in test()
343 …deMemcpy(pData + vertexPositionsOffset, &gridPosComps[0], static_cast<std::size_t>(sizeInBytes(… in test()
344 …deMemcpy(pData + vertexTessParamsOffset, &gridTessParams[0], static_cast<std::size_t>(sizeInBytes(… in test()
345 …deMemcpy(pData + vertexIndicesOffset, &gridIndices[0], static_cast<std::size_t>(sizeInBytes(… in test()
/external/skia/src/gpu/mtl/
DGrMtlBuffer.mm102 void GrMtlBuffer::internalMap(size_t sizeInBytes) {
120 [this->mtlGpu()->device() newBufferWithLength: sizeInBytes
132 void GrMtlBuffer::internalUnmap(size_t sizeInBytes) {
147 [fMappedBuffer didModifyRange: NSMakeRange(0, sizeInBytes)];
157 size: sizeInBytes];
DGrMtlBuffer.h40 void internalMap(size_t sizeInBytes);
41 void internalUnmap(size_t sizeInBytes);
/external/skqp/src/gpu/mtl/
DGrMtlBuffer.mm110 void GrMtlBuffer::internalMap(size_t sizeInBytes) {
127 [this->mtlGpu()->device() newBufferWithLength: sizeInBytes
138 void GrMtlBuffer::internalUnmap(size_t sizeInBytes) {
153 [fMappedBuffer didModifyRange: NSMakeRange(0, sizeInBytes)];
162 size: sizeInBytes];
DGrMtlBuffer.h40 void internalMap(size_t sizeInBytes);
41 void internalUnmap(size_t sizeInBytes);
/external/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()
/external/mesa3d/src/gallium/drivers/svga/include/
Dsvga3d_cmd.h1297 uint32 sizeInBytes; member
1336 uint32 sizeInBytes; member
1493 uint32 sizeInBytes; member
1505 uint32 sizeInBytes; member
1530 uint32 sizeInBytes; member
1559 uint32 sizeInBytes; member
1574 uint32 sizeInBytes; member
1859 uint32 sizeInBytes; member
Dsvga3d_dx.h217 uint32 sizeInBytes; member
521 uint32 sizeInBytes; /* max bytes to write */ member
534 uint32 sizeInBytes; member
1273 uint32 sizeInBytes; /* Number of bytes of shader text. */ member
1282 uint32 sizeInBytes; member
1445 uint32 sizeInBytes; member
/external/skia/src/gpu/
DGrGpuBuffer.cpp12 GrGpuBuffer::GrGpuBuffer(GrGpu* gpu, size_t sizeInBytes, GrGpuBufferType type, in GrGpuBuffer() argument
16 , fSizeInBytes(sizeInBytes) in GrGpuBuffer()
DGrGpuBuffer.h94 GrGpuBuffer(GrGpu*, size_t sizeInBytes, GrGpuBufferType, GrAccessPattern);
/external/pdfium/fxbarcode/qrcode/
DBC_QRCoderBitVector.cpp41 size_t CBC_QRCoderBitVector::sizeInBytes() const { in sizeInBytes() function in CBC_QRCoderBitVector
91 for (size_t i = 0; i < sizeInBytes(); ++i) in XOR()
DBC_QRCoderEncoder.cpp365 int32_t numPaddingBytes = numDataBytes - bits->sizeInBytes(); in TerminateBits()
516 if (bits->sizeInBytes() != static_cast<size_t>(numDataBytes)) in InterleaveWithECBytes()
558 return static_cast<size_t>(numTotalBytes) == result->sizeInBytes(); in InterleaveWithECBytes()
580 int32_t numInputBytes = dataBits.sizeInBytes(); in Encode()
585 int32_t numLetters = mode == CBC_QRCoderMode::sBYTE ? dataBits.sizeInBytes() in Encode()
DBC_QRCoderBitVector.h23 size_t sizeInBytes() const;
/external/mesa3d/src/gallium/drivers/svga/
Dsvga_cmd_vgpu10.c481 sot->sizeInBytes = targets[i].sizeInBytes; in SVGA3D_vgpu10_SetSOTargets()
487 sot->sizeInBytes = ~0u; in SVGA3D_vgpu10_SetSOTargets()
1057 uint32 sizeInBytes) in SVGA3D_vgpu10_DefineAndBindShader() argument
1076 dcmd->sizeInBytes = sizeInBytes; in SVGA3D_vgpu10_DefineAndBindShader()
1230 uint32 sizeInBytes) in SVGA3D_vgpu10_SetSingleConstantBuffer() argument
1236 assert(sizeInBytes == 0); in SVGA3D_vgpu10_SetSingleConstantBuffer()
1238 assert(sizeInBytes > 0); in SVGA3D_vgpu10_SetSingleConstantBuffer()
1250 cmd->sizeInBytes = sizeInBytes; in SVGA3D_vgpu10_SetSingleConstantBuffer()
/external/v8/src/inspector/
Dv8-debugger-script.cc38 size_t sizeInBytes = sizeof(UChar) * str.length(); in calculateHash() local
40 for (size_t i = 0; i < sizeInBytes / 4; ++i) { in calculateHash()
53 if (sizeInBytes % 4) { in calculateHash()
56 for (size_t i = sizeInBytes - sizeInBytes % 4; i < sizeInBytes; ++i) { in calculateHash()
/external/deqp/external/vulkancts/modules/vulkan/geometry/
DvktGeometryBasicClass.cpp94 …const VkDeviceSize vertexDataSizeBytes = sizeInBytes(m_vertexPosData) + sizeInBytes(m_vertexAt… in iterate()
/external/tensorflow/tensorflow/stream_executor/cuda/
Dcudnn_7_0.inc313 size_t *sizeInBytes ) {
317 return func_ptr(handle, reduceTensorDesc, aDesc, cDesc, sizeInBytes);
325 size_t *sizeInBytes ) {
329 return func_ptr(handle, reduceTensorDesc, aDesc, cDesc, sizeInBytes);
657 size_t *sizeInBytes ) {
661 return func_ptr(handle, xDesc, wDesc, convDesc, yDesc, algo, sizeInBytes);
803 size_t *sizeInBytes ) {
807 return func_ptr(handle, xDesc, dyDesc, convDesc, gradDesc, algo, sizeInBytes);
910 size_t *sizeInBytes ) {
914 return func_ptr(handle, wDesc, dyDesc, convDesc, dxDesc, algo, sizeInBytes);
[all …]
Dcudnn_6_0.inc302 size_t *sizeInBytes ) {
306 return func_ptr(handle, reduceTensorDesc, aDesc, cDesc, sizeInBytes);
314 size_t *sizeInBytes ) {
318 return func_ptr(handle, reduceTensorDesc, aDesc, cDesc, sizeInBytes);
591 size_t *sizeInBytes ) {
595 return func_ptr(handle, xDesc, wDesc, convDesc, yDesc, algo, sizeInBytes);
714 size_t *sizeInBytes ) {
718 return func_ptr(handle, xDesc, dyDesc, convDesc, gradDesc, algo, sizeInBytes);
798 size_t *sizeInBytes ) {
802 return func_ptr(handle, wDesc, dyDesc, convDesc, dxDesc, algo, sizeInBytes);
[all …]
Dcudnn_7_4.inc317 size_t *sizeInBytes) {
321 return func_ptr(handle, reduceTensorDesc, aDesc, cDesc, sizeInBytes);
329 size_t *sizeInBytes) {
333 return func_ptr(handle, reduceTensorDesc, aDesc, cDesc, sizeInBytes);
655 size_t *sizeInBytes) {
659 return func_ptr(handle, xDesc, wDesc, convDesc, yDesc, algo, sizeInBytes);
801 size_t *sizeInBytes) {
805 return func_ptr(handle, xDesc, dyDesc, convDesc, gradDesc, algo, sizeInBytes);
908 size_t *sizeInBytes) {
912 return func_ptr(handle, wDesc, dyDesc, convDesc, dxDesc, algo, sizeInBytes);
[all …]

123