/third_party/skia/src/gpu/ops/ |
D | PathStencilCoverOp.cpp | 225 void PathStencilCoverOp::onPrepare(GrOpFlushState* flushState) { in onPrepare() argument 227 this->prePreparePrograms({flushState->allocator(), flushState->writeView(), in onPrepare() 228 flushState->usesMSAASurface(), &flushState->dstProxyView(), in onPrepare() 229 flushState->renderPassBarriers(), flushState->colorLoadOp(), in onPrepare() 230 &flushState->caps()}, flushState->detachAppliedClip()); in onPrepare() 239 GrEagerDynamicVertexAllocator vertexAlloc(flushState, &fFanBuffer, &fFanBaseVertex); in onPrepare() 263 fTessellator->prepare(flushState, in onPrepare() 264 tessShader->maxTessellationSegments(*flushState->caps().shaderCaps()), in onPrepare() 272 VertexWriter vertexWriter = flushState->makeVertexSpace(instanceStride, in onPrepare() 289 flushState->writeView().asRenderTargetProxy()->backingStoreBoundsRect(); in onPrepare() [all …]
|
D | PathTessellateOp.cpp | 104 void PathTessellateOp::onPrepare(GrOpFlushState* flushState) { in onPrepare() argument 106 this->prepareTessellator({flushState->allocator(), flushState->writeView(), in onPrepare() 107 flushState->usesMSAASurface(), &flushState->dstProxyView(), in onPrepare() 108 flushState->renderPassBarriers(), flushState->colorLoadOp(), in onPrepare() 109 &flushState->caps()}, flushState->detachAppliedClip()); in onPrepare() 113 fTessellator->prepare(flushState, in onPrepare() 114 tessShader->maxTessellationSegments(*flushState->caps().shaderCaps()), in onPrepare() 121 void PathTessellateOp::onExecute(GrOpFlushState* flushState, const SkRect& chainBounds) { in onExecute() argument 124 flushState->bindPipelineAndScissorClip(*fTessellationProgram, this->bounds()); in onExecute() 125 flushState->bindTextures(fTessellationProgram->geomProc(), nullptr, in onExecute() [all …]
|
D | PathInnerTriangulateOp.cpp | 402 void PathInnerTriangulateOp::onPrepare(GrOpFlushState* flushState) { in onPrepare() argument 403 const GrCaps& caps = flushState->caps(); in onPrepare() 406 this->prePreparePrograms({flushState->allocator(), flushState->writeView(), in onPrepare() 407 flushState->usesMSAASurface(), &flushState->dstProxyView(), in onPrepare() 408 flushState->renderPassBarriers(), flushState->colorLoadOp(), in onPrepare() 409 &caps}, flushState->detachAppliedClip()); in onPrepare() 416 GrEagerDynamicVertexAllocator alloc(flushState, &fFanBuffer, &fBaseFanVertex); in onPrepare() 425 PatchWriter patchWriter(flushState, fTessellator, patchPreallocCount); in onPrepare() 455 fTessellator->prepareFixedCountBuffers(flushState); in onPrepare() 464 fHullVertexBufferIfNoIDSupport = flushState->resourceProvider()->findOrMakeStaticBuffer( in onPrepare() [all …]
|
D | DrawAtlasPathOp.cpp | 185 void DrawAtlasPathOp::onPrepare(GrOpFlushState* flushState) { in onPrepare() argument 187 this->prepareProgram(flushState->caps(), flushState->allocator(), flushState->writeView(), in onPrepare() 188 flushState->usesMSAASurface(), flushState->detachAppliedClip(), in onPrepare() 189 flushState->dstProxyView(), flushState->renderPassBarriers(), in onPrepare() 190 flushState->colorLoadOp()); in onPrepare() 194 if (VertexWriter instanceWriter = flushState->makeVertexSpace( in onPrepare() 206 if (!flushState->caps().shaderCaps()->vertexIDSupport()) { in onPrepare() 211 fVertexBufferIfNoIDSupport = flushState->resourceProvider()->findOrMakeStaticBuffer( in onPrepare() 216 void DrawAtlasPathOp::onExecute(GrOpFlushState* flushState, const SkRect& chainBounds) { in onExecute() argument 220 flushState->bindPipelineAndScissorClip(*fProgram, this->bounds()); in onExecute() [all …]
|
D | StrokeTessellateOp.cpp | 246 void StrokeTessellateOp::onPrepare(GrOpFlushState* flushState) { in onPrepare() argument 248 this->prePrepareTessellator({flushState->allocator(), flushState->writeView(), in onPrepare() 249 flushState->usesMSAASurface(), &flushState->dstProxyView(), in onPrepare() 250 flushState->renderPassBarriers(), flushState->colorLoadOp(), in onPrepare() 251 &flushState->caps()}, flushState->detachAppliedClip()); in onPrepare() 258 int fixedEdgeCount = fTessellator->prepare(flushState, in onPrepare() 268 void StrokeTessellateOp::onExecute(GrOpFlushState* flushState, const SkRect& chainBounds) { in onExecute() argument 270 flushState->bindPipelineAndScissorClip(*fStencilProgram, chainBounds); in onExecute() 271 flushState->bindTextures(fStencilProgram->geomProc(), nullptr, fStencilProgram->pipeline()); in onExecute() 272 fTessellator->draw(flushState); in onExecute() [all …]
|
D | GrSimpleMeshDrawOpHelper.cpp | 128 GrOpFlushState* flushState, in CreatePipeline() argument 131 return CreatePipeline(&flushState->caps(), in CreatePipeline() 132 flushState->allocator(), in CreatePipeline() 133 flushState->writeView().swizzle(), in CreatePipeline() 134 flushState->detachAppliedClip(), in CreatePipeline() 135 flushState->dstProxyView(), in CreatePipeline() 140 const GrPipeline* GrSimpleMeshDrawOpHelper::createPipeline(GrOpFlushState* flushState) { in createPipeline() argument 141 return CreatePipeline(&flushState->caps(), in createPipeline() 142 flushState->allocator(), in createPipeline() 143 flushState->writeView().swizzle(), in createPipeline() [all …]
|
D | OpsTask.cpp | 493 void OpsTask::onPrepare(GrOpFlushState* flushState) { in onPrepare() argument 506 flushState->setSampledProxyArray(&fSampledProxies); in onPrepare() 522 flushState->setOpArgs(&opArgs); in onPrepare() 530 chain.head()->prepare(flushState); in onPrepare() 531 flushState->setOpArgs(nullptr); in onPrepare() 534 flushState->setSampledProxyArray(nullptr); in onPrepare() 540 bool OpsTask::onExecute(GrOpFlushState* flushState) { in onExecute() argument 559 !flushState->gpu()->caps()->performColorClearsAsDraws()); in onExecute() 561 const GrCaps& caps = *flushState->gpu()->caps(); in onExecute() 568 if (!flushState->resourceProvider()->attachStencilAttachment(renderTarget, in onExecute() [all …]
|
/third_party/skia/gm/ |
D | fwidth_squircle.cpp | 188 GrProgramInfo* createProgramInfo(GrOpFlushState* flushState) const { in createProgramInfo() 189 return this->createProgramInfo(&flushState->caps(), in createProgramInfo() 190 flushState->allocator(), in createProgramInfo() 191 flushState->writeView(), in createProgramInfo() 192 flushState->usesMSAASurface(), in createProgramInfo() 193 flushState->detachAppliedClip(), in createProgramInfo() 194 flushState->dstProxyView(), in createProgramInfo() 195 flushState->renderPassBarriers(), in createProgramInfo() 196 flushState->colorLoadOp()); in createProgramInfo() 220 void onPrepare(GrOpFlushState* flushState) final { in onPrepare() argument [all …]
|
D | clockwise.cpp | 167 GrProgramInfo* createProgramInfo(GrOpFlushState* flushState) const { in createProgramInfo() 168 return this->createProgramInfo(&flushState->caps(), in createProgramInfo() 169 flushState->allocator(), in createProgramInfo() 170 flushState->writeView(), in createProgramInfo() 171 flushState->usesMSAASurface(), in createProgramInfo() 172 flushState->detachAppliedClip(), in createProgramInfo() 173 flushState->dstProxyView(), in createProgramInfo() 174 flushState->renderPassBarriers(), in createProgramInfo() 175 flushState->colorLoadOp()); in createProgramInfo() 199 void onPrepare(GrOpFlushState* flushState) override { in onPrepare() argument [all …]
|
/third_party/flutter/skia/src/gpu/ |
D | GrTextureOpList.cpp | 82 void GrTextureOpList::onPrepare(GrOpFlushState* flushState) { in onPrepare() argument 97 flushState->setOpArgs(&opArgs); in onPrepare() 98 fRecordedOps[i]->prepare(flushState); in onPrepare() 99 flushState->setOpArgs(nullptr); in onPrepare() 104 bool GrTextureOpList::onExecute(GrOpFlushState* flushState) { in onExecute() argument 121 flushState->gpu()->getCommandBuffer(fTarget->peekTexture(), in onExecute() 123 flushState->setCommandBuffer(commandBuffer); in onExecute() 137 flushState->setOpArgs(&opArgs); in onExecute() 138 fRecordedOps[i]->execute(flushState, fRecordedOps[i].get()->bounds()); in onExecute() 139 flushState->setOpArgs(nullptr); in onExecute() [all …]
|
D | GrRenderTask.h | 32 void prepare(GrOpFlushState* flushState); 33 bool execute(GrOpFlushState* flushState) { return this->onExecute(flushState); } in execute() argument 165 virtual void onPrepare(GrOpFlushState* flushState) = 0; 166 virtual bool onExecute(GrOpFlushState* flushState) = 0;
|
D | GrDrawingManager.cpp | 273 GrOpFlushState flushState(gpu, resourceProvider, &fTokenTracker, fCpuBufferCache); in flush() local 301 onFlushOpList->prepare(&flushState); in flush() 319 GrResourceAllocator alloc(resourceProvider, flushState.deinstantiateProxyTracker() in flush() 348 startIndex, stopIndex, &flushState, &numRenderTasksExecuted)) { in flush() 377 flushState.deinstantiateProxyTracker()->deinstantiateAllProxies(); in flush() 398 bool GrDrawingManager::executeRenderTasks(int startIndex, int stopIndex, GrOpFlushState* flushState, in executeRenderTasks() argument 423 renderTask->prepare(flushState); in executeRenderTasks() 427 flushState->preExecuteDraws(); in executeRenderTasks() 438 if (!onFlushOpList->execute(flushState)) { in executeRenderTasks() 445 flushState->gpu()->finishFlush(nullptr, 0, SkSurface::BackendSurfaceAccess::kNoAccess, in executeRenderTasks() [all …]
|
D | GrRenderTargetOpList.cpp | 413 void GrRenderTargetOpList::onPrepare(GrOpFlushState* flushState) { in onPrepare() argument 433 flushState->setOpArgs(&opArgs); in onPrepare() 434 chain.head()->prepare(flushState); in onPrepare() 435 flushState->setOpArgs(nullptr); in onPrepare() 469 bool GrRenderTargetOpList::onExecute(GrOpFlushState* flushState) { in onExecute() argument 498 !flushState->gpu()->caps()->performColorClearsAsDraws()); in onExecute() 500 !flushState->gpu()->caps()->performStencilClearsAsDraws()); in onExecute() 502 flushState->gpu(), in onExecute() 509 flushState->setCommandBuffer(commandBuffer); in onExecute() 529 flushState->setOpArgs(&opArgs); in onExecute() [all …]
|
/third_party/skia/samplecode/ |
D | SamplePathTessellators.cpp | 80 void onPrepare(GrOpFlushState* flushState) override { in onPrepare() argument 82 auto alloc = flushState->allocator(); in onPrepare() 85 const GrCaps& caps = flushState->caps(); in onPrepare() 89 auto pipeline = GrSimpleMeshDrawOpHelper::CreatePipeline(flushState, std::move(fProcessors), in onPrepare() 124 fProgram = GrTessellationShader::MakeProgram({alloc, flushState->writeView(), in onPrepare() 125 flushState->usesMSAASurface(), in onPrepare() 126 &flushState->dstProxyView(), in onPrepare() 127 flushState->renderPassBarriers(), in onPrepare() 128 GrLoadOp::kClear, &flushState->caps()}, in onPrepare() 138 PatchWriter patchWriter(flushState, fTessellator, patchPreallocCount); in onPrepare() [all …]
|
/third_party/skia/tests/ |
D | GrPipelineDynamicStateTest.cpp | 152 void onExecute(GrOpFlushState* flushState, const SkRect& chainBounds) override { in onExecute() argument 154 flushState->drawOpArgs().writeView().swizzle()); in onExecute() 161 auto geomProc = PipelineDynamicStateTestProcessor::Make(flushState->allocator()); in onExecute() 163 GrProgramInfo programInfo(flushState->caps(), in onExecute() 164 flushState->writeView(), in onExecute() 165 flushState->usesMSAASurface(), in onExecute() 170 flushState->renderPassBarriers(), in onExecute() 171 flushState->colorLoadOp()); in onExecute() 173 flushState->bindPipeline(programInfo, SkRect::MakeIWH(kScreenSize, kScreenSize)); in onExecute() 176 flushState->setScissorRect(kDynamicScissors[i]); in onExecute() [all …]
|
/third_party/skia/src/gpu/tessellate/ |
D | PathCurveTessellator.cpp | 235 void PathCurveTessellator::drawTessellated(GrOpFlushState* flushState) const { in drawTessellated() 237 flushState->bindBuffers(nullptr, nullptr, chunk.fBuffer); in drawTessellated() 238 flushState->draw(chunk.fCount * 4, chunk.fBase * 4); in drawTessellated() 242 void PathCurveTessellator::drawFixedCount(GrOpFlushState* flushState) const { in drawFixedCount() 248 flushState->bindBuffers(fFixedIndexBuffer, chunk.fBuffer, fFixedVertexBuffer); in drawFixedCount() 249 flushState->drawIndexedInstanced(fixedIndexCount, 0, chunk.fCount, chunk.fBase, 0); in drawFixedCount() 253 void PathCurveTessellator::drawHullInstances(GrOpFlushState* flushState, in drawHullInstances() argument 256 flushState->bindBuffers(nullptr, chunk.fBuffer, vertexBufferIfNeeded); in drawHullInstances() 257 flushState->drawInstanced(chunk.fCount, chunk.fBase, 4, 0); in drawHullInstances()
|
D | PathWedgeTessellator.cpp | 296 void PathWedgeTessellator::drawTessellated(GrOpFlushState* flushState) const { in drawTessellated() 298 flushState->bindBuffers(nullptr, nullptr, chunk.fBuffer); in drawTessellated() 299 flushState->draw(chunk.fCount * 5, chunk.fBase * 5); in drawTessellated() 303 void PathWedgeTessellator::drawFixedCount(GrOpFlushState* flushState) const { in drawFixedCount() 310 flushState->bindBuffers(fFixedIndexBuffer, chunk.fBuffer, fFixedVertexBuffer); in drawFixedCount() 311 flushState->drawIndexedInstanced(fixedIndexCount, 0, chunk.fCount, chunk.fBase, 0); in drawFixedCount()
|
D | PathTessellator.h | 110 void draw(GrOpFlushState* flushState, bool willUseTessellationShaders) { in draw() argument 112 this->drawTessellated(flushState); in draw() 114 this->drawFixedCount(flushState); in draw()
|
/third_party/flutter/skia/src/gpu/ccpr/ |
D | GrStencilAtlasOp.cpp | 102 void GrStencilAtlasOp::onExecute(GrOpFlushState* flushState, const SkRect& chainBounds) { in onExecute() argument 107 flushState->drawOpArgs().fOutputSwizzle, GrPipeline::InputFlags::kHWAntialias, in onExecute() 113 flushState, &sampleMaskProc, pipeline, fFillBatchID, drawBoundsRect); in onExecute() 116 flushState, &sampleMaskProc, fStrokeBatchID, drawBoundsRect); in onExecute() 123 GrScissorTest::kEnabled, SkBlendMode::kSrc, flushState->drawOpArgs().fOutputSwizzle, in onExecute() 132 flushState->rtCommandBuffer()->draw( in onExecute()
|
/third_party/flutter/skia/src/gpu/ops/ |
D | GrFillRRectOp.cpp | 174 void GrFillRRectOp::onPrepare(GrOpFlushState* flushState) { in onPrepare() argument 175 if (void* instanceData = flushState->makeVertexSpace(fInstanceStride, fInstanceCount, in onPrepare() 699 void GrFillRRectOp::onExecute(GrOpFlushState* flushState, const SkRect& chainBounds) { in onExecute() argument 710 indexBuffer = flushState->resourceProvider()->findOrMakeStaticBuffer( in onExecute() 716 vertexBuffer = flushState->resourceProvider()->findOrMakeStaticBuffer( in onExecute() 724 indexBuffer = flushState->resourceProvider()->findOrMakeStaticBuffer( in onExecute() 730 vertexBuffer = flushState->resourceProvider()->findOrMakeStaticBuffer( in onExecute() 741 Processor* proc = flushState->allocator()->make<Processor>(fAAType, fFlags); in onExecute() 748 initArgs.fCaps = &flushState->caps(); in onExecute() 749 initArgs.fDstProxy = flushState->drawOpArgs().fDstProxy; in onExecute() [all …]
|
D | GrSimpleMeshDrawOpHelper.cpp | 105 const GrOp* op, GrOpFlushState* flushState, const SkRect& chainBounds) { in executeDrawsAndUploads() argument 107 flushState->executeDrawsAndUploadsForMeshDrawOp( in executeDrawsAndUploads() 110 flushState->executeDrawsAndUploadsForMeshDrawOp( in executeDrawsAndUploads() 185 const GrOp* op, GrOpFlushState* flushState, const SkRect& chainBounds) { in executeDrawsAndUploads() argument 187 flushState->executeDrawsAndUploadsForMeshDrawOp( in executeDrawsAndUploads() 190 flushState->executeDrawsAndUploadsForMeshDrawOp( in executeDrawsAndUploads()
|
/third_party/skia/src/gpu/ |
D | GrDDLTask.cpp | 89 void GrDDLTask::onPrepare(GrOpFlushState* flushState) { in onPrepare() argument 91 task->prepare(flushState); in onPrepare() 95 bool GrDDLTask::onExecute(GrOpFlushState* flushState) { in onExecute() argument 98 if (task->execute(flushState)) { in onExecute()
|
D | GrTextureResolveRenderTask.cpp | 64 bool GrTextureResolveRenderTask::onExecute(GrOpFlushState* flushState) { in onExecute() argument 73 flushState->gpu()->resolveRenderTarget(renderTarget, resolve.fMSAAResolveRect); in onExecute() 84 flushState->gpu()->regenerateMipMapLevels(texture); in onExecute()
|
D | GrTransferFromRenderTask.cpp | 24 bool GrTransferFromRenderTask::onExecute(GrOpFlushState* flushState) { in onExecute() argument 28 return flushState->gpu()->transferPixelsFrom(fSrcProxy->peekSurface(), in onExecute()
|
/third_party/flutter/skia/gm/ |
D | fwidth_squircle.cpp | 160 void onExecute(GrOpFlushState* flushState, const SkRect& chainBounds) override { in onExecute() argument 167 sk_sp<const GrBuffer> vertexBuffer(flushState->resourceProvider()->createBuffer( in onExecute() 173 flushState->drawOpArgs().fOutputSwizzle); in onExecute() 177 flushState->rtCommandBuffer()->draw(FwidthSquircleTestProcessor(fViewMatrix), pipeline, in onExecute()
|