/external/skia/src/gpu/ccpr/ |
D | GrCCPerFlushResources.cpp | 20 GrCCPerFlushResources::GrCCPerFlushResources(GrOnFlushResourceProvider* onFlushRP, in GrCCPerFlushResources() argument 26 GrOnFlushResourceProvider* onFlushRP, const SkIRect& clipIBounds, const SkPath& devPath, in renderDeviceSpacePathInAtlas() argument 39 auto retiredAtlas = this->placeRenderedPathInAtlas(onFlushRP, clippedPathIBounds, in renderDeviceSpacePathInAtlas() 50 GrOnFlushResourceProvider* onFlushRP, const SkIRect& clippedPathIBounds, in placeRenderedPathInAtlas() argument 58 this->flushRenderedPaths(onFlushRP); in placeRenderedPathInAtlas() 61 fAtlas = std::make_unique<GrCCAtlas>(fAtlasSpecs, *onFlushRP->caps()); in placeRenderedPathInAtlas() 90 static void draw_stencil_to_coverage(GrOnFlushResourceProvider* onFlushRP, in draw_stencil_to_coverage() argument 97 bool mustResetStencil = !onFlushRP->caps()->discardStencilValuesAfterRenderPass(); in draw_stencil_to_coverage() 134 void GrCCPerFlushResources::flushRenderedPaths(GrOnFlushResourceProvider* onFlushRP) { in flushRenderedPaths() argument 136 auto surfaceDrawContext = fAtlas->instantiate(onFlushRP); in flushRenderedPaths() [all …]
|
D | GrCoverageCountingPathRenderer.cpp | 151 GrOnFlushResourceProvider* onFlushRP, SkSpan<const uint32_t> /*taskIDs*/) { in preFlush() argument 160 int maxPreferredRTSize = onFlushRP->caps()->maxPreferredRenderTargetSize(); in preFlush() 181 GrCCPerFlushResources perFlushResources(onFlushRP, specs); in preFlush() 188 if (auto retiredAtlas = it->renderPathInAtlas(&perFlushResources, onFlushRP)) { in preFlush() 196 auto atlas = perFlushResources.finalize(onFlushRP); in preFlush()
|
D | GrCCClipPath.cpp | 41 GrOnFlushResourceProvider* onFlushRP) { in renderPathInAtlas() argument 44 onFlushRP, fAccessRect, fDeviceSpacePath, fPathDevIBounds, in renderPathInAtlas()
|
/external/skqp/src/gpu/ccpr/ |
D | GrCCPerFlushResources.cpp | 148 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 …]
|
D | GrCCPathProcessor.cpp | 37 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()
|
D | GrCoverageCountingPathRenderer.cpp | 190 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()
|
D | GrCCDrawPathsOp.cpp | 210 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()
|
D | GrCCPathCache.cpp | 162 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()
|
D | GrCCAtlas.cpp | 164 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()
|
D | GrCCClipPath.cpp | 67 GrOnFlushResourceProvider* onFlushRP) { in renderPathInAtlas() argument
|
D | GrCCStroker.cpp | 366 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()
|
D | GrCCFiller.cpp | 285 bool GrCCFiller::prepareToDraw(GrOnFlushResourceProvider* onFlushRP) { in prepareToDraw() argument 329 fInstanceBuffer = onFlushRP->makeBuffer(kVertex_GrBufferType, in prepareToDraw()
|
/external/skia/src/gpu/tessellate/ |
D | GrTessellationPathRenderer.cpp | 369 void GrTessellationPathRenderer::preFlush(GrOnFlushResourceProvider* onFlushRP, in preFlush() argument 372 this->renderAtlas(onFlushRP); in preFlush() 373 fAtlas.reset(kAtlasInitialSize, *onFlushRP->caps()); in preFlush() 398 void GrTessellationPathRenderer::renderAtlas(GrOnFlushResourceProvider* onFlushRP) { in renderAtlas() argument 399 auto rtc = fAtlas.instantiate(onFlushRP); in renderAtlas() 413 auto op = GrOp::Make<GrPathStencilFillOp>(onFlushRP->recordingContext(), SkMatrix::I(), in renderAtlas() 426 if (onFlushRP->caps()->discardStencilValuesAfterRenderPass()) { in renderAtlas() 447 onFlushRP->addTextureResolveTask(sk_ref_sp(rtc->asTextureProxy()), in renderAtlas()
|
/external/skia/src/gpu/ops/ |
D | GrSmallPathAtlasMgr.h | 50 void preFlush(GrOnFlushResourceProvider* onFlushRP, in preFlush() argument 53 fAtlas->instantiate(onFlushRP); in preFlush()
|
/external/skia/src/gpu/ |
D | GrDynamicAtlas.cpp | 170 GrOnFlushResourceProvider* onFlushRP, sk_sp<GrTexture> backingTexture) { in instantiate() argument 175 SkASSERT(fMaxAtlasSize <= onFlushRP->caps()->maxRenderTargetSize()); in instantiate() 192 auto rtc = onFlushRP->makeRenderTargetContext(fTextureProxy, kTextureOrigin, fColorType, in instantiate() 195 onFlushRP->printWarningMessage(SkStringPrintf( in instantiate()
|
/external/skia/src/gpu/text/ |
D | GrAtlasManager.h | 86 void preFlush(GrOnFlushResourceProvider* onFlushRP, SkSpan<const uint32_t>) override { in preFlush() argument 89 fAtlases[i]->instantiate(onFlushRP); in preFlush()
|
/external/skqp/samplecode/ |
D | SampleCCPRGeometry.cpp | 381 GrOnFlushResourceProvider onFlushRP(context->contextPriv().drawingManager()); in onExecute() local 382 stroker.prepareToDraw(&onFlushRP); in onExecute()
|