Lines Matching refs:rtDesc
37 GrSurfaceDesc rtDesc = inputTexture->desc(); in copy_on_gpu() local
38 rtDesc.fFlags = rtDesc.fFlags | kRenderTarget_GrSurfaceFlag; in copy_on_gpu()
39 rtDesc.fWidth = copyParams.fWidth; in copy_on_gpu()
40 rtDesc.fHeight = copyParams.fHeight; in copy_on_gpu()
41 rtDesc.fConfig = GrMakePixelConfigUncompressed(rtDesc.fConfig); in copy_on_gpu()
45 if (!caps->isConfigRenderable(rtDesc.fConfig, false)) { in copy_on_gpu()
46 if (GrPixelConfigIsAlphaOnly(rtDesc.fConfig)) { in copy_on_gpu()
48 rtDesc.fConfig = kAlpha_8_GrPixelConfig; in copy_on_gpu()
50 rtDesc.fConfig = kSkia8888_GrPixelConfig; in copy_on_gpu()
55 (kRGB_GrColorComponentFlags & GrPixelConfigComponentMask(rtDesc.fConfig))) { in copy_on_gpu()
57 rtDesc.fConfig = kSkia8888_GrPixelConfig; in copy_on_gpu()
66 SkAutoTUnref<GrTexture> copy(context->textureProvider()->createTexture(rtDesc, in copy_on_gpu()
120 SkRect dstRect = SkRect::MakeWH(SkIntToScalar(rtDesc.fWidth), SkIntToScalar(rtDesc.fHeight)); in copy_on_gpu()