/external/skia/src/gpu/tessellate/ |
D | GrPathStencilFillOp.cpp | 130 void GrPathStencilFillOp::onPrepare(GrOpFlushState* flushState) { in onPrepare() argument 132 this->prePreparePrograms({flushState->allocator(), flushState->writeView(), in onPrepare() 133 &flushState->dstProxyView(), flushState->renderPassBarriers(), in onPrepare() 134 flushState->colorLoadOp(), &flushState->caps()}, in onPrepare() 135 flushState->detachAppliedClip()); in onPrepare() 144 GrEagerDynamicVertexAllocator vertexAlloc(flushState, &fFanBuffer, &fFanBaseVertex); in onPrepare() 153 fTessellator->prepare(flushState, fViewMatrix, fPath); in onPrepare() 156 void GrPathStencilFillOp::onExecute(GrOpFlushState* flushState, const SkRect& chainBounds) { in onExecute() argument 165 flushState->bindPipelineAndScissorClip(*fStencilFanProgram, this->bounds()); in onExecute() 166 flushState->bindBuffers(nullptr, nullptr, fFanBuffer); in onExecute() [all …]
|
D | GrPathInnerTriangulateOp.cpp | 234 void GrPathInnerTriangulateOp::onPrepare(GrOpFlushState* flushState) { in onPrepare() argument 236 this->prePreparePrograms({flushState->allocator(), flushState->writeView(), in onPrepare() 237 &flushState->dstProxyView(), flushState->renderPassBarriers(), in onPrepare() 238 flushState->colorLoadOp(), &flushState->caps()}, in onPrepare() 239 flushState->detachAppliedClip()); in onPrepare() 246 GrEagerDynamicVertexAllocator alloc(flushState, &fFanBuffer, &fBaseFanVertex); in onPrepare() 252 fTessellator->prepare(flushState, fViewMatrix, fPath, &fFanBreadcrumbs); in onPrepare() 256 void GrPathInnerTriangulateOp::onExecute(GrOpFlushState* flushState, const SkRect& chainBounds) { in onExecute() argument 259 flushState->bindPipelineAndScissorClip(*fStencilCurvesProgram, this->bounds()); in onExecute() 260 fTessellator->draw(flushState); in onExecute() [all …]
|
D | GrStrokeTessellateOp.cpp | 229 void GrStrokeTessellateOp::onPrepare(GrOpFlushState* flushState) { in onPrepare() argument 231 this->prePrepareTessellator({flushState->allocator(), flushState->writeView(), in onPrepare() 232 &flushState->dstProxyView(), flushState->renderPassBarriers(), in onPrepare() 233 flushState->colorLoadOp(), &flushState->caps()}, in onPrepare() 234 flushState->detachAppliedClip()); in onPrepare() 237 fTessellator->prepare(flushState, fTotalCombinedVerbCnt); in onPrepare() 240 void GrStrokeTessellateOp::onExecute(GrOpFlushState* flushState, const SkRect& chainBounds) { in onExecute() argument 242 flushState->bindPipelineAndScissorClip(*fStencilProgram, chainBounds); in onExecute() 243 flushState->bindTextures(fStencilProgram->geomProc(), nullptr, fStencilProgram->pipeline()); in onExecute() 244 fTessellator->draw(flushState); in onExecute() [all …]
|
D | GrPathTessellator.cpp | 224 void GrPathIndirectTessellator::draw(GrOpFlushState* flushState) const { in draw() 226 flushState->bindBuffers(fIndirectIndexBuffer, fInstanceBuffer, nullptr); in draw() 227 flushState->drawIndexedIndirect(fIndirectDrawBuffer.get(), fIndirectDrawOffset, in draw() 232 void GrPathIndirectTessellator::drawHullInstances(GrOpFlushState* flushState) const { in drawHullInstances() 234 flushState->bindBuffers(nullptr, fInstanceBuffer, nullptr); in drawHullInstances() 235 flushState->drawInstanced(fTotalInstanceCount, fBaseInstance, 4, 0); in drawHullInstances() 337 void GrPathHardwareTessellator::draw(GrOpFlushState* flushState) const { in draw() 339 flushState->bindBuffers(nullptr, nullptr, fPatchBuffer); in draw() 340 flushState->draw(fPatchVertexCount, fBasePatchVertex); in draw() 341 if (flushState->caps().requiresManualFBBarrierAfterTessellatedStencilDraw()) { in draw() [all …]
|
/external/skia/gm/ |
D | fwidth_squircle.cpp | 183 GrProgramInfo* createProgramInfo(GrOpFlushState* flushState) const { in createProgramInfo() 184 return this->createProgramInfo(&flushState->caps(), in createProgramInfo() 185 flushState->allocator(), in createProgramInfo() 186 flushState->writeView(), in createProgramInfo() 187 flushState->detachAppliedClip(), in createProgramInfo() 188 flushState->dstProxyView(), in createProgramInfo() 189 flushState->renderPassBarriers(), in createProgramInfo() 190 flushState->colorLoadOp()); in createProgramInfo() 211 void onPrepare(GrOpFlushState* flushState) final { in onPrepare() argument 218 fVertexBuffer = flushState->resourceProvider()->createBuffer( in onPrepare() [all …]
|
D | clockwise.cpp | 174 GrProgramInfo* createProgramInfo(GrOpFlushState* flushState) const { in createProgramInfo() 175 return this->createProgramInfo(&flushState->caps(), in createProgramInfo() 176 flushState->allocator(), in createProgramInfo() 177 flushState->writeView(), in createProgramInfo() 178 flushState->detachAppliedClip(), in createProgramInfo() 179 flushState->dstProxyView(), in createProgramInfo() 180 flushState->renderPassBarriers(), in createProgramInfo() 181 flushState->colorLoadOp()); in createProgramInfo() 202 void onPrepare(GrOpFlushState* flushState) override { in onPrepare() argument 209 fVertexBuffer = flushState->resourceProvider()->createBuffer( in onPrepare() [all …]
|
/external/skqp/src/gpu/ |
D | GrTextureOpList.cpp | 75 void GrTextureOpList::onPrepare(GrOpFlushState* flushState) { in onPrepare() argument 89 flushState->setOpArgs(&opArgs); in onPrepare() 90 fRecordedOps[i]->prepare(flushState); in onPrepare() 91 flushState->setOpArgs(nullptr); in onPrepare() 96 bool GrTextureOpList::onExecute(GrOpFlushState* flushState) { in onExecute() argument 104 flushState->gpu()->getCommandBuffer(fTarget.get()->peekTexture(), in onExecute() 106 flushState->setCommandBuffer(commandBuffer); in onExecute() 119 flushState->setOpArgs(&opArgs); in onExecute() 120 fRecordedOps[i]->execute(flushState, fRecordedOps[i].get()->bounds()); in onExecute() 121 flushState->setOpArgs(nullptr); in onExecute() [all …]
|
D | GrDrawingManager.cpp | 238 GrOpFlushState flushState(gpu, fContext->contextPriv().resourceProvider(), &fTokenTracker, in flush() local 268 onFlushOpList->prepare(&flushState); in flush() 287 flushState.deinstantiateProxyTracker()); in flush() 310 if (this->executeOpLists(startIndex, stopIndex, &flushState, &numOpListsExecuted)) { in flush() 337 flushState.deinstantiateProxyTracker()->deinstantiateAllProxies(); in flush() 353 bool GrDrawingManager::executeOpLists(int startIndex, int stopIndex, GrOpFlushState* flushState, in executeOpLists() argument 393 opList->prepare(flushState); in executeOpLists() 397 flushState->preExecuteDraws(); in executeOpLists() 408 if (!onFlushOpList->execute(flushState)) { in executeOpLists() 415 flushState->gpu()->finishFlush(0, nullptr); in executeOpLists() [all …]
|
D | GrRenderTargetOpList.cpp | 404 void GrRenderTargetOpList::onPrepare(GrOpFlushState* flushState) { in onPrepare() argument 423 flushState->setOpArgs(&opArgs); in onPrepare() 424 chain.head()->prepare(flushState); in onPrepare() 425 flushState->setOpArgs(nullptr); in onPrepare() 459 bool GrRenderTargetOpList::onExecute(GrOpFlushState* flushState) { in onExecute() argument 479 !flushState->gpu()->caps()->performColorClearsAsDraws()); in onExecute() 481 !flushState->gpu()->caps()->performStencilClearsAsDraws()); in onExecute() 483 flushState->gpu(), in onExecute() 490 flushState->setCommandBuffer(commandBuffer); in onExecute() 509 flushState->setOpArgs(&opArgs); in onExecute() [all …]
|
D | GrTextureOpList.h | 38 void onPrepare(GrOpFlushState* flushState) override; 39 bool onExecute(GrOpFlushState* flushState) override;
|
/external/skia/src/gpu/ops/ |
D | GrSimpleMeshDrawOpHelper.cpp | 130 GrOpFlushState* flushState, in CreatePipeline() argument 133 return CreatePipeline(&flushState->caps(), in CreatePipeline() 134 flushState->allocator(), in CreatePipeline() 135 flushState->writeView().swizzle(), in CreatePipeline() 136 flushState->detachAppliedClip(), in CreatePipeline() 137 flushState->dstProxyView(), in CreatePipeline() 142 const GrPipeline* GrSimpleMeshDrawOpHelper::createPipeline(GrOpFlushState* flushState) { in createPipeline() argument 143 return CreatePipeline(&flushState->caps(), in createPipeline() 144 flushState->allocator(), in createPipeline() 145 flushState->writeView().swizzle(), in createPipeline() [all …]
|
/external/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 = GrPipelineDynamicStateTestProcessor::Make(flushState->allocator()); in onExecute() 163 GrProgramInfo programInfo(flushState->writeView(), in onExecute() 168 flushState->renderPassBarriers(), in onExecute() 169 flushState->colorLoadOp()); in onExecute() 171 flushState->bindPipeline(programInfo, SkRect::MakeIWH(kScreenSize, kScreenSize)); in onExecute() 174 flushState->setScissorRect(kDynamicScissors[i]); in onExecute() 176 flushState->drawMesh(meshes[i]); in onExecute()
|
D | PrimitiveProcessorTest.cpp | 153 void onExecute(GrOpFlushState* flushState, const SkRect& chainBounds) override { in onExecute() argument 158 flushState->bindPipelineAndScissorClip(*fProgramInfo, chainBounds); in onExecute() 159 flushState->bindTextures(fProgramInfo->geomProc(), nullptr, fProgramInfo->pipeline()); in onExecute() 160 flushState->drawMesh(*fMesh); in onExecute()
|
/external/skqp/include/private/ |
D | GrOpList.h | 39 void prepare(GrOpFlushState* flushState); 40 bool execute(GrOpFlushState* flushState) { return this->onExecute(flushState); } in execute() argument 172 virtual void onPrepare(GrOpFlushState* flushState) = 0; 173 virtual bool onExecute(GrOpFlushState* flushState) = 0;
|
/external/skqp/src/gpu/ops/ |
D | GrAAFillRRectOp.cpp | 115 void GrAAFillRRectOp::onPrepare(GrOpFlushState* flushState) { in onPrepare() argument 116 if (void* instanceData = flushState->makeVertexSpace(fInstanceStride, fInstanceCount, in onPrepare() 436 void GrAAFillRRectOp::onExecute(GrOpFlushState* flushState, const SkRect& chainBounds) { in onExecute() argument 444 flushState->resourceProvider()->findOrMakeStaticBuffer( in onExecute() 453 flushState->resourceProvider()->findOrMakeStaticBuffer( in onExecute() 463 initArgs.fCaps = &flushState->caps(); in onExecute() 464 initArgs.fResourceProvider = flushState->resourceProvider(); in onExecute() 465 initArgs.fDstProxy = flushState->drawOpArgs().fDstProxy; in onExecute() 466 auto clip = flushState->detachAppliedClip(); in onExecute() 474 flushState->rtCommandBuffer()->draw(proc, pipeline, &fixedDynamicState, nullptr, &mesh, 1, in onExecute()
|
/external/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 | GrOpsTask.cpp | 473 void GrOpsTask::onPrepare(GrOpFlushState* flushState) { in onPrepare() argument 485 flushState->setSampledProxyArray(&fSampledProxies); in onPrepare() 501 flushState->setOpArgs(&opArgs); in onPrepare() 509 chain.head()->prepare(flushState); in onPrepare() 510 flushState->setOpArgs(nullptr); in onPrepare() 513 flushState->setSampledProxyArray(nullptr); in onPrepare() 551 bool GrOpsTask::onExecute(GrOpFlushState* flushState) { in onExecute() argument 569 !flushState->gpu()->caps()->performColorClearsAsDraws()); in onExecute() 571 const GrCaps& caps = *flushState->gpu()->caps(); in onExecute() 578 if (!flushState->resourceProvider()->attachStencilAttachment(renderTarget, in onExecute() [all …]
|
D | GrDrawingManager.cpp | 150 GrOpFlushState flushState(gpu, resourceProvider, &fTokenTracker, fCpuBufferCache); in flush() local 185 onFlushRenderTask->prepare(&flushState); in flush() 221 this->executeRenderTasks(&flushState); in flush() 258 bool GrDrawingManager::executeRenderTasks(GrOpFlushState* flushState) { in executeRenderTasks() argument 279 renderTask->prepare(flushState); in executeRenderTasks() 283 flushState->preExecuteDraws(); in executeRenderTasks() 295 if (!onFlushRenderTask->execute(flushState)) { in executeRenderTasks() 302 flushState->gpu()->submitToGpu(false); in executeRenderTasks() 315 if (renderTask->execute(flushState)) { in executeRenderTasks() 319 flushState->gpu()->submitToGpu(false); in executeRenderTasks() [all …]
|
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 | GrWaitRenderTask.cpp | 25 bool GrWaitRenderTask::onExecute(GrOpFlushState* flushState) { in onExecute() argument 31 flushState->gpu()->waitSemaphore(fSemaphores[i].get()); in onExecute()
|
D | GrTransferFromRenderTask.cpp | 23 bool GrTransferFromRenderTask::onExecute(GrOpFlushState* flushState) { in onExecute() argument 27 return flushState->gpu()->transferPixelsFrom( in onExecute()
|
D | GrRenderTask.h | 38 void prepare(GrOpFlushState* flushState); 39 bool execute(GrOpFlushState* flushState) { return this->onExecute(flushState); } in execute() argument 260 virtual bool onExecute(GrOpFlushState* flushState) = 0;
|
/external/skqp/src/gpu/ccpr/ |
D | GrCCFiller.cpp | 462 void GrCCFiller::drawFills(GrOpFlushState* flushState, BatchID batchID, in drawFills() argument 473 this->drawPrimitives(flushState, pipeline, batchID, PrimitiveType::kTriangles, in drawFills() 478 this->drawPrimitives(flushState, pipeline, batchID, PrimitiveType::kWeightedTriangles, in drawFills() 483 this->drawPrimitives(flushState, pipeline, batchID, PrimitiveType::kQuadratics, in drawFills() 488 this->drawPrimitives(flushState, pipeline, batchID, PrimitiveType::kCubics, in drawFills() 493 this->drawPrimitives(flushState, pipeline, batchID, PrimitiveType::kConics, in drawFills() 498 void GrCCFiller::drawPrimitives(GrOpFlushState* flushState, const GrPipeline& pipeline, in drawPrimitives() argument 508 GrCCCoverageProcessor proc(flushState->resourceProvider(), primitiveType); in drawPrimitives() 550 proc.draw(flushState, pipeline, fScissorRectScratchBuffer.begin(), in drawPrimitives()
|
D | GrCCPathProcessor.cpp | 119 void GrCCPathProcessor::drawPaths(GrOpFlushState* flushState, const GrPipeline& pipeline, in drawPaths() argument 123 const GrCaps& caps = flushState->caps(); in drawPaths() 131 auto enablePrimitiveRestart = GrPrimitiveRestart(flushState->caps().usePrimitiveRestart()); in drawPaths() 138 flushState->rtCommandBuffer()->draw(*this, pipeline, fixedDynamicState, nullptr, &mesh, 1, in drawPaths()
|
/external/skia/tools/gpu/ |
D | TestOps.cpp | 214 void TestRectOp::onExecute(GrOpFlushState* flushState, const SkRect& chainBounds) { in onExecute() argument 216 this->createProgramInfo(flushState); in onExecute() 219 flushState->bindPipelineAndScissorClip(*fProgramInfo, chainBounds); in onExecute() 220 flushState->bindTextures(fProgramInfo->geomProc(), nullptr, fProgramInfo->pipeline()); in onExecute() 221 flushState->drawMesh(*fMesh); in onExecute()
|