Lines Matching refs:desc
58 GrSurfaceOrigin resolve_origin(const GrSurfaceDesc& desc) { in resolve_origin() argument
62 bool renderTarget = 0 != (desc.fFlags & kRenderTarget_GrSurfaceFlag); in resolve_origin()
63 if (kDefault_GrSurfaceOrigin == desc.fOrigin) { in resolve_origin()
66 return desc.fOrigin; in resolve_origin()
72 GrTexture::GrTexture(GrGpu* gpu, const GrSurfaceDesc& desc, GrSLType samplerType, in GrTexture() argument
74 : INHERITED(gpu, desc) in GrTexture()
94 void GrTexturePriv::ComputeScratchKey(const GrSurfaceDesc& desc, GrScratchKey* key) { in ComputeScratchKey() argument
97 GrSurfaceOrigin origin = resolve_origin(desc); in ComputeScratchKey()
98 uint32_t flags = desc.fFlags & ~kCheckAllocation_GrSurfaceFlag; in ComputeScratchKey()
102 SkASSERT(static_cast<int>(desc.fConfig) < (1 << 5)); in ComputeScratchKey()
103 SkASSERT(desc.fSampleCnt < (1 << 8)); in ComputeScratchKey()
108 builder[0] = desc.fWidth; in ComputeScratchKey()
109 builder[1] = desc.fHeight; in ComputeScratchKey()
110 builder[2] = desc.fConfig | (desc.fIsMipMapped << 5) | (desc.fSampleCnt << 6) | (flags << 14) in ComputeScratchKey()