Lines Matching defs:desc
47 GrGLTexture::GrGLTexture(GrGLGpu* gpu, SkBudgeted budgeted, const Desc& desc,
49 : GrSurface(gpu, desc.fSize, GrProtected::kNo)
50 , INHERITED(gpu, desc.fSize, GrProtected::kNo,
51 TextureTypeFromTarget(desc.fTarget), mipmapStatus)
53 this->init(desc);
55 if (GrGLFormatIsCompressed(desc.fFormat)) {
60 GrGLTexture::GrGLTexture(GrGLGpu* gpu, const Desc& desc, GrMipmapStatus mipmapStatus,
63 : GrSurface(gpu, desc.fSize, GrProtected::kNo)
64 , INHERITED(gpu, desc.fSize, GrProtected::kNo,
65 TextureTypeFromTarget(desc.fTarget), mipmapStatus)
68 this->init(desc);
75 GrGLTexture::GrGLTexture(GrGLGpu* gpu, const Desc& desc, sk_sp<GrGLTextureParameters> parameters,
77 : GrSurface(gpu, desc.fSize, GrProtected::kNo)
78 , INHERITED(gpu, desc.fSize, GrProtected::kNo,
79 TextureTypeFromTarget(desc.fTarget), mipmapStatus) {
80 SkASSERT(parameters || desc.fOwnership == GrBackendObjectOwnership::kOwned);
82 this->init(desc);
85 void GrGLTexture::init(const Desc& desc) {
86 SkASSERT(0 != desc.fID);
87 SkASSERT(GrGLFormat::kUnknown != desc.fFormat);
88 fID = desc.fID;
89 fFormat = desc.fFormat;
90 fTextureIDOwnership = desc.fOwnership;
128 const Desc& desc,
133 new GrGLTexture(gpu, desc, mipmapStatus, std::move(parameters), cacheable, ioType));