| Modifier and Type | Class and Description |
|---|---|
| public static enum | Renderer.
Enumeration describing the lifecycle states of the renderer. |
| Modifier and Type | Field and Description |
|---|---|
| private final ImagePool | |
| private Map | |
| private static final Map | |
| public static final String | |
| protected static final boolean |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public abstract void | clearImage(Filterable
the image to be cleared image)Mainly used by |
| public abstract PoolFilterable | |
| public LockableResource | |
| public abstract ImageData | Returns: a newImageDatathe filter context fctx, Filterable src)Mainly used by the |
| protected abstract EffectPeer | Returns: new peercontext shared with the renderer fctx, String of the peer name, int unroll count unrollCount)Creates a new peer given the context, name and unroll count. |
| public abstract Effect. | Returns: theAccelType used by typical peers of this rendererReturns the |
| protected abstract Renderer | Returns: backup rendererReturns an instance of backup renderer to be used if this renderer
is in |
| public abstract int | |
| public PoolFilterable | |
| public abstract int | |
| public final synchronized EffectPeer | Returns: cached peer for this name and unroll countfilter context - same as this renderer's context fctx, String not-unrolled name of the peer name, int unrollCount)Returns a (cached) instance of peer given the context, name and unroll count. |
| protected Collection | |
| public static synchronized Renderer | Returns: renderercontext to create the renderer for fctx)Returns a renderer associated with given filter context based on the environment and flags set. |
| public static Renderer | Returns: renderercontext to create the renderer for fctx, Effect uses in the rendering effect, int approximate input width approxW, int approximate input height approxH)Returns a renderer that is most optimal for the approximate size of the filtering operation. |
| protected Renderer | Returns: theRenderer best suited for this sizeapproximate input width approxW, int approximate input height approxH)Returns a |
| public abstract Renderer. | |
| protected static Renderer | Returns: an instance of Renderer that uses CPU filteringThis method can be used by subclasses to create a backup renderer, either a SW (Java) renderer or an SSE (native) renderer, depending on what is available. |
| public abstract boolean | Returns: true if this image data is compatible, false otherwiseImageData to be checkedDetermines whether the passed |
| public void | |
| public void | |
| public ImageData | |
| public abstract Filterable | transform(FilterContext fctx, Filterable original, BaseTransform transform, Rectangle origBounds, Rectangle xformBounds)
|
| public abstract ImageData | transform(FilterContext fctx, ImageData original, BaseTransform transform, Rectangle origBounds, Rectangle xformBounds)
|
| public void |
| imagePool | back to summary |
|---|---|
| private final ImagePool imagePool | |
| peerCache | back to summary |
|---|---|
| private Map<String, EffectPeer<T extends RenderState>> peerCache | |
| rendererMap | back to summary |
|---|---|
| private static final Map<FilterContext, Renderer> rendererMap | |
| rootPkg | back to summary |
|---|---|
| public static final String rootPkg | |
| verbose | back to summary |
|---|---|
| protected static final boolean verbose | |
| Renderer | back to summary |
|---|---|
| protected Renderer() | |
| clearImage | back to summary |
|---|---|
| public abstract void clearImage(Filterable image) Mainly used by
| |
| createCompatibleImage | back to summary |
|---|---|
| public abstract PoolFilterable createCompatibleImage(int w, int h) | |
| createFloatTexture | back to summary |
|---|---|
| public LockableResource createFloatTexture(int w, int h) | |
| createImageData | back to summary |
|---|---|
| public abstract ImageData createImageData(FilterContext fctx, Filterable src) Mainly used by the
| |
| createPeer | back to summary |
|---|---|
| protected abstract EffectPeer Creates a new peer given the context, name and unroll count.
| |
| getAccelType | back to summary |
|---|---|
| public abstract Effect. Returns the | |
| getBackupRenderer | back to summary |
|---|---|
| protected abstract Renderer getBackupRenderer() Returns an instance of backup renderer to be used if this renderer
is in
| |
| getCompatibleHeight | back to summary |
|---|---|
| public abstract int getCompatibleHeight(int h) | |
| getCompatibleImage | back to summary |
|---|---|
| public PoolFilterable getCompatibleImage(int w, int h) | |
| getCompatibleWidth | back to summary |
|---|---|
| public abstract int getCompatibleWidth(int w) | |
| getPeerInstance | back to summary |
|---|---|
| public final synchronized EffectPeer Returns a (cached) instance of peer given the context, name and unroll count.
| |
| getPeers | back to summary |
|---|---|
| protected Collection Returns current cache of peers. | |
| getRenderer | back to summary |
|---|---|
| public static synchronized Renderer getRenderer(FilterContext fctx) Returns a renderer associated with given filter context based on the environment and flags set. Renderers are per filter context cached.
| |
| getRenderer | back to summary |
|---|---|
| public static Renderer getRenderer(FilterContext fctx, Effect effect, int approxW, int approxH) Returns a renderer that is most optimal for the approximate size of the filtering operation.
| |
| getRendererForSize | back to summary |
|---|---|
| protected Renderer getRendererForSize(Effect effect, int approxW, int approxH) Returns a
| |
| getRendererState | back to summary |
|---|---|
| public abstract Renderer. Returns this renderer's current state.
| |
| getSoftwareRenderer | back to summary |
|---|---|
| protected static Renderer getSoftwareRenderer() This method can be used by subclasses to create a backup renderer, either a SW (Java) renderer or an SSE (native) renderer, depending on what is available.
| |
| isImageDataCompatible | back to summary |
|---|---|
| public abstract boolean isImageDataCompatible(ImageData id) Determines whether the passed
| |
| releaseCompatibleImage | back to summary |
|---|---|
| public void releaseCompatibleImage(Filterable image) | |
| releasePurgatory | back to summary |
|---|---|
| public void releasePurgatory() This is a temporary workaround for a PowerVR SGX issue. See ImagePool for more details. | |
| transform | back to summary |
|---|---|
| public ImageData transform(FilterContext fctx, ImageData img, int xpow2scales, int ypow2scales) | |
| transform | back to summary |
|---|---|
| public abstract Filterable transform(FilterContext fctx, Filterable original, BaseTransform transform, Rectangle origBounds, Rectangle xformBounds) | |
| transform | back to summary |
|---|---|
| public abstract ImageData transform(FilterContext fctx, ImageData original, BaseTransform transform, Rectangle origBounds, Rectangle xformBounds) | |
| updateFloatTexture | back to summary |
|---|---|
| public void updateFloatTexture(LockableResource texture, FloatMap map) | |
OK
state, or it will start in the NOTREADY state until
the first time it is used during rendering, then transition
to the OK state.
It could become LOST at some point. This may happen for
example if the renderer is susceptible to display changes.
When the renderer is in the LOST state it can't be used
for rendering, instead a backup renderer
must be used.
Sometime later the renderer could enter the DISPOSED state,
at which point it will be removed from the cache and a new renderer
will be created for the particular context.
Thus the lifecycle of a renderer is:
[NOTREADY =>] OK [=> LOST [=> DISPOSED]]
| Modifier and Type | Field and Description |
|---|---|
| public static final Renderer. | DISPOSED
Renderer is disposed, it is no longer usable and must be replaced. |
| public static final Renderer. | LOST
Renderer is lost, a backup renderer must be used. |
| public static final Renderer. | NOTREADY
Renderer is not ready; it might be able to be used for rendering. |
| public static final Renderer. | OK
Renderer can be used for rendering. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Renderer. | |
| public static Renderer. |
| DISPOSED | back to summary |
|---|---|
| public static final Renderer. Renderer is disposed, it is no longer usable and must be replaced. | |
| LOST | back to summary |
|---|---|
| public static final Renderer. Renderer is lost, a backup renderer must be used. | |
| NOTREADY | back to summary |
|---|---|
| public static final Renderer. Renderer is not ready; it might be able to be used for rendering. | |
| OK | back to summary |
|---|---|
| public static final Renderer. Renderer can be used for rendering. | |
| RendererState | back to summary |
|---|---|
| private RendererState() | |
| valueOf | back to summary |
|---|---|
| public static Renderer. | |
| values | back to summary |
|---|---|
| public static Renderer. | |