Home
last modified time | relevance | path

Searched refs:GrAttachment (Results 1 – 25 of 52) sorted by relevance

123

/external/skia/src/gpu/
DGrRenderTarget.h15 class GrAttachment; variable
44 GrAttachment* getStencilAttachment(bool useMSAASurface) const { in getStencilAttachment()
48 GrAttachment* getStencilAttachment() const { in getStencilAttachment()
55 void attachStencilAttachment(sk_sp<GrAttachment> stencil, bool useMSAASurface);
73 GrRenderTarget(GrGpu*, const SkISize&, int sampleCount, GrProtected, GrAttachment* = nullptr);
85 virtual bool completeStencilAttachment(GrAttachment* stencil, bool useMSAASurface) = 0;
87 sk_sp<GrAttachment> fStencilAttachment;
88 sk_sp<GrAttachment> fMSAAStencilAttachment;
DGrAttachment.cpp16 size_t GrAttachment::onGpuMemorySize() const { in onGpuMemorySize()
41 GrAttachment::UsageFlags requiredUsage, in build_key()
61 void GrAttachment::ComputeSharedAttachmentUniqueKey(const GrCaps& caps, in ComputeSharedAttachmentUniqueKey()
75 void GrAttachment::ComputeScratchKey(const GrCaps& caps, in ComputeScratchKey()
89 void GrAttachment::computeScratchKey(GrScratchKey* key) const { in computeScratchKey()
DGrAttachment.h25 class GrAttachment : public GrSurface {
34 ~GrAttachment() override {} in ~GrAttachment()
71 GrAttachment(GrGpu* gpu, SkISize dimensions, UsageFlags supportedUsages, int sampleCnt, in GrAttachment() function
100 GR_MAKE_BITFIELD_CLASS_OPS(GrAttachment::UsageFlags);
DGrResourceProvider.cpp509 GrAttachment* stencil = rt->getStencilAttachment(useMSAASurface); in attachStencilAttachment()
530 GrAttachment::ComputeSharedAttachmentUniqueKey( in attachStencilAttachment()
532 GrAttachment::UsageFlags::kStencilAttachment, numStencilSamples, GrMipmapped::kNo, in attachStencilAttachment()
534 auto stencil = this->findByUniqueKey<GrAttachment>(sbKey); in attachStencilAttachment()
552 sk_sp<GrAttachment> GrResourceProvider::makeMSAAAttachment(SkISize dimensions, in makeMSAAAttachment()
577 sk_sp<GrAttachment> GrResourceProvider::refScratchMSAAAttachment(SkISize dimensions, in refScratchMSAAAttachment()
588 GrAttachment::ComputeScratchKey(*this->caps(), format, dimensions, in refScratchMSAAAttachment()
589 GrAttachment::UsageFlags::kColorAttachment, sampleCnt, in refScratchMSAAAttachment()
594 GrAttachment* attachment = static_cast<GrAttachment*>(resource); in refScratchMSAAAttachment()
595 return sk_sp<GrAttachment>(attachment); in refScratchMSAAAttachment()
DGrRenderTarget.cpp22 GrAttachment* stencil) in GrRenderTarget()
48 void GrRenderTarget::attachStencilAttachment(sk_sp<GrAttachment> stencil, bool useMSAASurface) { in attachStencilAttachment()
DGrResourceProvider.h27 class GrAttachment; variable
275 sk_sp<GrAttachment> makeMSAAAttachment(SkISize dimensions,
328 sk_sp<GrAttachment> refScratchMSAAAttachment(SkISize dimensions,
DGrGpu.h24 class GrAttachment; variable
347 GrAttachment* stencil,
607 virtual sk_sp<GrAttachment> makeStencilAttachment(const GrBackendFormat& colorFormat,
614 virtual sk_sp<GrAttachment> makeMSAAAttachment(SkISize dimensions,
753 GrAttachment* stencil,
/external/skia/src/gpu/vk/
DGrVkAttachment.cpp26 : GrAttachment(gpu, dimensions, supportedUsages, info.fSampleCount, GrMipmapped::kNo, in GrVkAttachment()
44 : GrAttachment(gpu, dimensions, supportedUsages, info.fSampleCount, GrMipmapped::kNo, in GrVkAttachment()
100 GrAttachment::UsageFlags attachmentUsages, in make_views()
104 if (attachmentUsages & GrAttachment::UsageFlags::kStencilAttachment) { in make_views()
106 SkASSERT(attachmentUsages == GrAttachment::UsageFlags::kStencilAttachment); in make_views()
112 if (SkToBool(attachmentUsages & GrAttachment::UsageFlags::kStencilAttachment) || in make_views()
113 SkToBool(attachmentUsages & GrAttachment::UsageFlags::kColorAttachment)) { in make_views()
122 if (attachmentUsages & GrAttachment::UsageFlags::kTexture) { in make_views()
282 GrAttachment::onRelease(); in onRelease()
287 GrAttachment::onAbandon(); in onAbandon()
DGrVkMSAALoadManager.h16 class GrAttachment; variable
33 GrAttachment* dst,
DGrVkTextureRenderTarget.cpp60 sk_sp<GrAttachment> msaaAttachment = rp->makeMSAAAttachment( in create_rt_attachments()
115 GrAttachment::UsageFlags textureUsageFlags = GrAttachment::UsageFlags::kTexture; in MakeWrappedTextureRenderTarget()
117 textureUsageFlags |= GrAttachment::UsageFlags::kColorAttachment; in MakeWrappedTextureRenderTarget()
DGrVkRenderTarget.cpp124 GrAttachment::UsageFlags::kColorAttachment, in MakeWrappedRenderTarget()
167 GrAttachment::UsageFlags::kColorAttachment, in MakeSecondaryCBRenderTarget()
212 sk_sp<GrAttachment> msaaAttachment = in dynamicMSAAAttachment()
230 bool GrVkRenderTarget::completeStencilAttachment(GrAttachment* stencil, bool useMSAASurface) { in completeStencilAttachment()
358 const GrAttachment* stencil = this->getStencilAttachment(); in getAttachmentsDescriptor()
455 const GrAttachment* stencil = this->getStencilAttachment(); in stencilImageResource()
466 const GrAttachment* stencil = this->getStencilAttachment(); in stencilAttachmentView()
DGrVkGpu.h111 sk_sp<GrAttachment> makeStencilAttachment(const GrBackendFormat& /*colorFormat*/,
118 sk_sp<GrAttachment> makeMSAAAttachment(SkISize dimensions,
140 GrAttachment* dst,
299 GrAttachment*,
/external/skia/src/gpu/gl/
DGrGLAttachment.h14 class GrGLAttachment : public GrAttachment {
24 : GrAttachment(gpu, dimensions, supportedUsages, sampleCnt, GrMipmapped::kNo, in GrGLAttachment()
54 using INHERITED = GrAttachment;
DGrGLRenderTarget.cpp96 GrAttachment::UsageFlags::kStencilAttachment, sampleCount, sFmt); in MakeWrapped()
108 if (GrAttachment* stencil = this->getStencilAttachment(useMultisampleFBO)) { in getBackendRenderTarget()
127 bool GrGLRenderTarget::completeStencilAttachment(GrAttachment* stencil, bool useMultisampleFBO) { in completeStencilAttachment()
/external/skia/src/gpu/d3d/
DGrD3DAttachment.cpp20 : GrAttachment(gpu, dimensions, supportedUsages, desc.SampleDesc.Count, GrMipmapped::kNo, in GrD3DAttachment()
71 GrAttachment::onRelease(); in onRelease()
78 GrAttachment::onAbandon(); in onAbandon()
DGrD3DGpu.h79 sk_sp<GrAttachment> makeStencilAttachment(const GrBackendFormat& /*colorFormat*/,
86 sk_sp<GrAttachment> makeMSAAAttachment(SkISize dimensions, in makeMSAAAttachment()
201 GrAttachment*,
/external/skia/src/gpu/mtl/
DGrMtlAttachment.mm23 : GrAttachment(gpu, dimensions, supportedUsages, view.sampleCount, GrMipmapped::kNo, function
57 GrAttachment::onRelease();
62 GrAttachment::onAbandon();
DGrMtlGpu.h210 GrAttachment*,
236 sk_sp<GrAttachment> makeStencilAttachment(const GrBackendFormat& /*colorFormat*/,
243 sk_sp<GrAttachment> makeMSAAAttachment(SkISize dimensions, in makeMSAAAttachment()
DGrMtlAttachment.h18 class GrMtlAttachment : public GrAttachment {
/external/skia/src/gpu/mock/
DGrMockAttachment.h15 class GrMockAttachment : public GrAttachment {
30 using INHERITED = GrAttachment;
DGrMockGpu.h134 GrAttachment*,
146 sk_sp<GrAttachment> makeStencilAttachment(const GrBackendFormat& /*colorFormat*/,
154 sk_sp<GrAttachment> makeMSAAAttachment(SkISize dimensions, in makeMSAAAttachment()
DGrMockGpu.cpp60 GrAttachment*, in onGetOpsRenderPass() argument
213 sk_sp<GrAttachment> GrMockGpu::makeStencilAttachment(const GrBackendFormat& /*colorFormat*/, in makeStencilAttachment()
216 return sk_sp<GrAttachment>( in makeStencilAttachment()
217 new GrMockAttachment(this, dimensions, GrAttachment::UsageFlags::kStencilAttachment, in makeStencilAttachment()
/external/skia/src/gpu/dawn/
DGrDawnAttachment.h17 class GrDawnAttachment : public GrAttachment {
44 using INHERITED = GrAttachment;
DGrDawnAttachment.cpp51 void GrDawnAttachment::onRelease() { GrAttachment::onRelease(); } in onRelease()
53 void GrDawnAttachment::onAbandon() { GrAttachment::onAbandon(); } in onAbandon()
DGrDawnGpu.h62 sk_sp<GrAttachment> makeStencilAttachment(const GrBackendFormat& /*colorFormat*/,
69 sk_sp<GrAttachment> makeMSAAAttachment(SkISize dimensions, in makeMSAAAttachment()
193 GrAttachment*,

123