Home | History | Annotate | Download | only in gpu

Lines Matching refs:sizes

50 bool GrTextureToYUVPlanes(GrTexture* texture, const SkISize sizes[3], void* const planes[3],
53 // Depending on the relative sizes of the y, u, and v planes we may do 1 to 3 draws/
69 // sizes however we optimize for two other cases - all planes are the same (1 draw to YUV),
71 if (sizes[0] == sizes[1] && sizes[1] == sizes[2]) {
75 yuvDesc.fWidth = sizes[0].fWidth;
76 yuvDesc.fHeight = sizes[0].fHeight;
85 yDesc.fWidth = sizes[0].fWidth;
86 yDesc.fHeight = sizes[0].fHeight;
91 if (sizes[1] == sizes[2]) {
96 uvDesc.fWidth = sizes[1].fWidth;
97 uvDesc.fHeight = sizes[1].fHeight;
106 uvDesc.fWidth = sizes[1].fWidth;
107 uvDesc.fHeight = sizes[1].fHeight;
109 uvDesc.fWidth = sizes[2].fWidth;
110 uvDesc.fHeight = sizes[2].fHeight;
124 if (!convert_texture(texture, dc, sizes[0].fWidth, sizes[0].fHeight, colorSpace,
135 if (!convert_texture(texture, dc, sizes[0].fWidth, sizes[0].fHeight, colorSpace,
144 if (!convert_texture(texture, dc, sizes[1].fWidth, sizes[1].fHeight,
154 if (!convert_texture(texture, dc, sizes[1].fWidth, sizes[1].fHeight,
162 if (!convert_texture(texture, dc, sizes[2].fWidth, sizes[2].fHeight,
170 SkASSERT(sizes[0] == sizes[1] && sizes[1] == sizes[2]);
171 SkISize yuvSize = sizes[0];
202 if (!yTex->readPixels(0, 0, sizes[0].fWidth, sizes[0].fHeight,
207 SkASSERT(sizes[1].fWidth == sizes[2].fWidth);
208 SkISize uvSize = sizes[1];
235 if (!uTex->readPixels(0, 0, sizes[1].fWidth, sizes[1].fHeight,
239 if (!vTex->readPixels(0, 0, sizes[2].fWidth, sizes[2].fHeight,