Flutter Engine
The Flutter Engine
|
#include <GrTexture.h>
Static Public Member Functions | |
static bool | StealBackendTexture (sk_sp< GrTexture >, GrBackendTexture *, SkImages::BackendTextureReleaseProc *) |
static void | ComputeScratchKey (const GrCaps &caps, const GrBackendFormat &format, SkISize dimensions, GrRenderable, int sampleCnt, skgpu::Mipmapped, GrProtected, skgpu::ScratchKey *key) |
Static Public Member Functions inherited from GrSurface | |
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 () |
Friends | |
class | GrTextureResource |
Additional Inherited Members | |
Public Types inherited from GrSurface | |
typedef void * | ReleaseCtx |
typedef void(* | ReleaseProc) (ReleaseCtx) |
Public Types inherited from GrIORef< GrGpuResource > | |
enum | LastRemovedRef |
Definition at line 31 of file GrTexture.h.
|
protected |
Definition at line 42 of file GrTexture.cpp.
|
inlineoverridevirtual |
Reimplemented from GrSurface.
Reimplemented in GrMockTextureRenderTarget.
Definition at line 34 of file GrTexture.h.
|
inlineoverridevirtual |
Reimplemented from GrSurface.
Reimplemented in GrMockTextureRenderTarget.
Definition at line 33 of file GrTexture.h.
|
static |
Definition at line 105 of file GrTexture.cpp.
|
overrideprotectedvirtual |
Called by the registerWithCache if the resource is available to be used as scratch. Resource subclasses should override this if the instances should be recycled as scratch resources and populate the scratchKey with the key. By default resources are not recycled as scratch.
Reimplemented from GrGpuResource.
Definition at line 91 of file GrTexture.cpp.
|
pure virtual |
Implemented in GrD3DTexture, GrGLTexture, GrMockTexture, GrMtlTexture, and GrVkTexture.
|
inline |
Definition at line 56 of file GrTexture.h.
void GrTexture::markMipmapsClean | ( | ) |
Definition at line 31 of file GrTexture.cpp.
void GrTexture::markMipmapsDirty | ( | ) |
Definition at line 25 of file GrTexture.cpp.
|
inline |
Definition at line 67 of file GrTexture.h.
|
inline |
Definition at line 62 of file GrTexture.h.
|
inline |
Definition at line 65 of file GrTexture.h.
|
inline |
Definition at line 66 of file GrTexture.h.
|
protectedpure virtual |
Implemented in GrD3DTexture, GrGLTexture, GrMockTexture, GrMtlTexture, and GrVkTexture.
|
static |
This function steals the backend texture from a uniquely owned GrTexture with no pending IO, passing it out to the caller. The GrTexture is deleted in the process.
Note that if the GrTexture is not uniquely owned (no other refs), or has pending IO, this function will fail.
Definition at line 61 of file GrTexture.cpp.
|
pure virtual |
This function indicates that the texture parameters (wrap mode, filtering, ...) have been changed externally to Skia.
Implemented in GrD3DTexture, GrGLTexture, GrMockTexture, GrMtlTexture, and GrVkTexture.
|
inline |
Definition at line 55 of file GrTexture.h.
|
friend |
Definition at line 96 of file GrTexture.h.