|
static size_t | WorstCaseSize (const GrSurfaceDesc &desc, bool useNextPow2=false) |
|
static size_t | ComputeSize (GrPixelConfig config, int width, int height, int colorSamplesPerPixel, bool hasMIPMaps, bool useNextPow2=false) |
|
static uint32_t | CreateUniqueID () |
|
|
bool | hasPendingRead () const |
|
bool | hasPendingWrite () const |
|
bool | hasPendingIO () const |
|
| GrSurface (GrGpu *gpu, const GrSurfaceDesc &desc) |
|
void | onRelease () override |
| Overridden to free GPU resources in the backend API. More...
|
|
void | onAbandon () override |
| Overridden to abandon any internal handles, ptrs, etc to backend API resources. More...
|
|
void | registerWithCache (SkBudgeted) |
|
void | registerWithCacheWrapped () |
|
| GrGpuResource (GrGpu *) |
|
GrGpu * | getGpu () const |
|
void | didChangeGpuMemorySize () const |
| This entry point should be called whenever gpuMemorySize() should report a different size. More...
|
|
virtual void | setMemoryBacking (SkTraceMemoryDump *, const SkString &) const |
| Allows subclasses to add additional backing information to the SkTraceMemoryDump. More...
|
|
bool | isPurgeable () const |
|
bool | internalHasPendingRead () const |
|
bool | internalHasPendingWrite () const |
|
bool | internalHasPendingIO () const |
|
bool | internalHasRef () const |
|
|
GrPixelConfig | fConfig |
|
int | fWidth |
|
int | fHeight |
|
GrSurfaceOrigin | fOrigin |
|
- Returns
- the render target underlying this surface, may be null.
Reimplemented in GrRenderTarget.
- Returns
- the texture associated with the surface, may be null.
Reimplemented in GrTexture.
GrPixelConfig GrSurface::config |
( |
| ) |
const |
|
inline |
Retrieves the pixel config specified when the surface was created.
For render targets this can be kUnknown_GrPixelConfig if client asked us to render to a target that has a pixel config that isn't equivalent with one of our configs.
void GrSurface::onAbandon |
( |
| ) |
|
|
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.
void GrSurface::onRelease |
( |
| ) |
|
|
overrideprotectedvirtual |
Overridden to free GPU resources in the backend API.
Reimplemented from GrGpuResource.
GrSurfacePriv GrSurface::surfacePriv |
( |
| ) |
|
|
inline |
Access methods that are only to be used within Skia code.
The documentation for this class was generated from the following file: