Freigeben über


HardwareRenderer.SyncLostSurfaceRewardIfFound Field

Definition

Caution

This constant will be removed in the future version. Use Android.Graphics.Sync enum directly instead of this field.

The hardware renderer no longer has a valid android.view.Surface to render to.

[Android.Runtime.Register("SYNC_LOST_SURFACE_REWARD_IF_FOUND", ApiSince=29)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Graphics.Sync enum directly instead of this field.", true)]
public const Android.Graphics.Sync SyncLostSurfaceRewardIfFound = 2;
[<Android.Runtime.Register("SYNC_LOST_SURFACE_REWARD_IF_FOUND", ApiSince=29)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Graphics.Sync enum directly instead of this field.", true)>]
val mutable SyncLostSurfaceRewardIfFound : Android.Graphics.Sync

Field Value

Value = 2
Attributes

Remarks

The hardware renderer no longer has a valid android.view.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!

Java documentation 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.

Applies to