Lines Matching refs:desc
125 const GrTextureDesc& desc) {
129 if (!GrIsPow2(desc.fWidth) || !GrIsPow2(desc.fHeight)) {
150 GrSurfaceOrigin resolve_origin(const GrTextureDesc& desc) {
154 bool renderTarget = 0 != (desc.fFlags & kRenderTarget_GrTextureFlagBit);
155 if (kDefault_GrSurfaceOrigin == desc.fOrigin) {
158 return desc.fOrigin;
165 const GrTextureDesc& desc,
167 GrResourceKey::ResourceFlags flags = get_texture_flags(gpu, params, desc);
171 GrResourceKey GrTexture::ComputeScratchKey(const GrTextureDesc& desc) {
176 GrAssert(desc.fHeight < (1 << 16));
177 GrAssert(desc.fWidth < (1 << 16));
178 idKey.fData32[0] = (desc.fWidth) | (desc.fHeight << 16);
179 idKey.fData32[1] = desc.fConfig | desc.fSampleCnt << 16;
180 idKey.fData32[2] = desc.fFlags;
181 idKey.fData32[3] = resolve_origin(desc); // Only needs 2 bits actually