Sync Enum

Definition

public enum Sync
type Sync = 
Inheritance
Sync

Fields

Name Value Description
Ok 0

Nothing interesting to report. Sync & draw kicked off

Android reference for android.graphics.HardwareRenderer.SYNC_OK.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

RedrawRequested 1

The renderer is requesting a redraw. This can occur if there's an animation that's running in the RenderNode tree and the hardware renderer is unable to self-animate. If this is returned from syncAndDraw the expectation is that syncAndDraw will be called again on the next vsync signal.

Android reference for android.graphics.HardwareRenderer.SYNC_REDRAW_REQUESTED.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

LostSurfaceRewardIfFound 2

The hardware renderer no longer has a valid Surface to render to. This can happen if Surface.release() was called. The user should no longer attempt to call syncAndDraw until a new surface has been provided by calling setSurface. Spoiler: the reward is GPU-accelerated drawing, better find that Surface!

Android reference for android.graphics.HardwareRenderer.SYNC_LOST_SURFACE_REWARD_IF_FOUND.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

ContextIsStopped 4

The hardware renderer has been set to a "stopped" state. If this is returned then the rendering content has been synced, however a frame was not produced.

Android reference for android.graphics.HardwareRenderer.SYNC_CONTEXT_IS_STOPPED.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

FrameDropped 8

The content was synced but the renderer has declined to produce a frame in this vsync interval. This can happen if a frame was already drawn in this vsync or if the renderer is outrunning the frame consumer. The renderer will internally re-schedule itself to render a frame in the next vsync signal, so the caller does not need to do anything in response to this signal.

Android reference for android.graphics.HardwareRenderer.SYNC_FRAME_DROPPED.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to