diff options
| author | skal <pascal.massimino@gmail.com> | 2026-02-07 09:21:01 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-02-07 09:21:01 +0100 |
| commit | 514d1b83562cbe63a24e8a53f90cda81f941b608 (patch) | |
| tree | 3031f42bcff938b560eefdd798e0c87282a842d1 /PLATFORM_ANALYSIS.md | |
| parent | 17b8ffac48643040cddfb0a51025bab62245326f (diff) | |
docs: Update platform reports to reflect completed reorganization
Marked file reorganization as complete in both analysis reports.
All goals achieved:
- Test coverage: 0% → 70%
- Files moved to src/platform/ subdirectory
- All builds passing, zero functional changes
Diffstat (limited to 'PLATFORM_ANALYSIS.md')
| -rw-r--r-- | PLATFORM_ANALYSIS.md | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/PLATFORM_ANALYSIS.md b/PLATFORM_ANALYSIS.md index ca5ef0e..eefbd42 100644 --- a/PLATFORM_ANALYSIS.md +++ b/PLATFORM_ANALYSIS.md @@ -70,24 +70,22 @@ platform_wgpu_set_error_callback() ## Proposed Reorganization -### Option A: Minimal Move (Recommended) +### ✅ Option A: Minimal Move (COMPLETED - February 7, 2026) **Goal**: Move platform files to subdirectory, keep GPU platform code in place **Changes**: -1. Create `src/platform/` directory -2. Move `src/platform.{h,cc}` → `src/platform/platform.{h,cc}` -3. Update all includes: `#include "platform.h"` → `#include "platform/platform.h"` -4. Leave GPU platform-specific code in `src/gpu/*` (it's WebGPU API abstraction, not OS abstraction) +1. ✅ Create `src/platform/` directory +2. ✅ Move `src/platform.{h,cc}` → `src/platform/platform.{h,cc}` +3. ✅ Update all includes: `#include "platform.h"` → `#include "platform/platform.h"` +4. ✅ Leave GPU platform-specific code in `src/gpu/*` (it's WebGPU API abstraction, not OS abstraction) -**Pros**: +**Results**: - Clean separation: platform windowing in `platform/`, GPU API shims in `gpu/` -- Minimal code changes (just include paths) +- 11 files updated (include paths) - Follows existing pattern (`src/audio/`, `src/3d/`, `src/gpu/`) +- All builds pass, tests pass, no functional changes -**Cons**: -- Platform-specific code still scattered (but logically grouped) - -**Impact**: 10 files need include path updates +**Commit**: `17b8ffa - refactor: Move platform files to src/platform/ subdirectory` --- |
