mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-11-18 07:23:24 +09:00
[MG_Remote, MG_Test, scripts] (P12): WindowKind::ServerOwned on the wire - control revision 3 with SurfaceRefusal and SurfaceReply width/height/refusal, the codec's ServerOwned rules (creation only, token 0, SetWindowHandle a named refusal) on a frame-local marker, and the non-zero-token latch row
This commit is contained in:
@@ -30,6 +30,14 @@
|
||||
// Fatal{ProtocolCorruption, "SurfaceOp"}. P6's control pump is the intended caller; P5f's unit
|
||||
// tests drive it directly. MetalLayerArrived likewise dies
|
||||
// Fatal{UnmigratedSurface, "MetalLayer@P12"}: CAMetalLayer* is also process-local.
|
||||
//
|
||||
// P12 (on-screen server window). WindowKind::ServerOwned is the one window kind whose window is
|
||||
// NOT the client's: the server substitutes its own (ServerLoop.cpp's ServerOwned arm). The codec
|
||||
// maps it onto the frame-local Server::kServerOwnedWindowBackend and writes/reads nativeToken 0,
|
||||
// always - so the client's window value never reaches the wire. A ServerOwned op with a non-zero
|
||||
// token is a peer's corrupt bytes (Fatal{ProtocolCorruption, "SurfaceOp.nativeToken"}, latched);
|
||||
// SetWindowHandle naming it is a named refusal (SurfaceRefusal::ServerOwnedOnSetWindowHandle),
|
||||
// answered and not latched.
|
||||
|
||||
#pragma once
|
||||
#include <Includes.h>
|
||||
@@ -56,6 +64,10 @@ namespace MobileGL::MG_Remote {
|
||||
UnknownWindowKind, // a WindowKind the mapping table does not know
|
||||
MetalLayerArrived, // -> Fatal{UnmigratedSurface, "MetalLayer@P12"}
|
||||
AndroidNativeWindowArrived, // -> Fatal{UnmigratedSurface, "AndroidNativeWindow@P12"}
|
||||
// P12 (on-screen server window), D2. WindowKind::ServerOwned is legal on
|
||||
// CreateWindowSurface only, and only with nativeToken 0:
|
||||
ServerOwnedTokenNotZero, // -> Fatal{ProtocolCorruption, "SurfaceOp.nativeToken"}, latched
|
||||
ServerOwnedOnSetWindowHandle, // -> a NAMED REFUSAL (reply ok=false), not a latch
|
||||
};
|
||||
|
||||
const char* SurfaceWireErrorName(SurfaceWireError error);
|
||||
|
||||
Reference in New Issue
Block a user