#include <GrRenderTargetProxy.h>
|
| GrRenderTargetProxy (const GrCaps &, const GrBackendFormat &, SkISize, int sampleCount, SkBackingFit, skgpu::Budgeted, skgpu::Protected, GrInternalSurfaceFlags, UseAllocator, std::string_view label) |
|
| GrRenderTargetProxy (LazyInstantiateCallback &&, const GrBackendFormat &, SkISize, int sampleCount, SkBackingFit, skgpu::Budgeted, skgpu::Protected, GrInternalSurfaceFlags, UseAllocator, WrapsVkSecondaryCB, std::string_view label) |
|
| GrRenderTargetProxy (sk_sp< GrSurface >, UseAllocator, WrapsVkSecondaryCB=WrapsVkSecondaryCB::kNo) |
|
sk_sp< GrSurface > | createSurface (GrResourceProvider *) const override |
|
| GrSurfaceProxy (const GrBackendFormat &, SkISize, SkBackingFit, skgpu::Budgeted, GrProtected, GrInternalSurfaceFlags, UseAllocator, std::string_view label) |
|
| GrSurfaceProxy (LazyInstantiateCallback &&, const GrBackendFormat &, SkISize, SkBackingFit, skgpu::Budgeted, GrProtected, GrInternalSurfaceFlags, UseAllocator, std::string_view label) |
|
| GrSurfaceProxy (sk_sp< GrSurface >, SkBackingFit, UseAllocator) |
|
bool | ignoredByResourceAllocator () const |
|
void | setIgnoredByResourceAllocator () |
|
void | computeScratchKey (const GrCaps &, skgpu::ScratchKey *) const |
|
virtual sk_sp< GrSurface > | createSurface (GrResourceProvider *) const =0 |
|
void | assign (sk_sp< GrSurface > surface) |
|
sk_sp< GrSurface > | createSurfaceImpl (GrResourceProvider *, int sampleCnt, GrRenderable, skgpu::Mipmapped) const |
|
void | setLazyDimensions (SkISize dimensions) |
|
bool | instantiateImpl (GrResourceProvider *resourceProvider, int sampleCnt, GrRenderable, skgpu::Mipmapped, const skgpu::UniqueKey *) |
|
|
enum class | ResolveFlags { kNone = 0
, kMSAA = 1 << 0
, kMipMaps = 1 << 1
} |
|
enum class | LazyInstantiationKeyMode { kUnsynced
, kSynced
} |
|
enum class | UseAllocator { kNo = false
, kYes = true
} |
|
enum class | RectsMustMatch : bool { kNo = false
, kYes = true
} |
|
using | LazyInstantiateCallback = std::function< LazyCallbackResult(GrResourceProvider *, const LazySurfaceDesc &)> |
|
static sk_sp< GrSurfaceProxy > | Copy (GrRecordingContext *, sk_sp< GrSurfaceProxy > src, GrSurfaceOrigin, skgpu::Mipmapped, SkIRect srcRect, SkBackingFit, skgpu::Budgeted, std::string_view label, RectsMustMatch=RectsMustMatch::kNo, sk_sp< GrRenderTask > *outTask=nullptr) |
|
static sk_sp< GrSurfaceProxy > | Copy (GrRecordingContext *, sk_sp< GrSurfaceProxy > src, GrSurfaceOrigin, skgpu::Mipmapped, SkBackingFit, skgpu::Budgeted, std::string_view label, sk_sp< GrRenderTask > *outTask=nullptr) |
|
sk_sp< GrSurface > | fTarget |
|
GrInternalSurfaceFlags | fSurfaceFlags |
|
Definition at line 64 of file GrRenderTargetProxy.h.
◆ WrapsVkSecondaryCB
Definition at line 149 of file GrRenderTargetProxy.h.
149:
bool {
kNo =
false,
kYes =
true };
@ kYes
Do pre-clip the geometry before applying the (perspective) matrix.
@ kNo
Don't pre-clip the geometry before applying the (perspective) matrix.
◆ GrRenderTargetProxy() [1/3]
Definition at line 32 of file GrRenderTargetProxy.cpp.
42 : INHERITED(
44 , fSampleCnt(sampleCount)
GrProtected isProtected() const
SkISize dimensions() const
uint32_t uint32_t * format
◆ GrRenderTargetProxy() [2/3]
GrRenderTargetProxy::GrRenderTargetProxy |
( |
LazyInstantiateCallback && |
callback, |
|
|
const GrBackendFormat & |
format, |
|
|
SkISize |
dimensions, |
|
|
int |
sampleCount, |
|
|
SkBackingFit |
fit, |
|
|
skgpu::Budgeted |
budgeted, |
|
|
skgpu::Protected |
isProtected, |
|
|
GrInternalSurfaceFlags |
surfaceFlags, |
|
|
UseAllocator |
useAllocator, |
|
|
WrapsVkSecondaryCB |
wrapsVkSecondaryCB, |
|
|
std::string_view |
label |
|
) |
| |
|
protected |
Definition at line 48 of file GrRenderTargetProxy.cpp.
62 fit,
63 budgeted,
65 surfaceFlags,
66 useAllocator,
67 label)
68 , fSampleCnt(sampleCount)
bool wrapsVkSecondaryCB() const
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback
◆ GrRenderTargetProxy() [3/3]
Definition at line 72 of file GrRenderTargetProxy.cpp.
78
79
80
81
82
83
86 !this->requiresManualMSAAResolve());
87}
const GrCaps * caps() const
bool msaaResolvesAutomatically() const
GrDirectContextPriv priv()
const GrDirectContext * getContext() const
sk_sp< GrSurface > fTarget
virtual GrRenderTarget * asRenderTarget()
◆ arenas()
Definition at line 120 of file GrRenderTargetProxy.h.
120 {
121 if (fArenas == nullptr) {
122 fArenas = sk_make_sp<GrArenas>();
123 }
124 return fArenas;
125 }
◆ asRenderTargetProxy() [1/2]
◆ asRenderTargetProxy() [2/2]
◆ canUseStencil()
bool GrRenderTargetProxy::canUseStencil |
( |
const GrCaps & |
caps | ) |
const |
Definition at line 107 of file GrRenderTargetProxy.cpp.
107 {
109 return false;
110 }
113
114
115
116
117
119 } else {
120
121
122 return true;
123 }
124 }
125
127
128
132}
static constexpr bool SkToBool(const T &x)
bool avoidStencilBuffers() const
GrAttachment * getStencilAttachment(bool useMSAASurface) const
virtual bool canAttemptStencilAttachment(bool useMSAASurface) const =0
const GrBackendFormat & backendFormat() const
virtual GrTextureProxy * asTextureProxy()
bool isInstantiated() const
GrRenderTarget * peekRenderTarget() const
◆ clearArenas()
void GrRenderTargetProxy::clearArenas |
( |
| ) |
|
|
inline |
Definition at line 127 of file GrRenderTargetProxy.h.
127 {
128 if (fArenas != nullptr) {
130 }
131 fArenas = nullptr;
132 }
◆ createSurface()
Implements GrSurfaceProxy.
Definition at line 134 of file GrRenderTargetProxy.cpp.
134 {
138 return nullptr;
139 }
143}
sk_sp< GrSurface > createSurfaceImpl(GrResourceProvider *, int sampleCnt, GrRenderable, skgpu::Mipmapped) const
◆ glRTFBOIDIs0()
bool GrRenderTargetProxy::glRTFBOIDIs0 |
( |
| ) |
const |
|
inline |
◆ instantiate()
Implements GrSurfaceProxy.
Definition at line 93 of file GrRenderTargetProxy.cpp.
93 {
95 return false;
96 }
99 return false;
100 }
101
104 return true;
105}
bool instantiateImpl(GrResourceProvider *resourceProvider, int sampleCnt, GrRenderable, skgpu::Mipmapped, const skgpu::UniqueKey *)
GrTexture * peekTexture() const
◆ isMSAADirty()
bool GrRenderTargetProxy::isMSAADirty |
( |
| ) |
const |
|
inline |
◆ markMSAADirty()
void GrRenderTargetProxy::markMSAADirty |
( |
SkIRect |
dirtyRect | ) |
|
|
inline |
Definition at line 99 of file GrRenderTargetProxy.h.
99 {
102 fMSAADirtyRect.
join(dirtyRect);
103 }
SkISize backingStoreDimensions() const
constexpr bool contains(std::string_view str, std::string_view needle)
void join(const SkIRect &r)
static constexpr SkIRect MakeSize(const SkISize &size)
◆ markMSAAResolved()
void GrRenderTargetProxy::markMSAAResolved |
( |
| ) |
|
|
inline |
◆ maxWindowRectangles()
int GrRenderTargetProxy::maxWindowRectangles |
( |
const GrCaps & |
caps | ) |
const |
◆ msaaDirtyRect()
const SkIRect & GrRenderTargetProxy::msaaDirtyRect |
( |
| ) |
const |
|
inline |
◆ needsStencil()
int GrRenderTargetProxy::needsStencil |
( |
| ) |
const |
|
inline |
◆ numSamples()
int GrRenderTargetProxy::numSamples |
( |
| ) |
const |
|
inline |
Returns the number of samples/pixel in the color buffer (One if non-MSAA).
Definition at line 87 of file GrRenderTargetProxy.h.
◆ refsWrappedObjects()
bool GrRenderTargetProxy::refsWrappedObjects |
( |
| ) |
const |
Definition at line 158 of file GrRenderTargetProxy.cpp.
158 {
160 return false;
161 }
162
165}
bool refsWrappedObjects() const
ResourcePriv resourcePriv()
GrSurface * peekSurface() const
◆ setNeedsStencil()
void GrRenderTargetProxy::setNeedsStencil |
( |
| ) |
|
|
inline |
◆ supportsVkInputAttachment()
bool GrRenderTargetProxy::supportsVkInputAttachment |
( |
| ) |
const |
|
inline |
◆ wrapsVkSecondaryCB()
bool GrRenderTargetProxy::wrapsVkSecondaryCB |
( |
| ) |
const |
|
inline |
◆ GrProxyProvider
◆ GrVkSecondaryCBDrawContext
The documentation for this class was generated from the following files: