Lines Matching refs:desc
84 static void generate_bitmap_texture_desc(const SkBitmap& bitmap, GrTextureDesc* desc) {
85 desc->fFlags = kNone_GrTextureFlags;
86 desc->fWidth = bitmap.width();
87 desc->fHeight = bitmap.height();
88 desc->fConfig = SkBitmapConfig2GrPixelConfig(bitmap.config());
89 desc->fSampleCnt = 0;
122 GrTextureDesc desc;
123 generate_bitmap_texture_desc(*bitmap, &desc);
142 GrTexture* result = ctx->createTexture(params, desc, cacheID,
149 GrTexture* result = ctx->lockAndRefScratchTexture(desc,
152 bitmap->height(), desc.fConfig,
160 desc.fConfig = SkBitmapConfig2GrPixelConfig(bitmap->config());
174 GrTexture* result = ctx->createTexture(params, desc, cacheID,
186 GrTexture* result = ctx->lockAndRefScratchTexture(desc, GrContext::kExact_ScratchTexMatch);
189 desc.fConfig,
202 GrTextureDesc desc;
203 generate_bitmap_texture_desc(bitmap, &desc);
204 return ctx->isTextureInCache(desc, cacheID, params);
220 GrTextureDesc desc;
221 generate_bitmap_texture_desc(bitmap, &desc);
223 result = ctx->findAndRefTexture(desc, cacheID, params);