Home
last modified time | relevance | path

Searched refs:yuvDesc (Results 1 – 2 of 2) sorted by relevance

/external/skia/src/gpu/
DGrYUVProvider.cpp91 GrSurfaceDesc yuvDesc; in refAsTexture() local
92 yuvDesc.fConfig = kAlpha_8_GrPixelConfig; in refAsTexture()
95 yuvDesc.fWidth = yuvInfo.fSize[i].fWidth; in refAsTexture()
96 yuvDesc.fHeight = yuvInfo.fSize[i].fHeight; in refAsTexture()
98 bool needsExactTexture = (yuvDesc.fWidth != yuvInfo.fSize[0].fWidth) || in refAsTexture()
99 (yuvDesc.fHeight != yuvInfo.fSize[0].fHeight); in refAsTexture()
101 yuvTextures[i].reset(ctx->textureProvider()->createTexture(yuvDesc, SkBudgeted::kYes)); in refAsTexture()
103 yuvTextures[i].reset(ctx->textureProvider()->createApproxTexture(yuvDesc)); in refAsTexture()
106 !yuvTextures[i]->writePixels(0, 0, yuvDesc.fWidth, yuvDesc.fHeight, in refAsTexture()
107 yuvDesc.fConfig, planes[i], yuvInfo.fRowBytes[i])) { in refAsTexture()
DGrTextureToYUVPlanes.cpp72 GrSurfaceDesc yuvDesc; in GrTextureToYUVPlanes() local
73 yuvDesc.fConfig = kRGBA_8888_GrPixelConfig; in GrTextureToYUVPlanes()
74 yuvDesc.fFlags = kRenderTarget_GrSurfaceFlag; in GrTextureToYUVPlanes()
75 yuvDesc.fWidth = sizes[0].fWidth; in GrTextureToYUVPlanes()
76 yuvDesc.fHeight = sizes[0].fHeight; in GrTextureToYUVPlanes()
77 yuvTex.reset(context->textureProvider()->createApproxTexture(yuvDesc)); in GrTextureToYUVPlanes()