Lines Matching defs:texture
69 bool read_pixels_from_texture(GrTexture* texture, GrColorType colorType, char* dst,
71 auto* context = texture->getContext();
75 int w = texture->width();
76 int h = texture->height();
80 caps->supportedReadPixelsColorType(colorType, texture->backendFormat(), colorType);
85 if (!gpu->readPixels(texture,
99 return gpu->readPixels(texture,
133 ERRORF(reporter, "Could not create texture");
144 // GL requires a texture to be framebuffer bindable to call glReadPixels. However, we have not
151 // The caps tell us what color type we are allowed to upload and read back from this texture,
200 ERRORF(reporter, "Could not read pixels from texture, color type: %d",
222 // We're relying on this cap to write partial texture data
226 // We keep a 1 to 1 correspondence between pixels in the buffer and the entire texture. We
227 // update the contents of a sub-rect of the buffer and push that rect to the texture. We start
265 ERRORF(reporter, "Could not transfer pixels to texture, color type: %d",
272 ERRORF(reporter, "Could not read pixels from texture, color type: %d",
295 // We'll do a full texture read into the buffer followed by a partial read. These values
302 // create texture
328 // GL requires a texture to be framebuffer bindable to call glReadPixels. However, we have not