Home
last modified time | relevance | path

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

/external/skia/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/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/skia/src/gpu/
DGrContextPriv.cpp474 size_t trimRowBytes = GrColorTypeBytesPerPixel(allowedColorType) * width; in readSurfacePixels() local
475 std::unique_ptr<char[]> row(new char[trimRowBytes]); in readSurfacePixels()
479 memcpy(row.get(), upper, trimRowBytes); in readSurfacePixels()
480 memcpy(upper, lower, trimRowBytes); in readSurfacePixels()
481 memcpy(lower, row.get(), trimRowBytes); in readSurfacePixels()
658 size_t trimRowBytes = GrColorTypeBytesPerPixel(srcColorType) * width; in writeSurfacePixels() local
659 tempBuffer.reset(new char[trimRowBytes * height]); in writeSurfacePixels()
660 char* dst = reinterpret_cast<char*>(tempBuffer.get()) + trimRowBytes * (height - 1); in writeSurfacePixels()
662 for (int i = 0; i < height; ++i, src += rowBytes, dst -= trimRowBytes) { in writeSurfacePixels()
663 memcpy(dst, src, trimRowBytes); in writeSurfacePixels()
[all …]
/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/skia/src/gpu/mtl/
DGrMtlGpu.mm243 const size_t trimRowBytes = currentWidth * bpp;
246 : trimRowBytes;
251 SkRectMemcpy(dst, trimRowBytes, src, rowBytes, trimRowBytes, currentHeight);
255 sourceBytesPerRow: trimRowBytes
256 sourceBytesPerImage: trimRowBytes*currentHeight
528 size_t trimRowBytes = w * GrColorTypeBytesPerPixel(colorType);
530 srcRowBytes = trimRowBytes;
/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()
729 const size_t trimRowBytes = currentWidth * bpp; in uploadTexDataOptimal() local
732 : trimRowBytes; in uploadTexDataOptimal()
737 SkRectMemcpy(dst, trimRowBytes, src, rowBytes, trimRowBytes, currentHeight); in uploadTexDataOptimal()
1302 size_t trimRowBytes, int h) { in copy_testing_data() argument
1315 SkRectMemcpy(mapPtr, dstRowBytes, srcData, srcRowBytes, trimRowBytes, h); in copy_testing_data()
1439 const size_t trimRowBytes = w * bpp; in createTestingOnlyVkImage() local
1441 srcRowBytes = trimRowBytes; in createTestingOnlyVkImage()
[all …]
/external/skia/src/gpu/gl/
DGrGLGpu.cpp918 const size_t trimRowBytes = width * bpp; in onTransferPixels() local
920 rowBytes = trimRowBytes; in onTransferPixels()
928 if (trimRowBytes != rowBytes) { in onTransferPixels()
1276 const size_t trimRowBytes = currentWidth * bpp; in uploadTexData() local
1277 const size_t trimmedSize = trimRowBytes * currentHeight; in uploadTexData()
1281 : trimRowBytes; in uploadTexData()
1283 if (((!caps.unpackRowLengthSupport() || usesMips) && trimRowBytes != rowBytes)) { in uploadTexData()
1311 const size_t trimRowBytes = currentWidth * bpp; in uploadTexData() local
1323 : trimRowBytes; in uploadTexData()
1330 if (rowBytes != trimRowBytes) { in uploadTexData()
[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/vk/
DGrVkGpu.cpp554 size_t trimRowBytes = width * bpp; in uploadTexDataLinear() local
556 rowBytes = trimRowBytes; in uploadTexDataLinear()
585 SkRectMemcpy(mapPtr, static_cast<size_t>(layout.rowPitch), data, rowBytes, trimRowBytes, in uploadTexDataLinear()
731 const size_t trimRowBytes = currentWidth * bpp; in uploadTexDataOptimal() local
734 : trimRowBytes; in uploadTexDataOptimal()
739 SkRectMemcpy(dst, trimRowBytes, src, rowBytes, trimRowBytes, currentHeight); in uploadTexDataOptimal()
1314 size_t trimRowBytes, int h) { in copy_testing_data() argument
1327 SkRectMemcpy(mapPtr, dstRowBytes, srcData, srcRowBytes, trimRowBytes, h); in copy_testing_data()
1451 const size_t trimRowBytes = w * bpp; in createTestingOnlyVkImage() local
1453 srcRowBytes = trimRowBytes; in createTestingOnlyVkImage()
[all …]
/external/skqp/src/gpu/mtl/
DGrMtlGpu.mm468 size_t trimRowBytes = w * GrColorTypeBytesPerPixel(colorType);
470 srcRowBytes = trimRowBytes;