Commit e1e109b
refactor: extract ResourceId utils, split diff.cpp, replace magic numbers
- Create resource_id.h with shared toResourceId/fromResourceId inline
functions, eliminating duplicate definitions across 13 source files
- Create constants.h defining kMaxRenderTargets, kDefaultDrawLimit,
kDefaultShaderSearchLimit, kHistogramBucketCount, kMaxDebugVarComponents
- Split monolithic diff.cpp (1122 lines) into 4 focused modules:
diff_alignment.cpp, diff_structure.cpp, diff_pipeline.cpp, diff_summary.cpp
with diff_internal.h for shared helpers
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 50fd55c commit e1e109b
File tree
24 files changed
+1249
-1271
lines changed- src/core
24 files changed
+1249
-1271
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
48 | 51 | | |
49 | 52 | | |
50 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
70 | | - | |
| 71 | + | |
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
74 | | - | |
| 75 | + | |
75 | 76 | | |
76 | 77 | | |
77 | 78 | | |
78 | | - | |
| 79 | + | |
79 | 80 | | |
80 | 81 | | |
81 | 82 | | |
| |||
0 commit comments