Home
last modified time | relevance | path

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

/external/skia/src/gpu/ccpr/
DGrCCPerFlushResources.cpp151 GrCCPerFlushResources::GrCCPerFlushResources(GrOnFlushResourceProvider* onFlushRP, in GrCCPerFlushResources() argument
166 onFlushRP->caps()) in GrCCPerFlushResources()
168 specs.fRenderedAtlasSpecs, onFlushRP->caps()) in GrCCPerFlushResources()
169 , fIndexBuffer(GrCCPathProcessor::FindIndexBuffer(onFlushRP)) in GrCCPerFlushResources()
170 , fVertexBuffer(GrCCPathProcessor::FindVertexBuffer(onFlushRP)) in GrCCPerFlushResources()
171 , fInstanceBuffer(onFlushRP->makeBuffer(GrGpuBufferType::kVertex, in GrCCPerFlushResources()
196 GrCCPathCache* pathCache, GrOnFlushResourceProvider* onFlushRP, GrCCPathCacheEntry* entry, in upgradeEntryToLiteralCoverageAtlas() argument
228 entry->upgradeToLiteralCoverageAtlas(pathCache, onFlushRP, newAtlas, newAtlasOffset)) { in upgradeEntryToLiteralCoverageAtlas()
432 bool GrCCPerFlushResources::finalize(GrOnFlushResourceProvider* onFlushRP, in finalize() argument
452 if (!fFiller.prepareToDraw(onFlushRP)) { in finalize()
[all …]
DGrCCPathProcessor.cpp37 sk_sp<const GrGpuBuffer> GrCCPathProcessor::FindVertexBuffer(GrOnFlushResourceProvider* onFlushRP) { in FindVertexBuffer() argument
39 return onFlushRP->findOrMakeStaticBuffer(GrGpuBufferType::kVertex, sizeof(kOctoEdgeNorms), in FindVertexBuffer()
67 sk_sp<const GrGpuBuffer> GrCCPathProcessor::FindIndexBuffer(GrOnFlushResourceProvider* onFlushRP) { in FindIndexBuffer() argument
69 if (onFlushRP->caps()->usePrimitiveRestart()) { in FindIndexBuffer()
70 return onFlushRP->findOrMakeStaticBuffer(GrGpuBufferType::kIndex, in FindIndexBuffer()
74 return onFlushRP->findOrMakeStaticBuffer(GrGpuBufferType::kIndex, 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.cpp213 GrOnFlushResourceProvider* onFlushRP, in accountForOwnPaths() argument
216 draw.accountForOwnPath(pathCache, onFlushRP, specs); in accountForOwnPaths()
221 GrCCPathCache* pathCache, GrOnFlushResourceProvider* onFlushRP, in accountForOwnPath() argument
232 pathCache->find(onFlushRP, fShape, fMaskDevIBounds, fMatrix, &fCachedMaskShift); in accountForOwnPath()
254 if (this->shouldCachePathMask(onFlushRP->caps()->maxRenderTargetSize())) { in accountForOwnPath()
306 GrCCPathCache* pathCache, GrOnFlushResourceProvider* onFlushRP, in setupResources() argument
313 draw.setupResources(pathCache, onFlushRP, resources, doCopies, this); in setupResources()
322 GrCCPathCache* pathCache, GrOnFlushResourceProvider* onFlushRP, in setupResources() argument
339 resources->upgradeEntryToLiteralCoverageAtlas(pathCache, onFlushRP, in setupResources()
378 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.cpp165 sk_sp<GrCCCachedAtlas> GrCCAtlas::refOrMakeCachedAtlas(GrOnFlushResourceProvider* onFlushRP) { in refOrMakeCachedAtlas() argument
174 onFlushRP->assignUniqueKeyToProxy(atlasUniqueKey, fTextureProxy.get()); in refOrMakeCachedAtlas()
185 GrOnFlushResourceProvider* onFlushRP, sk_sp<GrTexture> backingTexture) { in makeRenderTargetContext() argument
190 SkASSERT(fMaxTextureSize <= onFlushRP->caps()->maxRenderTargetSize()); in makeRenderTargetContext()
200 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(GrGpuBufferType::kVertex, 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
330 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/samplecode/
DSampleCCPRGeometry.cpp383 GrOnFlushResourceProvider onFlushRP(context->priv().drawingManager()); in onExecute() local
384 stroker.prepareToDraw(&onFlushRP); in onExecute()
/external/skqp/samplecode/
DSampleCCPRGeometry.cpp381 GrOnFlushResourceProvider onFlushRP(context->contextPriv().drawingManager()); in onExecute() local
382 stroker.prepareToDraw(&onFlushRP); in onExecute()