Home
last modified time | relevance | path

Searched refs:flushState (Results 1 – 25 of 57) sorted by relevance

123

/third_party/skia/src/gpu/ops/
DPathStencilCoverOp.cpp225 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 …]
DPathTessellateOp.cpp104 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 …]
DPathInnerTriangulateOp.cpp402 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 …]
DDrawAtlasPathOp.cpp185 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 …]
DStrokeTessellateOp.cpp246 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 …]
DGrSimpleMeshDrawOpHelper.cpp128 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 …]
DOpsTask.cpp493 void OpsTask::onPrepare(GrOpFlushState* flushState) { in onPrepare() argument
506 flushState->setSampledProxyArray(&fSampledProxies); in onPrepare()
508 auto grGpu = flushState->gpu(); in onPrepare()
528 flushState->setOpArgs(&opArgs); in onPrepare()
536 chain.head()->prepare(flushState); in onPrepare()
537 flushState->setOpArgs(nullptr); in onPrepare()
543 flushState->setSampledProxyArray(nullptr); in onPrepare()
549 bool OpsTask::onExecute(GrOpFlushState* flushState) { in onExecute() argument
568 !flushState->gpu()->caps()->performColorClearsAsDraws()); in onExecute()
570 const GrCaps& caps = *flushState->gpu()->caps(); in onExecute()
[all …]
DRegionOp.cpp146 void onExecute(GrOpFlushState* flushState, const SkRect& chainBounds) override { in onExecute() argument
151 flushState->bindPipelineAndScissorClip(*fProgramInfo, chainBounds); in onExecute()
152 flushState->bindTextures(fProgramInfo->geomProc(), nullptr, fProgramInfo->pipeline()); in onExecute()
153 flushState->drawMesh(*fMesh); in onExecute()
/third_party/skia/gm/
Dfwidth_squircle.cpp188 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 …]
Dclockwise.cpp167 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/skia/samplecode/
DSamplePathTessellators.cpp80 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/
DGrPipelineDynamicStateTest.cpp152 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 …]
DPrimitiveProcessorTest.cpp156 void onExecute(GrOpFlushState* flushState, const SkRect& chainBounds) override { in onExecute() argument
161 flushState->bindPipelineAndScissorClip(*fProgramInfo, chainBounds); in onExecute()
162 flushState->bindTextures(fProgramInfo->geomProc(), nullptr, fProgramInfo->pipeline()); in onExecute()
163 flushState->drawMesh(*fMesh); in onExecute()
DDrawOpAtlasTest.cpp229 GrOpFlushState flushState(gpu, resourceProvider, uploadTarget.writeableTokenTracker()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
247 flushState.setOpArgs(&opArgs); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
248 op->prepare(&flushState); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
249 flushState.setOpArgs(nullptr); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DGrThreadSafeCacheTest.cpp481 GrProgramInfo* createProgramInfo(GrOpFlushState* flushState) const { in createProgramInfo()
482 return this->createProgramInfo(&flushState->caps(), in createProgramInfo()
483 flushState->allocator(), in createProgramInfo()
484 flushState->writeView(), in createProgramInfo()
485 flushState->usesMSAASurface(), in createProgramInfo()
486 flushState->detachAppliedClip(), in createProgramInfo()
487 flushState->dstProxyView(), in createProgramInfo()
488 flushState->renderPassBarriers(), in createProgramInfo()
489 flushState->colorLoadOp()); in createProgramInfo()
577 void onPrepare(GrOpFlushState* flushState) override { in onPrepare() argument
[all …]
/third_party/skia/src/gpu/tessellate/
DPathCurveTessellator.cpp235 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()
DPathWedgeTessellator.cpp296 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()
DPathTessellator.h110 void draw(GrOpFlushState* flushState, bool willUseTessellationShaders) { in draw() argument
112 this->drawTessellated(flushState); in draw()
114 this->drawFixedCount(flushState); in draw()
/third_party/skia/src/gpu/
DGrDDLTask.cpp89 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()
DGrDrawingManager.cpp163 GrOpFlushState flushState(gpu, resourceProvider, &fTokenTracker, fCpuBufferCache); in flush() local
198 onFlushRenderTask->prepare(&flushState); in flush()
234 this->executeRenderTasks(&flushState); in flush()
271 bool GrDrawingManager::executeRenderTasks(GrOpFlushState* flushState) { in executeRenderTasks() argument
292 renderTask->prepare(flushState); in executeRenderTasks()
296 flushState->preExecuteDraws(); in executeRenderTasks()
308 if (!onFlushRenderTask->execute(flushState)) { in executeRenderTasks()
315 flushState->gpu()->submitToGpu(false); in executeRenderTasks()
328 if (renderTask->execute(flushState)) { in executeRenderTasks()
332 flushState->gpu()->submitToGpu(false); in executeRenderTasks()
[all …]
DGrTextureResolveRenderTask.cpp64 bool GrTextureResolveRenderTask::onExecute(GrOpFlushState* flushState) { in onExecute() argument
73 flushState->gpu()->resolveRenderTarget(renderTarget, resolve.fMSAAResolveRect); in onExecute()
84 flushState->gpu()->regenerateMipMapLevels(texture); in onExecute()
DGrRenderTask.h37 void prepare(GrOpFlushState* flushState);
38 bool execute(GrOpFlushState* flushState) { return this->onExecute(flushState); } in execute() argument
259 virtual bool onExecute(GrOpFlushState* flushState) = 0;
DGrTransferFromRenderTask.cpp24 bool GrTransferFromRenderTask::onExecute(GrOpFlushState* flushState) { in onExecute() argument
28 return flushState->gpu()->transferPixelsFrom(fSrcProxy->peekSurface(), in onExecute()
DGrWaitRenderTask.cpp25 bool GrWaitRenderTask::onExecute(GrOpFlushState* flushState) { in onExecute() argument
31 flushState->gpu()->waitSemaphore(fSemaphores[i].get()); in onExecute()
/third_party/skia/tools/gpu/
DTestOps.cpp212 void TestRectOp::onExecute(GrOpFlushState* flushState, const SkRect& chainBounds) { in onExecute() argument
214 this->createProgramInfo(flushState); in onExecute()
217 flushState->bindPipelineAndScissorClip(*fProgramInfo, chainBounds); in onExecute()
218 flushState->bindTextures(fProgramInfo->geomProc(), nullptr, fProgramInfo->pipeline()); in onExecute()
219 flushState->drawMesh(*fMesh); in onExecute()

123