Home
last modified time | relevance | path

Searched refs:supportedRead (Results 1 – 7 of 7) sorted by relevance

/third_party/flutter/skia/src/gpu/
DGrSurfaceContext.cpp179 auto supportedRead = caps->supportedReadPixelsColorType( in readPixels() local
185 (dstInfo.colorType() != supportedRead.fColorType); in readPixels()
192 tmpInfo = {supportedRead.fColorType, this->colorSpaceInfo().alphaType(), in readPixels()
208 supportedRead.fColorType, readDst, readRB)) { in readPixels()
604 auto supportedRead = this->caps()->supportedReadPixelsColorType( in transferPixels() local
609 uint32_t legalReadComponents = GrColorTypeComponentFlags(supportedRead.fColorType); in transferPixels()
616 !supportedRead.fOffsetAlignmentForTransferBuffer) { in transferPixels()
620 size_t rowBytes = GrColorTypeBytesPerPixel(supportedRead.fColorType) * rect.width(); in transferPixels()
634 supportedRead.fColorType, buffer, 0); in transferPixels()
638 if (supportedRead.fColorType != dstCT || flip) { in transferPixels()
[all …]
DGrGpu.cpp498 auto supportedRead = this->caps()->supportedReadPixelsColorType( in transferPixelsFrom() local
500 SkASSERT(supportedRead.fOffsetAlignmentForTransferBuffer); in transferPixelsFrom()
501 SkASSERT(offset % supportedRead.fOffsetAlignmentForTransferBuffer == 0); in transferPixelsFrom()
/third_party/flutter/skia/tests/
DTransferPixelsTest.cpp78 GrCaps::SupportedRead supportedRead = in read_pixels_from_texture() local
81 if (supportedRead.fColorType != colorType) { in read_pixels_from_texture()
82 size_t tmpRowBytes = GrColorTypeBytesPerPixel(supportedRead.fColorType) * w; in read_pixels_from_texture()
84 if (!gpu->readPixels(texture, 0, 0, w, h, colorType, supportedRead.fColorType, in read_pixels_from_texture()
88 GrPixelInfo tmpInfo(supportedRead.fColorType, kUnpremul_SkAlphaType, nullptr, w, h); in read_pixels_from_texture()
94 return gpu->readPixels(texture, 0, 0, w, h, colorType, supportedRead.fColorType, dst, rowBytes); in read_pixels_from_texture()
DGrTestingBackendTextureUploadTest.cpp59 auto supportedRead = in testing_only_texture_test() local
61 if (supportedRead.fColorType != grCT) { in testing_only_texture_test()
/third_party/skia/tests/
DTransferPixelsTest.cpp79 GrCaps::SupportedRead supportedRead = in read_pixels_from_texture() local
82 if (supportedRead.fColorType != colorType) { in read_pixels_from_texture()
83 size_t tmpRowBytes = GrColorTypeBytesPerPixel(supportedRead.fColorType) * w; in read_pixels_from_texture()
88 supportedRead.fColorType, in read_pixels_from_texture()
93 GrImageInfo tmpInfo(supportedRead.fColorType, kUnpremul_SkAlphaType, nullptr, w, h); in read_pixels_from_texture()
102 supportedRead.fColorType, in read_pixels_from_texture()
/third_party/skia/src/gpu/
DSurfaceContext.cpp217 auto supportedRead = caps->supportedReadPixelsColorType( in readPixels() local
224 (dst.colorType() != supportedRead.fColorType); in readPixels()
231 GrImageInfo tmpInfo(supportedRead.fColorType, in readPixels()
251 supportedRead.fColorType, in readPixels()
1248 auto supportedRead = this->caps()->supportedReadPixelsColorType(this->colorInfo().colorType(), in transferPixels() local
1253 uint32_t legalReadChannels = GrColorTypeChannelFlags(supportedRead.fColorType); in transferPixels()
1260 !supportedRead.fOffsetAlignmentForTransferBuffer) { in transferPixels()
1264 size_t rowBytes = GrColorTypeBytesPerPixel(supportedRead.fColorType) * rect.width(); in transferPixels()
1283 supportedRead.fColorType, buffer, 0); in transferPixels()
1287 if (supportedRead.fColorType != dstCT || flip) { in transferPixels()
[all …]
DGrGpu.cpp555 auto supportedRead = this->caps()->supportedReadPixelsColorType( in transferPixelsFrom() local
557 SkASSERT(supportedRead.fOffsetAlignmentForTransferBuffer); in transferPixelsFrom()
558 SkASSERT(offset % supportedRead.fOffsetAlignmentForTransferBuffer == 0); in transferPixelsFrom()