Lines Matching defs:read
149 // Test unpremul sources? We could omit this and detect that creating the source of the read
166 // Does a read from the T into the pixmap.
177 // To test the results of the write we do a read. This reads the entire src T. It should do a non-
178 // converting read (i.e. the image info of the returned pixmap matches that of the T).
232 const std::function<GpuReadSrcFn<T>>& read,
240 // to compare with the results of 'read'.
262 // correct part of the destination gets overwritten by 'read'.
268 const Result result = read(src, offset, dstPixels);
295 // Considering the rect we tried to read and the surface bounds figure out which pixels in
296 // both src and dst space should actually have been read and written.
305 // difference. Note that sometimes read back on GPU can be lossy even when there no
306 // conversion at all because GPU->CPU read may go to a lower bit depth format and then
307 // be promoted back to the original type. For example, GL ES cannot read to 1010102, so
344 // Do a spoofed read where src and dst alpha type are both kUnpremul. This will
380 "Result pixels modified result outside read rect [%d, %d, %d, %d]. "
395 // We ensure we use the long array once per src and read color type and otherwise use the
398 // equivalent. Just ensure each redundant AT is tested once with each CT (src and read).
401 // We consider a src or read CT thoroughly tested once it has run through the long rect array
402 // and full complement of alpha types with one successful read in the loop.
814 const std::function<GpuReadDstFn<T>>& read) {
829 // Do an initial read before the write.
830 SkAutoPixmapStorage firstReadPM = read(dst);
833 // implementation of read pixels. If the format can't be attached to a FBO we don't have
867 // Do an initial read before the write. We'll use this to verify that areas outside the
869 SkAutoPixmapStorage secondReadPM = read(dst);
871 // The first read succeeded so this one should, too.
873 "could not read from dst (CT: %s, AT: %s)\n",
931 // The area around written rect should be the same in the first and second read.
982 // We ensure we use the long array once per src and read color type and otherwise use the
989 // and full complement of alpha types with one successful read in the loop.
1122 // Below we use rendering to read the level pixels back.
1177 // original level back in for the comparison after the read below.
1181 // TODO: Update this when read pixels supports reading back levels to read
1202 GrPixmap read = GrPixmap::Allocate(readInfo);
1203 if (!dstSC->readPixels(direct, read, {0, 0})) {
1215 GrCPixmap b = read;
1247 // buffer 0 to GL_PIXEL_PACK_BUFFER before a glReadPixels() that was supposed to read into
1250 // Start with a async read so that we bind to GL_PIXEL_PACK_BUFFER.
1274 ERRORF(reporter, "async read failed.");
1280 // GL_PIXEL_PACK_BUFFER even though async transfer did leave one bound. So the sync read
1294 ERRORF(reporter, "Expect sync and async read to be the same. "