|
GrRenderTarget * | asRenderTarget () override |
|
const GrRenderTarget * | asRenderTarget () const override |
|
bool | isStencilBufferMultisampled () const |
|
bool | isMixedSampled () const |
| For our purposes, "Mixed Sampled" means the stencil buffer is multisampled but the color buffer is not.
|
|
bool | isUnifiedMultisampled () const |
| "Unified Sampled" means the stencil and color buffers are both multisampled.
|
|
int | numStencilSamples () const |
| Returns the number of samples/pixel in the stencil buffer (Zero if non-MSAA).
|
|
int | numColorSamples () const |
| Returns the number of samples/pixel in the color buffer (Zero if non-MSAA or mixed sampled).
|
|
void | flagAsNeedingResolve (const SkIRect *rect=NULL) |
| Call to indicate the multisample contents were modified such that the render target needs to be resolved before it can be used as texture. More...
|
|
void | overrideResolveRect (const SkIRect rect) |
| Call to override the region that needs to be resolved.
|
|
void | flagAsResolved () |
| Call to indicate that GrRenderTarget was externally resolved. More...
|
|
bool | needsResolve () const |
|
const SkIRect & | getResolveRect () const |
| Returns a rect bounding the region needing resolving.
|
|
void | discard () |
| Provide a performance hint that the render target's contents are allowed to become undefined.
|
|
virtual ResolveType | getResolveType () const =0 |
|
virtual GrBackendObject | getRenderTargetHandle () const =0 |
| Return the native ID or handle to the rendertarget, depending on the platform. More...
|
|
virtual bool | canAttemptStencilAttachment () const =0 |
|
GrRenderTargetPriv | renderTargetPriv () |
|
const GrRenderTargetPriv | renderTargetPriv () const |
|
void | setLastDrawTarget (GrDrawTarget *dt) |
|
GrDrawTarget * | getLastDrawTarget () |
|
int | width () const |
| Retrieves the width of the surface.
|
|
int | height () const |
| Retrieves the height of the surface.
|
|
void | getBoundsRect (SkRect *rect) const |
| Helper that gets the width and height of the surface as a bounding rectangle.
|
|
GrSurfaceOrigin | origin () const |
|
GrPixelConfig | config () const |
| Retrieves the pixel config specified when the surface was created. More...
|
|
const GrSurfaceDesc & | desc () const |
| Return the descriptor describing the surface.
|
|
virtual GrTexture * | asTexture () |
|
virtual const GrTexture * | asTexture () const |
|
bool | readPixels (int left, int top, int width, int height, GrPixelConfig config, void *buffer, size_t rowBytes=0, uint32_t pixelOpsFlags=0) |
| Reads a rectangle of pixels from the surface. More...
|
|
bool | writePixels (int left, int top, int width, int height, GrPixelConfig config, const void *buffer, size_t rowBytes=0, uint32_t pixelOpsFlags=0) |
| Copy the src pixels [buffer, rowbytes, pixelconfig] into the surface at the specified rectangle. More...
|
|
void | flushWrites () |
| After this returns any pending writes to the surface will be issued to the backend 3D API.
|
|
GrSurfacePriv | surfacePriv () |
| Access methods that are only to be used within Skia code. More...
|
|
const GrSurfacePriv | surfacePriv () const |
|
void | setRelease (ReleaseProc proc, ReleaseCtx ctx) |
|
bool | wasDestroyed () const |
| Tests whether a object has been abandoned or released. More...
|
|
const GrContext * | getContext () const |
| Retrieves the context that owns the object. More...
|
|
GrContext * | getContext () |
|
size_t | gpuMemorySize () const |
| Retrieves the amount of GPU memory used by this resource in bytes. More...
|
|
uint32_t | getUniqueID () const |
| Gets an id that is unique for this GrGpuResource object. More...
|
|
const GrUniqueKey & | getUniqueKey () const |
| Returns the current unique key for the resource. More...
|
|
const SkData * | setCustomData (const SkData *data) |
| Attach a custom data object to this resource. More...
|
|
const SkData * | getCustomData () const |
| Returns the custom data object that was attached to this resource by calling setCustomData.
|
|
CacheAccess | cacheAccess () |
|
const CacheAccess | cacheAccess () const |
|
ResourcePriv | resourcePriv () |
|
const ResourcePriv | resourcePriv () const |
|
void | abandon () |
| Removes references to objects in the underlying 3D API without freeing them. More...
|
|
virtual void | dumpMemoryStatistics (SkTraceMemoryDump *traceMemoryDump) const |
| Dumps memory usage information for this GrGpuResource to traceMemoryDump. More...
|
|
void | ref () const |
|
void | unref () const |
|
void | validate () const |
|
|
| GR_DECL_BITFIELD_CLASS_OPS_FRIENDS (Flags) |
|
| GrRenderTarget (GrGpu *, const GrSurfaceDesc &, Flags=Flags::kNone, GrStencilAttachment *=nullptr) |
|
void | onAbandon () override |
| Overridden to abandon any internal handles, ptrs, etc to backend API resources. More...
|
|
void | onRelease () override |
| Overridden to free GPU resources in the backend API. More...
|
|
bool | savePixels (const char *filename) |
|
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 |
|
GrRenderTarget represents a 2D buffer of pixels that can be rendered to.
A context's render target is set by setRenderTarget(). Render targets are created by a createTexture with the kRenderTarget_SurfaceFlag flag. Additionally, GrContext provides methods for creating GrRenderTargets that wrap externally created render targets.