Home
last modified time | relevance | path

Searched refs:fRenderTarget (Results 1 – 23 of 23) sorted by relevance

/third_party/flutter/skia/src/gpu/
DGrRenderTarget.cpp67 if (1 == fRenderTarget->fSampleCnt) { in attachStencilAttachment()
73 fRenderTarget->fSamplePatternKey); in attachStencilAttachment()
77 SkASSERT(!stencil || stencil->numSamples() == fRenderTarget->fSampleCnt); in attachStencilAttachment()
81 if (!stencil && !fRenderTarget->fStencilAttachment) { in attachStencilAttachment()
87 fRenderTarget->fStencilAttachment = std::move(stencil); in attachStencilAttachment()
88 if (!fRenderTarget->completeStencilAttachment()) { in attachStencilAttachment()
89 fRenderTarget->fStencilAttachment = nullptr; in attachStencilAttachment()
100 GrStencilAttachment* stencil = fRenderTarget->fStencilAttachment.get(); in getSamplePatternKey()
101 if (fRenderTarget->fSampleCnt <= 1) { in getSamplePatternKey()
109 SkASSERT(!stencil || stencil->numSamples() == fRenderTarget->fSampleCnt); in getSamplePatternKey()
[all …]
DGrRenderTargetPriv.h25 return fRenderTarget->fStencilAttachment.get(); in getStencilAttachment()
50 return fRenderTarget->getGpu()->retrieveSampleLocations(samplePatternKey); in getSampleLocations()
54 explicit GrRenderTargetPriv(GrRenderTarget* renderTarget) : fRenderTarget(renderTarget) {} in GrRenderTargetPriv()
62 GrRenderTarget* fRenderTarget; variable
DGrGpuCommandBuffer.h120 GrGpuRTCommandBuffer() : fOrigin(kTopLeft_GrSurfaceOrigin), fRenderTarget(nullptr) {} in GrGpuRTCommandBuffer()
124 , fRenderTarget(rt) { in GrGpuRTCommandBuffer()
128 SkASSERT(!fRenderTarget); in set()
130 fRenderTarget = rt; in set()
135 GrRenderTarget* fRenderTarget; variable
DGrGpuCommandBuffer.cpp22 SkASSERT(fRenderTarget); in clear()
99 SkASSERT(this->gpu()->findOrAssignSamplePatternKey(fRenderTarget) in draw()
100 == fRenderTarget->renderTargetPriv().getSamplePatternKey()); in draw()
/third_party/flutter/skia/src/gpu/vk/
DGrVkGpuCommandBuffer.cpp161 GrVkRenderTarget* vkRT = static_cast<GrVkRenderTarget*>(fRenderTarget); in init()
202 GrVkRenderTarget* vkRT = static_cast<GrVkRenderTarget*>(fRenderTarget); in initWrapped()
226 if (!fRenderTarget) { in submit()
230 GrVkRenderTarget* vkRT = static_cast<GrVkRenderTarget*>(fRenderTarget); in submit()
232 GrStencilAttachment* stencil = fRenderTarget->renderTargetPriv().getStencilAttachment(); in submit()
235 GrVkPrimaryCommandBufferTask::Args taskArgs{fGpu, fRenderTarget}; in submit()
278 SkIntToScalar(fRenderTarget->width()), in submit()
279 SkIntToScalar(fRenderTarget->height()))) { in submit()
329 SkASSERT(!fRenderTarget); in set()
371 fRenderTarget = nullptr; in reset()
[all …]
/third_party/skia/src/gpu/d3d/
DGrD3DOpsRenderPass.cpp35 SkASSERT(!fRenderTarget); in set()
55 GrD3DRenderTarget* d3dRT = static_cast<GrD3DRenderTarget*>(fRenderTarget); in onBegin()
179 GrD3DRenderTarget* d3dRT = static_cast<GrD3DRenderTarget*>(fRenderTarget); in onBindPipeline()
188 fCurrentPipelineState->setAndBindConstants(fGpu, fRenderTarget, info); in onBindPipeline()
195 set_scissor_rects(fGpu, fRenderTarget, fOrigin, fCurrentPipelineBounds); in onBindPipeline()
197 set_viewport(fGpu, fRenderTarget); in onBindPipeline()
208 set_scissor_rects(fGpu, fRenderTarget, fOrigin, combinedScissorRect); in onSetScissorRect()
225 update_resource_state(geomProcTextures[i]->peekTexture(), fRenderTarget, fGpu); in onBindTextures()
229 update_resource_state(te.texture(), fRenderTarget, fGpu); in onBindTextures()
233 update_resource_state(dstTexture, fRenderTarget, fGpu); in onBindTextures()
[all …]
DGrD3DPipelineStateBuilder.h68 GrD3DRenderTarget* fRenderTarget; variable
DGrD3DPipelineStateBuilder.cpp58 , fRenderTarget(renderTarget) {} in GrD3DPipelineStateBuilder()
648 const GrD3DRenderTarget* rt = static_cast<const GrD3DRenderTarget*>(fRenderTarget); in finalize()
/third_party/flutter/skia/src/gpu/gl/
DGrGLGpuCommandBuffer.cpp17 fRenderTarget, fOrigin); in begin()
20 GrStencilAttachment* sb = fRenderTarget->renderTargetPriv().getStencilAttachment(); in begin()
21 if (sb && (sb->isDirty() || fRenderTarget->alwaysClearStencil())) { in begin()
22 fGpu->clearStencil(fRenderTarget, 0x0); in begin()
31 SkASSERT(!fRenderTarget); in set()
DGrGLGpuCommandBuffer.h71 fGpu->copySurface(fRenderTarget, src,srcRect, dstPoint); in copy()
77 fGpu->transferPixelsFrom(fRenderTarget, srcRect.fLeft, srcRect.fTop, srcRect.width(), in transferFrom()
87 fRenderTarget = nullptr; in reset()
100 fGpu->draw(fRenderTarget, fOrigin, primProc, pipeline, fixedDynamicState, in onDraw()
105 fGpu->clear(clip, color, fRenderTarget, fOrigin); in onClear()
109 fGpu->clearStencilClip(clip, insideStencilMask, fRenderTarget, fOrigin); in onClearStencilClip()
/third_party/skia/src/gpu/dawn/
DGrDawnOpsRenderPass.cpp57 if (GrTexture* tex = fRenderTarget->asTexture()) { in beginRenderPass()
60 auto stencilAttachment = static_cast<GrDawnAttachment*>(fRenderTarget->getStencilAttachment()); in beginRenderPass()
65 colorAttachment.view = static_cast<GrDawnRenderTarget*>(fRenderTarget)->textureView(); in beginRenderPass()
123 auto bindGroup = program->setUniformData(fGpu, fRenderTarget, programInfo); in applyState()
136 SkIRect rect = SkIRect::MakeWH(fRenderTarget->width(), fRenderTarget->height()); in applyState()
147 fCurrentProgram = fGpu->getOrCreateRenderPipeline(fRenderTarget, programInfo); in onBindPipeline()
158 SkASSERT(SkIRect::MakeSize(fRenderTarget->dimensions()).contains(scissor)); in onSetScissorRect()
160 GrNativeRect::MakeRelativeTo(fOrigin, fRenderTarget->height(), scissor); in onSetScissorRect()
/third_party/flutter/skia/src/gpu/mtl/
DGrMtlGpuCommandBuffer.mm52 if (!fRenderTarget) {
57 fGpu->submitIndirectCommandBuffer(fRenderTarget, fOrigin, &iBounds);
65 fGpu->copySurface(fRenderTarget, src, srcRect, dstPoint);
74 fGpu->transferPixelsFrom(fRenderTarget, srcRect.fLeft, srcRect.fTop, srcRect.width(),
93 fGpu->resourceProvider().findOrCreateCompatiblePipelineState(fRenderTarget, fOrigin,
101 pipelineState->setData(fRenderTarget, fOrigin, primProc, pipeline, primProcProxies);
177 fRenderTarget, fOrigin,
178 SkIRect::MakeWH(fRenderTarget->width(),
179 fRenderTarget->height()));
183 fRenderTarget, fOrigin,
[all …]
/third_party/skia/src/gpu/
DGrOpsRenderPass.h142 GrOpsRenderPass() : fOrigin(kTopLeft_GrSurfaceOrigin), fRenderTarget(nullptr) {} in GrOpsRenderPass()
146 , fRenderTarget(rt) { in GrOpsRenderPass()
150 SkASSERT(!fRenderTarget); in set()
152 fRenderTarget = rt; in set()
157 GrRenderTarget* fRenderTarget; variable
DGrOpsRenderPass.cpp40 SkASSERT(fRenderTarget); in clear()
218 this->gpu()->xferBarrier(fRenderTarget, fXferBarrierType); in prepareToDraw()
/third_party/flutter/skia/src/gpu/dawn/
DGrDawnGpuCommandBuffer.cpp120 dawn::Texture texture = static_cast<GrDawnRenderTarget*>(fRenderTarget)->texture(); in beginRenderPass()
122 fRenderTarget->renderTargetPriv().getStencilAttachment()); in beginRenderPass()
175 fGpu->transferPixelsFrom(fRenderTarget, srcRect.fLeft, srcRect.fTop, srcRect.width(), in transferFrom()
200 auto d = static_cast<GrDawnTexture*>(fRenderTarget->asTexture()); in copy()
302 rect.setXYWH(rect.x(), fRenderTarget->height() - rect.bottom(), in setScissorState()
306 rect = SkIRect::MakeWH(fRenderTarget->width(), fRenderTarget->height()); in setScissorState()
319 GrProgramDesc::Build(&desc, fRenderTarget, primProc, hasPoints, pipeline, fGpu); in applyState()
321 SkAssertResult(GrPixelConfigToDawnFormat(fRenderTarget->config(), &colorFormat)); in applyState()
323 bool hasDepthStencil = fRenderTarget->renderTargetPriv().getStencilAttachment() != nullptr; in applyState()
324 sk_sp<GrDawnProgram> program = GrDawnProgramBuilder::Build(fGpu, fRenderTarget, fOrigin, in applyState()
[all …]
/third_party/skia/src/gpu/gl/
DGrGLOpsRenderPass.cpp24 SkASSERT(!fRenderTarget); in set()
40 return GrNativeRect::MakeRelativeTo(fOrigin, fRenderTarget->height(), in dmsaaLoadStoreBounds()
41 SkIRect::MakeSize(fRenderTarget->dimensions())); in dmsaaLoadStoreBounds()
43 return GrNativeRect::MakeRelativeTo(fOrigin, fRenderTarget->height(), fContentBounds); in dmsaaLoadStoreBounds()
48 auto glRT = static_cast<GrGLRenderTarget*>(fRenderTarget); in onBegin()
66 auto glRT = static_cast<GrGLRenderTarget*>(fRenderTarget); in onEnd()
83 return fGpu->flushGLState(fRenderTarget, fUseMultisampleFBO, programInfo); in onBindPipeline()
87 fGpu->flushScissorRect(scissor, fRenderTarget->height(), fOrigin); in onSetScissorRect()
425 fGpu->clear(scissor, color, fRenderTarget, fUseMultisampleFBO, fOrigin); in onClear()
429 fGpu->clearStencilClip(scissor, insideStencilMask, fRenderTarget, fUseMultisampleFBO, fOrigin); in onClearStencilClip()
DGrGLOpsRenderPass.h37 fRenderTarget = nullptr; in reset()
/third_party/flutter/skia/src/gpu/glsl/
DGrGLSLProgramBuilder.h41 const GrRenderTarget* renderTarget() const { return fRenderTarget; } in renderTarget()
42 GrPixelConfig config() const { return fRenderTarget->config(); } in config()
45 return fRenderTarget->renderTargetPriv().getSampleLocations().count(); in effectiveSampleCnt()
96 const GrRenderTarget* fRenderTarget; variable
DGrGLSLProgramBuilder.cpp32 , fRenderTarget(renderTarget) in GrGLSLProgramBuilder()
/third_party/skia/tools/gpu/
DBackendSurfaceFactory.cpp75 GrBackendRenderTarget fRenderTarget; in MakeBackendRenderTargetSurface() member
85 if (auto gpu = rc->fContext->priv().getGpu(); gpu && rc->fRenderTarget.isValid()) { in MakeBackendRenderTargetSurface()
86 gpu->deleteTestingOnlyBackendRenderTarget(rc->fRenderTarget); in MakeBackendRenderTargetSurface()
/third_party/skia/src/gpu/vk/
DGrVkOpsRenderPass.cpp207 if (!fGpu->beginRenderPass(fCurrentRenderPass, fFramebuffer, &clearColor, fRenderTarget, in beginRenderPass()
312 if (!fRenderTarget) { in submit()
333 fGpu->endRenderPass(fRenderTarget, fOrigin, fBounds); in submit()
346 SkASSERT(!fRenderTarget); in set()
405 fRenderTarget = nullptr; in reset()
555 GrVkRenderTarget* vkRT = static_cast<GrVkRenderTarget*>(fRenderTarget); in addAdditionalRenderPass()
602 fGpu->endRenderPass(fRenderTarget, fOrigin, fBounds); in inlineUpload()
637 fRenderTarget, programInfo, compatibleRenderPass, fOverridePipelinesForResolveLoad); in onBindPipeline()
846 fGpu->endRenderPass(fRenderTarget, fOrigin, fBounds); in onExecuteDrawable()
/third_party/skia/src/gpu/mock/
DGrMockOpsRenderPass.h60 if (auto* tex = fRenderTarget->asTexture()) { in markRenderTargetDirty()
/third_party/skia/src/gpu/mtl/
DGrMtlOpsRenderPass.mm45 fGpu->submitIndirectCommandBuffer(fRenderTarget, fOrigin, &iBounds);
70 GrProgramDesc programDesc = caps.makeDesc(fRenderTarget, programInfo,