Lenguaje

HardwareRenderer.SyncLostSurfaceRewardIfFound Campo

Definición

Precaución

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

El representador de hardware ya no tiene un valor válido android.view.Surface para representarlo.

[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

Valor de campo

Value = 2
Atributos

Comentarios

El representador de hardware ya no tiene un valor válido android.view.Surface para representarlo. Esto puede ocurrir si Surface#release() se llamó a . El usuario ya no debe intentar llamar a syncAndDraw hasta que se haya proporcionado una nueva superficie llamando a setSurface.

Spoiler: la recompensa es el dibujo acelerado por GPU, ¡mejor encuentre que Surface!

Java documentación para android.graphics.HardwareRenderer.SYNC_LOST_SURFACE_REWARD_IF_FOUND.

Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el Android y se usan según los términos descritos en creative Creative Commons 2.5 Attribution License.

Se aplica a