Home
last modified time | relevance | path

Searched refs:useMSAASurface (Results 1 - 25 of 25) sorted by relevance

/third_party/skia/src/gpu/
H A DGrRenderTarget.h44 GrAttachment* getStencilAttachment(bool useMSAASurface) const { in getStencilAttachment()
45 return (useMSAASurface) ? fMSAAStencilAttachment.get() : fStencilAttachment.get(); in getStencilAttachment()
53 virtual bool canAttemptStencilAttachment(bool useMSAASurface) const = 0;
55 void attachStencilAttachment(sk_sp<GrAttachment> stencil, bool useMSAASurface);
57 int numStencilBits(bool useMSAASurface) const;
86 virtual bool completeStencilAttachment(GrAttachment* stencil, bool useMSAASurface) = 0;
H A DGrRenderTarget.cpp47 void GrRenderTarget::attachStencilAttachment(sk_sp<GrAttachment> stencil, bool useMSAASurface) { in attachStencilAttachment() argument
48 auto stencilAttachment = (useMSAASurface) ? &GrRenderTarget::fMSAAStencilAttachment in attachStencilAttachment()
56 if (!this->completeStencilAttachment(stencil.get(), useMSAASurface)) { in attachStencilAttachment()
63 int GrRenderTarget::numStencilBits(bool useMSAASurface) const { in numStencilBits()
64 return GrBackendFormatStencilBits(this->getStencilAttachment(useMSAASurface)->backendFormat()); in numStencilBits()
H A DGrResourceProvider.cpp591 static int num_stencil_samples(const GrRenderTarget* rt, bool useMSAASurface, const GrCaps& caps) { in num_stencil_samples() argument
593 if (numSamples == 1 && useMSAASurface) { // Are we using dynamic msaa? in num_stencil_samples()
600 bool GrResourceProvider::attachStencilAttachment(GrRenderTarget* rt, bool useMSAASurface) { in attachStencilAttachment() argument
604 GrAttachment* stencil = rt->getStencilAttachment(useMSAASurface); in attachStencilAttachment()
606 SkASSERT(stencil->numSamples() == num_stencil_samples(rt, useMSAASurface, *this->caps())); in attachStencilAttachment()
610 if (!rt->wasDestroyed() && rt->canAttemptStencilAttachment(useMSAASurface)) { in attachStencilAttachment()
624 int numStencilSamples = num_stencil_samples(rt, useMSAASurface, *this->caps()); in attachStencilAttachment()
639 rt->attachStencilAttachment(std::move(keyedStencil), useMSAASurface); in attachStencilAttachment() local
641 stencil = rt->getStencilAttachment(useMSAASurface); in attachStencilAttachment()
643 stencil->numSamples() == num_stencil_samples(rt, useMSAASurface, *thi in attachStencilAttachment()
[all...]
H A DGrRenderTargetProxy.cpp114 bool useMSAASurface = rt->numSamples() > 1; in canUseStencil() local
115 return rt->getStencilAttachment(useMSAASurface) || in canUseStencil()
116 rt->canAttemptStencilAttachment(useMSAASurface); in canUseStencil()
H A DGrGpu.h382 bool useMSAASurface,
821 bool useMSAASurface,
H A DGrResourceProvider.h294 bool attachStencilAttachment(GrRenderTarget* rt, bool useMSAASurface);
H A DGrGpu.cpp734 bool useMSAASurface, in getOpsRenderPass()
746 return this->onGetOpsRenderPass(renderTarget, useMSAASurface, stencil, origin, bounds, in getOpsRenderPass()
732 getOpsRenderPass( GrRenderTarget* renderTarget, bool useMSAASurface, GrAttachment* stencil, GrSurfaceOrigin origin, const SkIRect& bounds, const GrOpsRenderPass::LoadAndStoreInfo& colorInfo, const GrOpsRenderPass::StencilLoadAndStoreInfo& stencilInfo, const SkTArray<GrSurfaceProxy*, true>& sampledProxies, GrXferBarrierFlags renderPassXferBarriers) getOpsRenderPass() argument
/third_party/skia/src/gpu/dawn/
H A DGrDawnRenderTarget.h25 bool canAttemptStencilAttachment(bool useMSAASurface) const override {
26 SkASSERT(useMSAASurface == (this->numSamples() > 1));
47 bool completeStencilAttachment(GrAttachment* stencil, bool useMSAASurface) override;
H A DGrDawnTextureRenderTarget.cpp24 bool GrDawnTextureRenderTarget::canAttemptStencilAttachment(bool useMSAASurface) const { in canAttemptStencilAttachment()
25 SkASSERT(useMSAASurface == (this->numSamples() > 1)); in canAttemptStencilAttachment()
H A DGrDawnRenderTarget.cpp38 bool GrDawnRenderTarget::completeStencilAttachment(GrAttachment* stencil, bool useMSAASurface) { in completeStencilAttachment() argument
39 SkASSERT(useMSAASurface == (this->numSamples() > 1)); in completeStencilAttachment()
H A DGrDawnTextureRenderTarget.h30 bool canAttemptStencilAttachment(bool useMSAASurface) const override;
H A DGrDawnGpu.h214 bool useMSAASurface,
/third_party/skia/src/gpu/d3d/
H A DGrD3DRenderTarget.h42 bool canAttemptStencilAttachment(bool useMSAASurface) const override {
43 SkASSERT(useMSAASurface == (this->numSamples() > 1));
110 bool completeStencilAttachment(GrAttachment* stencil, bool useMSAASurface) override {
111 SkASSERT(useMSAASurface == (this->numSamples() > 1));
H A DGrD3DGpu.h218 bool useMSAASurface,
/third_party/skia/src/gpu/mtl/
H A DGrMtlRenderTarget.h33 bool canAttemptStencilAttachment(bool useMSAASurface) const override {
34 SkASSERT(useMSAASurface == (this->numSamples() > 1));
86 bool completeStencilAttachment(GrAttachment* stencil, bool useMSAASurface) override;
H A DGrMtlGpu.h233 bool useMSAASurface,
/third_party/skia/src/gpu/mock/
H A DGrMockTexture.h103 bool canAttemptStencilAttachment(bool useMSAASurface) const override {
104 SkASSERT(useMSAASurface == (this->numSamples() > 1));
108 bool completeStencilAttachment(GrAttachment*, bool useMSAASurface) override {
109 SkASSERT(useMSAASurface == (this->numSamples() > 1));
H A DGrMockGpu.h154 bool useMSAASurface,
/third_party/skia/src/gpu/vk/
H A DGrVkRenderTarget.cpp250 bool GrVkRenderTarget::canAttemptStencilAttachment(bool useMSAASurface) const { in canAttemptStencilAttachment()
251 SkASSERT(!useMSAASurface || this->numSamples() > 1 || in canAttemptStencilAttachment()
253 if (!useMSAASurface && this->numSamples() > 1) { in canAttemptStencilAttachment()
257 if (useMSAASurface) { in canAttemptStencilAttachment()
267 bool GrVkRenderTarget::completeStencilAttachment(GrAttachment* stencil, bool useMSAASurface) { in completeStencilAttachment() argument
269 SkASSERT(!useMSAASurface || in completeStencilAttachment()
H A DGrVkRenderTarget.h99 bool canAttemptStencilAttachment(bool useMSAASurface) const override;
162 bool completeStencilAttachment(GrAttachment* stencil, bool useMSAASurface) override;
H A DGrVkGpu.h341 bool useMSAASurface,
H A DGrVkGpu.cpp325 bool useMSAASurface, in onGetOpsRenderPass()
342 SkASSERT(!useMSAASurface || in onGetOpsRenderPass()
365 if (useMSAASurface && this->vkCaps().renderTargetSupportsDiscardableMSAA(vkRT)) { in onGetOpsRenderPass()
323 onGetOpsRenderPass( GrRenderTarget* rt, bool useMSAASurface, GrAttachment* stencil, GrSurfaceOrigin origin, const SkIRect& bounds, const GrOpsRenderPass::LoadAndStoreInfo& colorInfo, const GrOpsRenderPass::StencilLoadAndStoreInfo& stencilInfo, const SkTArray<GrSurfaceProxy*, true>& sampledProxies, GrXferBarrierFlags renderPassXferBarriers) onGetOpsRenderPass() argument
/third_party/skia/src/gpu/gl/
H A DGrGLOpsRenderPass.h33 void set(GrRenderTarget*, bool useMSAASurface, const SkIRect& contentBounds, GrSurfaceOrigin,
H A DGrGLOpsRenderPass.cpp20 void GrGLOpsRenderPass::set(GrRenderTarget* rt, bool useMSAASurface, const SkIRect& contentBounds, in set() argument
28 fUseMultisampleFBO = useMSAASurface; in set()
/third_party/skia/src/gpu/ops/
H A DOpsTask.cpp42 bool useMSAASurface, in create_render_pass()
68 return gpu->getOpsRenderPass(rt, useMSAASurface, stencil, origin, bounds, kColorLoadStoreInfo, in create_render_pass()
40 create_render_pass(GrGpu* gpu, GrRenderTarget* rt, bool useMSAASurface, GrAttachment* stencil, GrSurfaceOrigin origin, const SkIRect& bounds, GrLoadOp colorLoadOp, const std::array<float, 4>& loadClearColor, GrLoadOp stencilLoadOp, GrStoreOp stencilStoreOp, const SkTArray<GrSurfaceProxy*, true>& sampledProxies, GrXferBarrierFlags renderPassXferBarriers) create_render_pass() argument

Completed in 22 milliseconds