mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-11-18 07:23:24 +09:00
[Refactor] (P13 W5 S4c): the verb emitters, the monolith verb port and the client GPU-write set move to MG_Record under MG_Impl/Pipe/Verb.
This commit is contained in:
@@ -201,6 +201,13 @@ namespace MobileGL::MG_Pipe {
|
||||
} // namespace
|
||||
void MGPipeSetClientDeviceLostProbe(MGPipeClientDeviceLostProbe probe) { g_clientDeviceLostProbe = probe; }
|
||||
Bool MGPipeClientDeviceLost() { return g_clientDeviceLostProbe != nullptr && g_clientDeviceLostProbe(); }
|
||||
namespace {
|
||||
constinit MGPipeClientLossConfirmer g_clientLossConfirmer = nullptr;
|
||||
} // namespace
|
||||
void MGPipeSetClientLossConfirmer(MGPipeClientLossConfirmer confirmer) { g_clientLossConfirmer = confirmer; }
|
||||
Bool MGPipeClientConfirmLossAfterDecline(Uint32 waitMs) {
|
||||
return g_clientLossConfirmer != nullptr && g_clientLossConfirmer(waitMs);
|
||||
}
|
||||
|
||||
#if MOBILEGL_BUILD_RECORD_ARM
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user