![]() |
Flutter Engine
The Flutter Engine
|
#include <GrAttachment.h>
Public Types | |
enum class | UsageFlags : uint8_t { kStencilAttachment = 0x1 , kColorAttachment = 0x2 , kTexture = 0x4 } |
![]() | |
typedef void * | ReleaseCtx |
typedef void(* | ReleaseProc) (ReleaseCtx) |
![]() | |
enum | LastRemovedRef |
Static Public Member Functions | |
static void | ComputeSharedAttachmentUniqueKey (const GrCaps &caps, const GrBackendFormat &format, SkISize dimensions, UsageFlags requiredUsage, int sampleCnt, skgpu::Mipmapped mipmapped, GrProtected isProtected, GrMemoryless memoryless, skgpu::UniqueKey *key) |
static void | ComputeScratchKey (const GrCaps &caps, const GrBackendFormat &format, SkISize dimensions, UsageFlags requiredUsage, int sampleCnt, skgpu::Mipmapped mipmapped, GrProtected, GrMemoryless, skgpu::ScratchKey *key) |
![]() | |
static size_t | ComputeSize (const GrBackendFormat &, SkISize dimensions, int colorSamplesPerPixel, skgpu::Mipmapped, bool binSize=false) |
![]() | |
static uint32_t | CreateUniqueID () |
This is a generic attachment class for out GrSurfaces. It always represents a single gpu allocation. It contains usage flags so that we know what the attachment can be used for.
TODO: Once we can pull out GrRenderTarget to be more of a framebuffer and break apart our texture render target diamond, we will merge this class with GrSurface. Until then this will act as the staging class for the new surface and framebuffer world.
Definition at line 25 of file GrAttachment.h.
|
strong |
Enumerator | |
---|---|
kStencilAttachment | |
kColorAttachment | |
kTexture |
Definition at line 27 of file GrAttachment.h.
|
inlineoverride |
Definition at line 34 of file GrAttachment.h.
|
inlineprotected |
Definition at line 73 of file GrAttachment.h.
|
static |
Definition at line 81 of file GrAttachment.cpp.
|
static |
Definition at line 65 of file GrAttachment.cpp.
GrAttachment::GR_DECL_BITFIELD_CLASS_OPS_FRIENDS | ( | UsageFlags | ) |
|
inline |
Definition at line 42 of file GrAttachment.h.
|
inline |
Definition at line 43 of file GrAttachment.h.
|
inline |
Definition at line 40 of file GrAttachment.h.
|
inline |
Definition at line 38 of file GrAttachment.h.
|
inline |
Definition at line 36 of file GrAttachment.h.