Home | History | Annotate | Download | only in gpu

Lines Matching refs:desc

225 GrTexture* GrContext::findAndRefTexture(const GrTextureDesc& desc,
228 GrResourceKey resourceKey = GrTexture::ComputeKey(fGpu, params, desc, cacheID);
234 bool GrContext::isTextureInCache(const GrTextureDesc& desc,
237 GrResourceKey resourceKey = GrTexture::ComputeKey(fGpu, params, desc, cacheID);
298 GrTexture* GrContext::createResizedTexture(const GrTextureDesc& desc,
303 SkAutoTUnref<GrTexture> clampedTexture(this->findAndRefTexture(desc, cacheID, NULL));
305 clampedTexture.reset(this->createTexture(NULL, desc, cacheID, srcData, rowBytes));
312 GrTextureDesc rtDesc = desc;
316 rtDesc.fWidth = GrNextPow2(desc.fWidth);
317 rtDesc.fHeight = GrNextPow2(desc.fHeight);
351 rtDesc.fWidth = GrNextPow2(desc.fWidth);
352 rtDesc.fHeight = GrNextPow2(desc.fHeight);
353 size_t bpp = GrBytesPerPixel(desc.fConfig);
356 srcData, desc.fWidth, desc.fHeight, bpp);
369 const GrTextureDesc& desc,
376 GrResourceKey resourceKey = GrTexture::ComputeKey(fGpu, params, desc, cacheID);
380 texture = this->createResizedTexture(desc, cacheID,
384 texture= fGpu->createTexture(desc, srcData, rowBytes);
403 const GrTextureDesc& desc) {
404 GrTexture* texture = gpu->createTexture(desc, NULL, 0);
406 GrResourceKey key = GrTexture::ComputeScratchKey(texture->desc());
432 GrTextureDesc desc = inDesc;
437 desc.fWidth = GrMax(MIN_SIZE, GrNextPow2(desc.fWidth));
438 desc.fHeight = GrMax(MIN_SIZE, GrNextPow2(desc.fHeight));
442 int origWidth = desc.fWidth;
443 int origHeight = desc.fHeight;
446 GrResourceKey key = GrTexture::ComputeScratchKey(desc);
461 if (desc.fFlags & kNoStencil_GrTextureFlagBit) {
462 desc.fFlags = desc.fFlags & ~kNoStencil_GrTextureFlagBit;
470 desc.fFlags = inDesc.fFlags;
471 desc.fWidth = origWidth;
472 desc.fHeight = origHeight;
473 resource = create_scratch_texture(fGpu, fTextureCache, desc);
591 GrTexture* GrContext::wrapBackendTexture(const GrBackendTextureDesc& desc) {
592 return fGpu->wrapBackendTexture(desc);
595 GrRenderTarget* GrContext::wrapBackendRenderTarget(const GrBackendRenderTargetDesc& desc) {
596 return fGpu->wrapBackendRenderTarget(desc);
1245 GrTextureDesc desc;
1246 desc.fFlags = kRenderTarget_GrTextureFlagBit;
1247 desc.fWidth = width;
1248 desc.fHeight = height;
1249 desc.fConfig = config;
1250 desc.fOrigin = kTopLeft_GrSurfaceOrigin;
1251 ast.set(this, desc, kExact_ScratchTexMatch);
1370 GrTextureDesc desc;
1371 desc.fFlags = kRenderTarget_GrTextureFlagBit;
1372 desc.fWidth = width;
1373 desc.fHeight = height;
1374 desc.fConfig = readConfig;
1375 desc.fOrigin = kTopLeft_GrSurfaceOrigin;
1389 ast.set(this, desc, match);
1553 GrTextureDesc desc;
1554 desc.fWidth = width;
1555 desc.fHeight = height;
1556 desc.fConfig = writeConfig;
1557 GrAutoScratchTexture ast(this, desc);