Home
last modified time | relevance | path

Searched refs:trimRowBytes (Results 1 – 11 of 11) sorted by relevance

/external/skia/src/core/
DSkConvertPixels.h21 size_t trimRowBytes, int rowCount) { in SkRectMemcpy() argument
22 SkASSERT(trimRowBytes <= dstRB); in SkRectMemcpy()
23 SkASSERT(trimRowBytes <= srcRB); in SkRectMemcpy()
24 if (trimRowBytes == dstRB && trimRowBytes == srcRB) { in SkRectMemcpy()
25 memcpy(dst, src, trimRowBytes * rowCount); in SkRectMemcpy()
30 memcpy(dst, src, trimRowBytes); in SkRectMemcpy()
/external/skqp/src/core/
DSkConvertPixels.h20 size_t trimRowBytes, int rowCount) { in SkRectMemcpy() argument
21 SkASSERT(trimRowBytes <= dstRB); in SkRectMemcpy()
22 SkASSERT(trimRowBytes <= srcRB); in SkRectMemcpy()
23 if (trimRowBytes == dstRB && trimRowBytes == srcRB) { in SkRectMemcpy()
24 memcpy(dst, src, trimRowBytes * rowCount); in SkRectMemcpy()
29 memcpy(dst, src, trimRowBytes); in SkRectMemcpy()
/external/skqp/src/gpu/
DGrContext.cpp563 size_t trimRowBytes = GrColorTypeBytesPerPixel(srcColorType) * width; in writeSurfacePixels() local
564 tempBuffer.reset(new char[trimRowBytes * height]); in writeSurfacePixels()
565 char* dst = reinterpret_cast<char*>(tempBuffer.get()) + trimRowBytes * (height - 1); in writeSurfacePixels()
567 for (int i = 0; i < height; ++i, src += rowBytes, dst -= trimRowBytes) { in writeSurfacePixels()
568 memcpy(dst, src, trimRowBytes); in writeSurfacePixels()
571 rowBytes = trimRowBytes; in writeSurfacePixels()
760 size_t trimRowBytes = GrColorTypeBytesPerPixel(allowedColorType) * width; in readSurfacePixels() local
761 std::unique_ptr<char[]> row(new char[trimRowBytes]); in readSurfacePixels()
765 memcpy(row.get(), upper, trimRowBytes); in readSurfacePixels()
766 memcpy(upper, lower, trimRowBytes); in readSurfacePixels()
[all …]
/external/skqp/src/gpu/vk/
DGrVkGpu.cpp551 size_t trimRowBytes = width * bpp; in uploadTexDataLinear() local
553 rowBytes = trimRowBytes; in uploadTexDataLinear()
582 SkRectMemcpy(mapPtr, static_cast<size_t>(layout.rowPitch), data, rowBytes, trimRowBytes, in uploadTexDataLinear()
737 const size_t trimRowBytes = currentWidth * bpp; in uploadTexDataOptimal() local
740 : trimRowBytes; in uploadTexDataOptimal()
745 SkRectMemcpy(dst, trimRowBytes, src, rowBytes, trimRowBytes, currentHeight); in uploadTexDataOptimal()
1310 size_t trimRowBytes, int h) { in copy_testing_data() argument
1323 SkRectMemcpy(mapPtr, dstRowBytes, srcData, srcRowBytes, trimRowBytes, h); in copy_testing_data()
1447 const size_t trimRowBytes = w * bpp; in createTestingOnlyVkImage() local
1449 srcRowBytes = trimRowBytes; in createTestingOnlyVkImage()
[all …]
/external/skqp/src/gpu/gl/
DGrGLGpu.cpp882 const size_t trimRowBytes = width * bpp; in onTransferPixels() local
884 rowBytes = trimRowBytes; in onTransferPixels()
892 if (trimRowBytes != rowBytes) { in onTransferPixels()
1241 const size_t trimRowBytes = currentWidth * bpp; in uploadTexData() local
1242 const size_t trimmedSize = trimRowBytes * currentHeight; in uploadTexData()
1246 : trimRowBytes; in uploadTexData()
1248 if (((!caps.unpackRowLengthSupport() || usesMips) && trimRowBytes != rowBytes)) { in uploadTexData()
1276 const size_t trimRowBytes = currentWidth * bpp; in uploadTexData() local
1288 : trimRowBytes; in uploadTexData()
1295 if (rowBytes != trimRowBytes) { in uploadTexData()
[all …]
/external/skia/src/gpu/dawn/
DGrDawnGpu.cpp354 size_t trimRowBytes = width * SkColorTypeBytesPerPixel(colorType); in uploadTextureData() local
355 size_t dstRowBytes = GrDawnRoundRowBytes(trimRowBytes); in uploadTextureData()
359 SkRectMemcpy(slice.fOffsetMapPtr, dstRowBytes, src, srcRowBytes, trimRowBytes, height); in uploadTextureData()
/external/skia/src/gpu/vk/
DGrVkGpu.cpp744 size_t trimRowBytes = width * bpp; in uploadTexDataLinear() local
775 SkRectMemcpy(mapPtr, static_cast<size_t>(layout.rowPitch), data, rowBytes, trimRowBytes, in uploadTexDataLinear()
915 const size_t trimRowBytes = currentWidth * bpp; in uploadTexDataOptimal() local
921 SkRectMemcpy(dst, trimRowBytes, src, rowBytes, trimRowBytes, currentHeight); in uploadTexDataOptimal()
/external/skia/src/gpu/mtl/
DGrMtlGpu.mm414 const size_t trimRowBytes = currentWidth * bpp;
420 SkRectMemcpy(dst, trimRowBytes, src, rowBytes, trimRowBytes, currentHeight);
424 sourceBytesPerRow: trimRowBytes
425 sourceBytesPerImage: trimRowBytes*currentHeight
/external/skqp/src/gpu/mtl/
DGrMtlGpu.mm468 size_t trimRowBytes = w * GrColorTypeBytesPerPixel(colorType);
470 srcRowBytes = trimRowBytes;
/external/skia/src/gpu/d3d/
DGrD3DGpu.cpp728 const size_t trimRowBytes = currentWidth * bpp; in uploadToTexture() local
736 src, srcRowBytes, trimRowBytes, currentHeight); in uploadToTexture()
/external/skia/src/gpu/gl/
DGrGLGpu.cpp886 const size_t trimRowBytes = width * bpp; in onTransferPixelsTo() local
893 if (trimRowBytes != rowBytes) { in onTransferPixelsTo()
1040 const size_t trimRowBytes = dims.width() * bpp; in uploadTexData() local
1043 if (caps.writePixelsRowBytesSupport() && (rowBytes != trimRowBytes || restoreGLRowLength)) { in uploadTexData()
1048 SkASSERT(rowBytes == trimRowBytes); in uploadTexData()