Lines Matching defs:caps

73     auto* caps = context->priv().caps();
80 caps->supportedReadPixelsColorType(colorType, texture->backendFormat(), colorType);
111 if (GrCaps::kNone_MapFlags == dContext->priv().caps()->mapBufferFlags()) {
115 auto* caps = dContext->priv().caps();
117 auto backendFormat = caps->getDefaultBackendFormat(colorType, renderable);
126 int srcBufferWidth = caps->transferPixelsToRowBytesSupport() ? 20 : 16;
141 caps->surfaceSupportsReadPixels(tex.get())) {
147 if (!caps->isFormatAsColorTypeRenderable(colorType, tex->backendFormat())) {
151 // The caps tell us what color type we are allowed to upload and read back from this texture,
154 caps->supportedWritePixelsColorType(colorType, tex->backendFormat(), colorType);
159 caps->transferBufferAlignment());
223 if (!caps->transferPixelsToRowBytesSupport()) {
285 auto caps = context->priv().caps();
286 if (GrCaps::kNone_MapFlags == caps->mapBufferFlags()) {
303 auto format = context->priv().caps()->getDefaultBackendFormat(colorType, renderable);
325 caps->surfaceSupportsReadPixels(tex.get())) {
331 if (!caps->isFormatAsColorTypeRenderable(colorType, tex->backendFormat())) {
337 caps->supportedReadPixelsColorType(colorType, tex->backendFormat(), colorType);
344 size_t fullBufferRowBytes = SkAlignTo(kTexDims.fWidth * bpp, caps->transferBufferAlignment());
345 size_t partialBufferRowBytes = SkAlignTo(kPartialWidth * bpp, caps->transferBufferAlignment());
381 if (context->priv().caps()->mapBufferFlags() & GrCaps::kAsyncRead_MapFlag) {
428 if (context->priv().caps()->mapBufferFlags() & GrCaps::kAsyncRead_MapFlag) {
458 if (!ctxInfo.directContext()->priv().caps()->transferFromBufferToTextureSupport()) {
490 if (!ctxInfo.directContext()->priv().caps()->transferFromSurfaceToBufferSupport()) {