Home
last modified time | relevance | path

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

/external/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()
85 if (!gpu->readPixels(texture, 0, 0, w, h, colorType, supportedRead.fColorType, in read_pixels_from_texture()
89 GrImageInfo tmpInfo(supportedRead.fColorType, kUnpremul_SkAlphaType, nullptr, w, h); in read_pixels_from_texture()
95 return gpu->readPixels(texture, 0, 0, w, h, colorType, supportedRead.fColorType, dst, rowBytes); in read_pixels_from_texture()
/external/skia/src/gpu/
DGrSurfaceContext.cpp315 auto supportedRead = caps->supportedReadPixelsColorType( in readPixels() local
322 (dst.colorType() != supportedRead.fColorType); in readPixels()
329 GrImageInfo tmpInfo(supportedRead.fColorType, in readPixels()
348 supportedRead.fColorType, readDst, readRB)) { in readPixels()
1324 auto supportedRead = this->caps()->supportedReadPixelsColorType(this->colorInfo().colorType(), in transferPixels() local
1329 uint32_t legalReadChannels = GrColorTypeChannelFlags(supportedRead.fColorType); in transferPixels()
1336 !supportedRead.fOffsetAlignmentForTransferBuffer) { in transferPixels()
1340 size_t rowBytes = GrColorTypeBytesPerPixel(supportedRead.fColorType) * rect.width(); in transferPixels()
1358 supportedRead.fColorType, buffer, 0); in transferPixels()
1362 if (supportedRead.fColorType != dstCT || flip) { in transferPixels()
[all …]
DGrGpu.cpp512 auto supportedRead = this->caps()->supportedReadPixelsColorType( in transferPixelsFrom() local
514 SkASSERT(supportedRead.fOffsetAlignmentForTransferBuffer); in transferPixelsFrom()
515 SkASSERT(offset % supportedRead.fOffsetAlignmentForTransferBuffer == 0); in transferPixelsFrom()