Lines Matching refs:fGpu
90 fGpu = NULL;
107 SkASSERT(NULL == fGpu);
109 fGpu = GrGpu::Create(backend, backendContext, this);
110 if (NULL == fGpu) {
115 fGpu->setDrawState(fDrawState);
122 fFontCache = SkNEW_ARGS(GrFontCache, (fGpu));
137 if (NULL == fGpu) {
149 fGpu->purgeResources();
161 fGpu->unref();
175 fGpu->abandonResources();
197 fGpu->markContextDirty();
201 fGpu->markContextDirty(state);
207 fGpu->purgeResources();
228 GrResourceKey resourceKey = GrTexture::ComputeKey(fGpu, params, desc, cacheID);
237 GrResourceKey resourceKey = GrTexture::ComputeKey(fGpu, params, desc, cacheID);
319 GrTexture* texture = fGpu->createTexture(rtDesc, NULL, 0);
322 GrDrawTarget::AutoStateRestore asr(fGpu, GrDrawTarget::kReset_ASRInit);
323 GrDrawState* drawState = fGpu->drawState();
335 GrDrawTarget::AutoReleaseGeometry arg(fGpu, 4, 0);
341 fGpu->drawNonIndexed(kTriangleFan_GrPrimitiveType, 0, 4);
360 SkDEBUGCODE(GrTexture* texture = )fGpu->createTexture(rtDesc, stretchedPixels.get(),
376 GrResourceKey resourceKey = GrTexture::ComputeKey(fGpu, params, desc, cacheID);
384 texture= fGpu->createTexture(desc, srcData, rowBytes);
426 if (!fGpu->caps()->reuseScratchTextures() &&
429 return create_scratch_texture(fGpu, fTextureCache, inDesc);
473 resource = create_scratch_texture(fGpu, fTextureCache, desc);
493 if (fGpu->caps()->reuseScratchTextures() || NULL != texture->asRenderTarget()) {
521 if (fGpu->caps()->reuseScratchTextures() || NULL != texture->asRenderTarget()) {
565 return fGpu->createTexture(descCopy, srcData, rowBytes);
578 return GrMin(fGpu->caps()->maxTextureSize(), fMaxTextureSizeOverride);
582 return fGpu->caps()->maxRenderTargetSize();
586 return fGpu->caps()->maxSampleCount();
592 return fGpu->wrapBackendTexture(desc);
596 return fGpu->wrapBackendRenderTarget(desc);
603 const GrDrawTargetCaps* caps = fGpu->caps();
1208 if ((kUnpremul_PixelOpsFlag & flags) || !fGpu->canWriteTexturePixels(texture, config)) {
1222 return fGpu->writeTexturePixels(texture, left, top, width, height,
1336 // If fGpu->readPixels would incur a y-flip cost then we will read the pixels upside down. We'll
1338 bool flipY = fGpu->readPixelsWillPayForYFlip(target, left, top,
1349 fGpu->preferredReadPixelsConfig(dstConfig, target->config())) {
1386 fGpu->fullReadPixelsIsFasterThanPartial()) {
1419 GrDrawTarget::AutoGeometryAndStatePush agasp(fGpu, GrDrawTarget::kReset_ASRInit);
1420 GrDrawState* drawState = fGpu->drawState();
1426 fGpu->drawSimpleRect(rect, NULL);
1434 if (!fGpu->readPixels(target,
1468 fGpu->resolveRenderTarget(target);
1483 GrDrawTarget::AutoStateRestore asr(fGpu, GrDrawTarget::kReset_ASRInit);
1484 GrDrawState* drawState = fGpu->drawState();
1499 fGpu->drawSimpleRect(dstR, NULL);
1534 fGpu->canWriteTexturePixels(target->asTexture(), srcConfig)) {
1548 fGpu->preferredWritePixelsConfig(srcConfig, target->config())) {
1612 GrDrawTarget::AutoGeometryAndStatePush agasp(fGpu, GrDrawTarget::kReset_ASRInit, &matrix);
1613 GrDrawState* drawState = fGpu->drawState();
1619 fGpu->drawSimpleRect(SkRect::MakeWH(SkIntToScalar(width), SkIntToScalar(height)), NULL);
1644 !fGpu->canApplyCoverage()) {
1659 target = fGpu;
1703 return fGpu->caps()->isConfigRenderable(config, withMSAA);
1712 SkNEW_ARGS(GrVertexBufferAllocPool, (fGpu, false,
1716 SkNEW_ARGS(GrIndexBufferAllocPool, (fGpu, false,
1720 fDrawBuffer = SkNEW_ARGS(GrInOrderDrawBuffer, (fGpu,
1732 return fGpu->getQuadIndexBuffer();
1778 SkASSERT(fGpu->caps()->pathRenderingSupport());
1786 path = fGpu->createPath(inPath, stroke);