# P1 pull-site catalogue — every backend read of frontend state Tree: `C:/Users/geekerwan/AndroidStudioProjects/FoldCraftLauncher/MobileGL-disagg`, branch `feat/disaggregated` @ `5635e33f`. Scope: `MobileGL/MG_Backend/**` (`.cpp` + `.h`), 55 files, both backends plus the shared `BackendObject.h` / `BackendObject.cpp` / `Init.cpp`. Every file:line below was opened; expressions are verbatim from the tree. ## 0. Headline counts (measured on THIS tree, not on the vendored inventory) | what | count | how it was measured | |---|---|---| | lines containing `pGLContext` anywhere in `MG_Backend` | **332** | `grep -rn pGLContext --include=*.cpp --include=*.h` | | `pGLContext->` / `pGLContext.` **member-access sites** | **278** | regex `pGLContext\s*(?:->|\.)\s*(\w+)` over whole files, multi-hit lines counted once per hit | | lines mentioning `pGLContext` with **no** arrow on that line | **58** | `grep -v 'pGLContext->'` — matches the design's 58 exactly | | distinct GLContext accessors actually called | **62** (61 named accessors + one `.get()`) | histogram below | | `SyncPersistentMappedRange()` call sites | **20** | matches the design's 20 | | `SyncGpuWrites()` call sites | **6** | matches the design's 6 | | lines declaring/passing `SharedPtr` or `WeakPtr` | **177** (76 in headers, 101 in .cpp) | these are the "handle-ify" rows | | `GetLifetimeId()` reads on frontend objects | **39** | | | version reads (`GetChangeSerial` / `GetContentVersion` / `GetVersion`) | **36** | | | `BufferBackendOps` touchpoints | **17** lines in `MG_Backend` | 2 register calls + 2 tables + register/unregister plumbing | | other `MG_State::` globals reached by the backends | **0** | only `MG_State::pGLContext`; everything else is `MG_State::GLState::` | ### 0.1 Drift against the vendored inventory — READ THIS FIRST `scripts/data/backend_read_inventory.md:1-30` is a **stale, vendored** copy (generated by `extract_backend_read_inventory.py`, which lives in MobileGL-CS, not in this repo). It claims "pGLContext accesses: **293**", "SharedPtr