Home
last modified time | relevance | path

Searched refs:onFlushRP (Results 1 – 24 of 24) sorted by relevance

/external/skia/src/gpu/tessellate/
DGrGpuTessellationPathRenderer.cpp126 void GrGpuTessellationPathRenderer::preFlush(GrOnFlushResourceProvider* onFlushRP, in preFlush() argument
129 this->renderAtlas(onFlushRP); in preFlush()
130 fAtlas.reset(kAtlasInitialSize, *onFlushRP->caps()); in preFlush()
155 void GrGpuTessellationPathRenderer::renderAtlas(GrOnFlushResourceProvider* onFlushRP) { in renderAtlas() argument
156 auto rtc = fAtlas.instantiate(onFlushRP); in renderAtlas()
170 auto op = onFlushRP->opMemoryPool()->allocate<GrTessellatePathOp>( in renderAtlas()
182 bool mustResetStencil = !onFlushRP->caps()->discardStencilValuesAfterRenderPass(); in renderAtlas()
212 onFlushRP->addTextureResolveTask(sk_ref_sp(rtc->asTextureProxy()), in renderAtlas()
/external/skia/src/gpu/ccpr/
DGrCCPerFlushResources.cpp171 GrOnFlushResourceProvider* onFlushRP, CoverageType coverageType, in GrCCPerFlushResources() argument
189 onFlushRP->caps()) in GrCCPerFlushResources()
190 , fRenderedAtlasStack(coverageType, specs.fRenderedAtlasSpecs, onFlushRP->caps()) in GrCCPerFlushResources()
191 , fIndexBuffer(GrCCPathProcessor::FindIndexBuffer(onFlushRP)) in GrCCPerFlushResources()
192 , fVertexBuffer(GrCCPathProcessor::FindVertexBuffer(onFlushRP)) in GrCCPerFlushResources()
193 , fInstanceBuffer(onFlushRP->makeBuffer(GrGpuBufferType::kVertex, in GrCCPerFlushResources()
217 fStencilResolveBuffer = onFlushRP->makeBuffer( in GrCCPerFlushResources()
232 GrCCPathCache* pathCache, GrOnFlushResourceProvider* onFlushRP, GrCCPathCacheEntry* entry, in upgradeEntryToLiteralCoverageAtlas() argument
264 entry->upgradeToLiteralCoverageAtlas(pathCache, onFlushRP, newAtlas, newAtlasOffset)) { in upgradeEntryToLiteralCoverageAtlas()
497 bool GrCCPerFlushResources::finalize(GrOnFlushResourceProvider* onFlushRP) { in finalize() argument
[all …]
DGrCCPathProcessor.cpp39 sk_sp<const GrGpuBuffer> GrCCPathProcessor::FindVertexBuffer(GrOnFlushResourceProvider* onFlushRP) { in FindVertexBuffer() argument
41 return onFlushRP->findOrMakeStaticBuffer(GrGpuBufferType::kVertex, sizeof(kOctoEdgeNorms), in FindVertexBuffer()
69 sk_sp<const GrGpuBuffer> GrCCPathProcessor::FindIndexBuffer(GrOnFlushResourceProvider* onFlushRP) { in FindIndexBuffer() argument
71 if (onFlushRP->caps()->usePrimitiveRestart()) { in FindIndexBuffer()
72 return onFlushRP->findOrMakeStaticBuffer(GrGpuBufferType::kIndex, in FindIndexBuffer()
76 return onFlushRP->findOrMakeStaticBuffer(GrGpuBufferType::kIndex, in FindIndexBuffer()
DGrCoverageCountingPathRenderer.cpp230 GrOnFlushResourceProvider* onFlushRP, const uint32_t* opsTaskIDs, int numOpsTaskIDs) { in preFlush() argument
245 int maxPreferredRTSize = onFlushRP->caps()->maxPreferredRenderTargetSize(); in preFlush()
264 op->accountForOwnPaths(fPathCache.get(), onFlushRP, &specs); in preFlush()
285 auto resources = sk_make_sp<GrCCPerFlushResources>(onFlushRP, fCoverageType, specs); in preFlush()
293 op->setupResources(fPathCache.get(), onFlushRP, resources.get(), doCopies); in preFlush()
296 clipsIter.second.renderPathInAtlas(resources.get(), onFlushRP); in preFlush()
303 fPathCache->purgeInvalidatedAtlasTextures(onFlushRP); in preFlush()
307 if (!resources->finalize(onFlushRP)) { in preFlush()
DGrCCPathCache.cpp164 GrOnFlushResourceProvider* onFlushRP, const GrShape& shape, in find() argument
235 if (sk_sp<GrTextureProxy> onFlushProxy = onFlushRP->findOrCreateProxyByUniqueKey( in find()
299 void GrCCPathCache::purgeInvalidatedAtlasTextures(GrOnFlushResourceProvider* onFlushRP) { in purgeInvalidatedAtlasTextures() argument
301 onFlushRP->removeUniqueKeyFromProxy(proxy.get()); in purgeInvalidatedAtlasTextures()
306 onFlushRP->processInvalidUniqueKey(key); in purgeInvalidatedAtlasTextures()
359 GrOnFlushResourceProvider* onFlushRP, GrCCAtlas* atlas, const SkIVector& atlasOffset, in setCoverageCountAtlas() argument
370 fCachedAtlas = atlas->refOrMakeCachedAtlas(onFlushRP); in setCoverageCountAtlas()
381 GrCCPathCache* pathCache, GrOnFlushResourceProvider* onFlushRP, GrCCAtlas* atlas, in upgradeToLiteralCoverageAtlas() argument
390 fCachedAtlas = atlas->refOrMakeCachedAtlas(onFlushRP); in upgradeToLiteralCoverageAtlas()
DGrCCDrawPathsOp.cpp224 GrOnFlushResourceProvider* onFlushRP, in accountForOwnPaths() argument
227 draw.accountForOwnPath(pathCache, onFlushRP, specs); in accountForOwnPaths()
232 GrCCPathCache* pathCache, GrOnFlushResourceProvider* onFlushRP, in accountForOwnPath() argument
243 onFlushRP, fShape, fMaskDevIBounds, fMatrix, &fCachedMaskShift); in accountForOwnPath()
265 if (this->shouldCachePathMask(onFlushRP->caps()->maxRenderTargetSize())) { in accountForOwnPath()
318 GrCCPathCache* pathCache, GrOnFlushResourceProvider* onFlushRP, in setupResources() argument
325 draw.setupResources(pathCache, onFlushRP, resources, doCopies, this); in setupResources()
334 GrCCPathCache* pathCache, GrOnFlushResourceProvider* onFlushRP, in setupResources() argument
349 pathCache, onFlushRP, fCacheEntry.get(), fillRule); in setupResources()
400 onFlushRP, atlas, devToAtlasOffset, octoBounds, devIBounds, fCachedMaskShift); in setupResources()
DGrCCAtlas.cpp65 sk_sp<GrCCCachedAtlas> GrCCAtlas::refOrMakeCachedAtlas(GrOnFlushResourceProvider* onFlushRP) { in refOrMakeCachedAtlas() argument
74 onFlushRP->assignUniqueKeyToProxy(atlasUniqueKey, this->textureProxy()); in refOrMakeCachedAtlas()
DGrCCClipPath.cpp72 GrOnFlushResourceProvider* onFlushRP) { in renderPathInAtlas() argument
DGrCCStroker.cpp369 InstanceBufferBuilder(GrOnFlushResourceProvider* onFlushRP, GrCCStroker* stroker) { in InstanceBufferBuilder() argument
378 fInstanceBuffer = onFlushRP->makeBuffer(GrGpuBufferType::kVertex, in InstanceBufferBuilder()
577 bool GrCCStroker::prepareToDraw(GrOnFlushResourceProvider* onFlushRP) { in prepareToDraw() argument
612 InstanceBufferBuilder builder(onFlushRP, this); in prepareToDraw()
DGrCCFiller.cpp294 bool GrCCFiller::prepareToDraw(GrOnFlushResourceProvider* onFlushRP) { in prepareToDraw() argument
343 onFlushRP->makeBuffer(GrGpuBufferType::kVertex, quadEndIdx * sizeof(QuadPointInstance)); in prepareToDraw()
/external/skqp/src/gpu/ccpr/
DGrCCPerFlushResources.cpp148 GrCCPerFlushResources::GrCCPerFlushResources(GrOnFlushResourceProvider* onFlushRP, in GrCCPerFlushResources() argument
163 onFlushRP->caps()) in GrCCPerFlushResources()
165 specs.fRenderedAtlasSpecs, onFlushRP->caps()) in GrCCPerFlushResources()
166 , fIndexBuffer(GrCCPathProcessor::FindIndexBuffer(onFlushRP)) in GrCCPerFlushResources()
167 , fVertexBuffer(GrCCPathProcessor::FindVertexBuffer(onFlushRP)) in GrCCPerFlushResources()
168 , fInstanceBuffer(onFlushRP->makeBuffer(kVertex_GrBufferType, in GrCCPerFlushResources()
193 GrCCPathCache* pathCache, GrOnFlushResourceProvider* onFlushRP, GrCCPathCacheEntry* entry, in upgradeEntryToLiteralCoverageAtlas() argument
225 entry->upgradeToLiteralCoverageAtlas(pathCache, onFlushRP, newAtlas, newAtlasOffset)) { in upgradeEntryToLiteralCoverageAtlas()
429 bool GrCCPerFlushResources::finalize(GrOnFlushResourceProvider* onFlushRP, in finalize() argument
449 if (!fFiller.prepareToDraw(onFlushRP)) { in finalize()
[all …]
DGrCCPathProcessor.cpp37 sk_sp<const GrBuffer> GrCCPathProcessor::FindVertexBuffer(GrOnFlushResourceProvider* onFlushRP) { in FindVertexBuffer() argument
39 return onFlushRP->findOrMakeStaticBuffer(kVertex_GrBufferType, sizeof(kOctoEdgeNorms), in FindVertexBuffer()
67 sk_sp<const GrBuffer> GrCCPathProcessor::FindIndexBuffer(GrOnFlushResourceProvider* onFlushRP) { in FindIndexBuffer() argument
69 if (onFlushRP->caps()->usePrimitiveRestart()) { in FindIndexBuffer()
70 return onFlushRP->findOrMakeStaticBuffer(kIndex_GrBufferType, sizeof(kOctoIndicesAsStrips), in FindIndexBuffer()
73 return onFlushRP->findOrMakeStaticBuffer(kIndex_GrBufferType, sizeof(kOctoIndicesAsTris), in FindIndexBuffer()
DGrCoverageCountingPathRenderer.cpp190 void GrCoverageCountingPathRenderer::preFlush(GrOnFlushResourceProvider* onFlushRP, in preFlush() argument
207 int maxPreferredRTSize = onFlushRP->caps()->maxPreferredRenderTargetSize(); in preFlush()
226 op->accountForOwnPaths(fPathCache.get(), onFlushRP, &specs); in preFlush()
247 auto resources = sk_make_sp<GrCCPerFlushResources>(onFlushRP, specs); in preFlush()
255 op->setupResources(fPathCache.get(), onFlushRP, resources.get(), doCopies); in preFlush()
258 clipsIter.second.renderPathInAtlas(resources.get(), onFlushRP); in preFlush()
265 fPathCache->purgeInvalidatedAtlasTextures(onFlushRP); in preFlush()
269 if (!resources->finalize(onFlushRP, out)) { in preFlush()
DGrCCDrawPathsOp.cpp210 GrOnFlushResourceProvider* onFlushRP, in accountForOwnPaths() argument
213 draw.accountForOwnPath(pathCache, onFlushRP, specs); in accountForOwnPaths()
218 GrCCPathCache* pathCache, GrOnFlushResourceProvider* onFlushRP, in accountForOwnPath() argument
229 pathCache->find(onFlushRP, fShape, fMaskDevIBounds, fMatrix, &fCachedMaskShift); in accountForOwnPath()
251 if (this->shouldCachePathMask(onFlushRP->caps()->maxRenderTargetSize())) { in accountForOwnPath()
303 GrCCPathCache* pathCache, GrOnFlushResourceProvider* onFlushRP, in setupResources() argument
310 draw.setupResources(pathCache, onFlushRP, resources, doCopies, this); in setupResources()
319 GrCCPathCache* pathCache, GrOnFlushResourceProvider* onFlushRP, in setupResources() argument
336 resources->upgradeEntryToLiteralCoverageAtlas(pathCache, onFlushRP, in setupResources()
375 fCacheEntry->setCoverageCountAtlas(onFlushRP, atlas, devToAtlasOffset, devBounds, in setupResources()
DGrCCPathCache.cpp162 GrOnFlushResourceProvider* onFlushRP, const GrShape& shape, in find() argument
233 onFlushRP->findOrCreateProxyByUniqueKey(entry->fCachedAtlas->textureKey(), in find()
294 void GrCCPathCache::purgeInvalidatedAtlasTextures(GrOnFlushResourceProvider* onFlushRP) { in purgeInvalidatedAtlasTextures() argument
296 onFlushRP->removeUniqueKeyFromProxy(proxy.get()); in purgeInvalidatedAtlasTextures()
301 onFlushRP->processInvalidUniqueKey(key); in purgeInvalidatedAtlasTextures()
354 GrOnFlushResourceProvider* onFlushRP, GrCCAtlas* atlas, const SkIVector& atlasOffset, in setCoverageCountAtlas() argument
366 fCachedAtlas = atlas->refOrMakeCachedAtlas(onFlushRP); in setCoverageCountAtlas()
379 GrCCPathCache* pathCache, GrOnFlushResourceProvider* onFlushRP, GrCCAtlas* atlas, in upgradeToLiteralCoverageAtlas() argument
388 fCachedAtlas = atlas->refOrMakeCachedAtlas(onFlushRP); in upgradeToLiteralCoverageAtlas()
DGrCCAtlas.cpp164 sk_sp<GrCCCachedAtlas> GrCCAtlas::refOrMakeCachedAtlas(GrOnFlushResourceProvider* onFlushRP) { in refOrMakeCachedAtlas() argument
173 onFlushRP->assignUniqueKeyToProxy(atlasUniqueKey, fTextureProxy.get()); in refOrMakeCachedAtlas()
184 GrOnFlushResourceProvider* onFlushRP, sk_sp<GrTexture> backingTexture) { in makeRenderTargetContext() argument
189 SkASSERT(fMaxTextureSize <= onFlushRP->caps()->maxRenderTargetSize()); in makeRenderTargetContext()
199 onFlushRP->makeRenderTargetContext(fTextureProxy, nullptr, nullptr); in makeRenderTargetContext()
DGrCCClipPath.cpp67 GrOnFlushResourceProvider* onFlushRP) { in renderPathInAtlas() argument
DGrCCStroker.cpp366 InstanceBufferBuilder(GrOnFlushResourceProvider* onFlushRP, GrCCStroker* stroker) { in InstanceBufferBuilder() argument
375 fInstanceBuffer = onFlushRP->makeBuffer(kVertex_GrBufferType, in InstanceBufferBuilder()
563 bool GrCCStroker::prepareToDraw(GrOnFlushResourceProvider* onFlushRP) { in prepareToDraw() argument
598 InstanceBufferBuilder builder(onFlushRP, this); in prepareToDraw()
DGrCCFiller.cpp285 bool GrCCFiller::prepareToDraw(GrOnFlushResourceProvider* onFlushRP) { in prepareToDraw() argument
329 fInstanceBuffer = onFlushRP->makeBuffer(kVertex_GrBufferType, in prepareToDraw()
/external/skia/src/gpu/ops/
DGrSmallPathRenderer.h39 void preFlush(GrOnFlushResourceProvider* onFlushRP, const uint32_t*, int) override { in preFlush() argument
41 fAtlas->instantiate(onFlushRP); in preFlush()
/external/skia/src/gpu/
DGrDynamicAtlas.cpp163 GrOnFlushResourceProvider* onFlushRP, sk_sp<GrTexture> backingTexture) { in instantiate() argument
168 SkASSERT(fMaxAtlasSize <= onFlushRP->caps()->maxRenderTargetSize()); in instantiate()
185 auto rtc = onFlushRP->makeRenderTargetContext(fTextureProxy, kTextureOrigin, fColorType, in instantiate()
188 onFlushRP->printWarningMessage(SkStringPrintf( in instantiate()
/external/skia/src/gpu/text/
DGrAtlasManager.h91 void preFlush(GrOnFlushResourceProvider* onFlushRP, const uint32_t*, int) override { in preFlush() argument
94 fAtlases[i]->instantiate(onFlushRP); in preFlush()
/external/skia/samplecode/
DSampleCCPRGeometry.cpp389 GrOnFlushResourceProvider onFlushRP(context->priv().drawingManager()); in onExecute() local
390 stroker.prepareToDraw(&onFlushRP); in onExecute()
/external/skqp/samplecode/
DSampleCCPRGeometry.cpp381 GrOnFlushResourceProvider onFlushRP(context->contextPriv().drawingManager()); in onExecute() local
382 stroker.prepareToDraw(&onFlushRP); in onExecute()