語言

HardwareRenderer.SyncLostSurfaceRewardIfFound 欄位

定義

警告

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

硬體渲染器已經沒有有效 android.view.Surface 訊號可以渲染了。

[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

欄位值

Value = 2
屬性

備註

硬體渲染器已經沒有有效 android.view.Surface 訊號可以渲染了。 這種情況 Surface#release() 如果被叫到可能會發生。 使用者不應再嘗試呼叫 syncAndDraw,直到呼叫 setSurface 提供新的表面。

劇透:獎勵是 GPU 加速繪圖,最好找到那個 Surface!

Java 文件 android.graphics.HardwareRenderer.SYNC_LOST_SURFACE_REWARD_IF_FOUND。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於