Flutter Engine
The Flutter Engine
|
#include <GrSurface.h>
Classes | |
class | RefCntedReleaseProc |
Public Types | |
typedef void * | ReleaseCtx |
typedef void(* | ReleaseProc) (ReleaseCtx) |
Public Types inherited from GrIORef< GrGpuResource > | |
enum | LastRemovedRef |
Static Public Member Functions | |
static size_t | ComputeSize (const GrBackendFormat &, SkISize dimensions, int colorSamplesPerPixel, skgpu::Mipmapped, bool binSize=false) |
Static Public Member Functions inherited from GrGpuResource | |
static uint32_t | CreateUniqueID () |
Private Member Functions | |
const char * | getResourceType () const override |
virtual void | onSetRelease (sk_sp< RefCntedReleaseProc >) |
Definition at line 22 of file GrSurface.h.
typedef void* GrSurface::ReleaseCtx |
Definition at line 50 of file GrSurface.h.
typedef void(* GrSurface::ReleaseProc) (ReleaseCtx) |
Definition at line 51 of file GrSurface.h.
|
inlineprotected |
Definition at line 140 of file GrSurface.h.
|
inlineoverrideprotected |
Definition at line 149 of file GrSurface.h.
|
inlinevirtual |
Reimplemented in GrRenderTarget, and GrMockTextureRenderTarget.
Definition at line 65 of file GrSurface.h.
|
inlinevirtual |
Reimplemented in GrRenderTarget, and GrMockTextureRenderTarget.
Definition at line 66 of file GrSurface.h.
|
inlinevirtual |
Reimplemented in GrTexture, and GrMockTextureRenderTarget.
Definition at line 59 of file GrSurface.h.
|
inlinevirtual |
Reimplemented in GrTexture, and GrMockTextureRenderTarget.
Definition at line 60 of file GrSurface.h.
|
pure virtual |
Implemented in GrD3DAttachment, GrD3DRenderTarget, GrD3DTexture, GrD3DTextureRenderTarget, GrGLAttachment, GrGLRenderTarget, GrGLTexture, GrGLTextureRenderTarget, GrMockAttachment, GrMockTexture, GrMockRenderTarget, GrMockTextureRenderTarget, GrMtlAttachment, GrMtlRenderTarget, GrMtlTexture, GrMtlTextureRenderTarget, GrVkImage, GrVkRenderTarget, GrVkTexture, and GrVkTextureRenderTarget.
|
static |
Definition at line 21 of file GrSurface.cpp.
|
inline |
Retrieves the dimensions of the surface.
Definition at line 27 of file GrSurface.h.
|
inline |
Definition at line 68 of file GrSurface.h.
|
inline |
Definition at line 82 of file GrSurface.h.
|
inline |
Helper that gets the width and height of the surface as a bounding rectangle.
Definition at line 42 of file GrSurface.h.
|
inlineoverrideprivatevirtual |
Describes the type of gpu resource that is represented by the implementing class (e.g. texture, buffer object, stencil). This data is used for diagnostic purposes by dumpMemoryStatistics().
The value returned is expected to be long lived and will not be copied by the caller.
Implements GrGpuResource.
Definition at line 158 of file GrSurface.h.
|
inlineprotected |
Definition at line 117 of file GrSurface.h.
|
inline |
|
inline |
Definition at line 87 of file GrSurface.h.
|
overrideprotectedvirtual |
Overridden to abandon any internal handles, ptrs, etc to backend API resources. This may be called when the underlying 3D context is no longer valid and so no backend API calls should be made.
Reimplemented from GrGpuResource.
Reimplemented in GrVkImage, GrVkRenderTarget, GrVkTexture, and GrVkTextureRenderTarget.
Definition at line 86 of file GrSurface.cpp.
|
overrideprotectedvirtual |
Overridden to free GPU resources in the backend API.
Reimplemented from GrGpuResource.
Reimplemented in GrVkImage, GrVkRenderTarget, GrVkTexture, and GrVkTextureRenderTarget.
Definition at line 81 of file GrSurface.cpp.
|
inlineprivatevirtual |
Reimplemented in GrD3DRenderTarget, GrD3DTexture, GrD3DTextureRenderTarget, GrVkRenderTarget, GrVkTexture, and GrVkTextureRenderTarget.
Definition at line 164 of file GrSurface.h.
|
inline |
The pixel values of this surface cannot be modified (e.g. doesn't support write pixels or MIP map level regen).
Definition at line 80 of file GrSurface.h.
|
inlineprotected |
Definition at line 126 of file GrSurface.h.
|
inline |
Definition at line 89 of file GrSurface.h.
|
inlineprotected |
Definition at line 111 of file GrSurface.h.
|
inlineprotected |
Definition at line 130 of file GrSurface.h.
|
inline |
Definition at line 52 of file GrSurface.h.
void GrSurface::setRelease | ( | sk_sp< skgpu::RefCntedCallback > | releaseHelper | ) |
Definition at line 60 of file GrSurface.cpp.
|
inlineprotected |
Definition at line 121 of file GrSurface.h.
|
inlineprotected |
Definition at line 135 of file GrSurface.h.
|
inline |