Commit Graph
486 Commits
Author SHA1 Message Date
Mex ba53b47048 Use the standard divisibility check in the bevel fixture 2026-11-21 10:54:15 +01:00
Mex f0a1b7c9c3 Tests: cut duplicate bevel thread cases (#15935) 2026-11-21 10:39:20 +01:00
David Mann 59147c730c Merge #15112 into the merge queue batch
fix(compose): honour Anti-aliased for the Inner Shadow map
2026-11-20 15:52:16 +01:00
David Mann 1a97ade598 Merge #15735 into the merge queue batch
fix(compose): draw a one-pixel Size 1 Inner Glow
2026-11-20 14:16:36 +01:00
David Mann 95af987938 Merge #15013 into the merge queue batch
Gradient Map: keep the gradient's lightness in Grayscale documents (#14698)
2026-11-20 14:16:34 +01:00
hnoerenberg 8b1af24cb8 Merge upstream/main into fix/inner-shadow-antialiased-14934 2026-11-20 14:14:18 +01:00
David Mann bb4dc343b3 Merge #15420 into the merge queue batch
fix(compose): fade split Blend If points over both ends in 8-bit documents (#14855)
2026-11-20 02:04:37 +01:00
David Mann 968d74adee Merge #15282 into the merge queue batch
Layer Style: Satin's Invert flips the result after the contour (#14981)
2026-11-20 02:04:36 +01:00
David Mann 210de55b1a Merge #15197 into the merge queue batch
fix(compose): scatter Outer Glow noise at the measured strength

# Conflicts:
#	crates/compose/src/effects.rs
2026-11-19 22:27:52 +01:00
David Mann 79cb23b131 Merge #15188 into the merge queue batch
fix(compose): scatter effect noise at the measured strength (inner shadow)
2026-11-19 22:27:51 +01:00
David Mann 3674da4f9d Merge pull request #10537 from admiralronton/fix/bevel-gloss-high-altitude
Bevel gloss contour: split at the unmapped sin(altitude) (#594)
2026-11-19 18:58:15 +01:00
aiongg 5e6d342b36 Merge pull request #15718 from FredApps/fix/15708-deterministic-spill
Give scratch tests a deterministic volume capacity
2026-11-19 09:58:09 -05:00
hnoerenberg e0d86d4a8b Merge upstream/main into fix/outer-glow-noise-14952 2026-11-19 14:14:02 +01:00
hnoerenberg 67a003d706 Merge upstream/main into fix/inner-glow-noise-14936 2026-11-19 14:13:58 +01:00
hnoerenberg 3a06f56045 Merge upstream/main into fix/inner-shadow-antialiased-14934 2026-11-19 14:13:40 +01:00
aiongg a8f95bd16d Document layer index and index-ordered selection (#15704)
Document.layers is a LayerTree that builds an id index on first lookup and drops it on any mutable access. Layer lookups and selected_layers use the index instead of walking the document.
2026-11-19 10:07:19 +00:00
haranishi 378c31c92b fix(compose): render Size 1 Softer Inner Glow at edges 2026-11-19 18:38:36 +09:00
FredApps 236bc84a5e Give scratch tests a deterministic volume capacity 2026-11-19 08:01:25 +01:00
jayzed80 3dffdf3254 Merge remote-tracking branch 'upstream/main' into fix/gradient-map-grayscale-lightness-14698 2026-11-19 02:03:19 +00:00
hnoerenberg c833af6559 Merge upstream/main into fix/outer-glow-noise-14952 2026-11-19 02:52:31 +01:00
hnoerenberg 750dc456f6 Merge upstream/main into fix/inner-glow-noise-14936 2026-11-19 02:52:26 +01:00
hnoerenberg 3d1b4633d9 Merge upstream/main into fix/inner-shadow-antialiased-14934 2026-11-19 02:00:52 +01:00
David Mann 1fb5b51051 Merge remote-tracking branch 'origin/main' into test-speed/15652-unclaimed-slow-tests
# Conflicts:
#	crates/ui-egui/tests/it/batch_export_options.rs
2026-11-18 22:14:41 +01:00
David MannandClaude Opus 5.5 493d2df62f Tests: trim the loops of the unclaimed slow tests that reach no new code (#15652)
Each removed variant takes the same branch as one that stays, or is covered without the app or
oracle cost by a named lower-level test; the commit's comments say which for every test.

ui-egui: floating-document zoom (10 frames after Enter, not 60), Wide Angle (one depth per mode,
alpha kept), Brush panel sections (only those Brush Settings draws; Brushes ignores the section),
Camera Raw GPU (8 and 32 bits), enable rules (one app per world, a copied style for Paste only),
Content-Aware Move preview (selection just past the coarse budget, smaller canvas).
algo/compose/engine/gpu/format: Pixelate (Lab, cell 100, seed 37, tile 1), box blurs (Gaussian
40), Smart Blur (multichannel layouts cover every arm; Low and High), FFT sharpen gate (one
depth), panorama batching (budgets at every split instead of a 47-step sweep), bevel and chisel
threads (2 and 16), fused tone tiles (256 x 256, the U16 table threshold), live dabs (8 and 32
bits), Camera Raw GPU sizes (1600 x 240 wide case; the proxy-size per-pixel run lives in the
clarity test), directory bundle (two modes; zip_cases has the matrix).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-18 22:14:12 +01:00
aiongg 877e23f543 Tests: one shared lock per process-wide global in each merged test binary
The scratch pool and spill configuration, simulated free memory and the global caches are locked from tests/it/main.rs instead of a mutex per file.
2026-11-18 19:19:35 +00:00
aiongg 0081fd10e1 Tests: merge single-file integration test binaries into one binary per crate
Each crate's top-level tests/*.rs files become modules of tests/it/main.rs, and a new xtask check (test-binaries) refuses a new single-file test binary.
2026-11-18 19:11:27 +00:00
FredApps 9d57ea4b1c Merge pull request #15095 from yoriswind/codex/define-brush-visible-source-14271
Define brush presets from the visible document composite
2026-11-18 16:28:32 +07:00
David Mann 01a5b5a389 Merge pull request #15381 from davidmann4/perf/test-speed-quick-wins
Test speed: no font scan in test processes, CMYK profile once, raw-develop at one depth (#15377)
2026-11-17 16:49:07 +01:00
aiongg ed14e1c413 PhotoCraft on the craft UI framework (#15449)
PhotoCraft's UI moves onto the shared craft UI framework in storytold/craft-libs (next branch): shell, dock and panels, hosted dialogs, keyboard, focus, IME and pointer routing, the canvas's view commands, themes and tokens. The engine, document model, file formats, commands and automation stay. PhotoCraft pins storytold/craft-libs next.
2026-11-17 10:41:35 -05:00
ljkx 0acff4c7f2 fix(compose): keep the plain Blend If ramp outside RGB documents
Only 8-bit RGB was measured for #14855; Grayscale and Duotone keep
today's split fade on the CPU and the GPU.
2026-11-17 09:53:38 +01:00
ljkx 9841d0f886 fix(compose): fade split Blend If points over both ends in 8-bit documents (#14855)
A split Blend If slider faded as (v - low) / (high - low), so the fade
started a level late and every value between the halves showed a little
less of the layer than the reference application. 8-bit documents now
fade as (v - low + 1) / (high - low + 1) on the black side and
(high - v + 1) / (high - low + 1) on the white side, on the CPU
(BlendRange::weight_8bit through blend_if_weight) and the GPU (bi_ramp,
flagged per pass in p4.z). Unsplit points and 16/32-bit documents keep
their behaviour.
2026-11-17 09:33:29 +01:00
ljkx c4f672d2f7 test(compose): Blend If split fade measurements (#14855) 2026-11-17 09:32:03 +01:00
David MannandClaude Opus 5.5 484483b691 test: build the CMYK test profile once, run large raw-develop sizes at one depth
- cmyk_flatten_profile: synthesise the test profile once per process and
  share one Arc, so CmykSpace's per-allocation cache builds the transforms
  once; exact() reads both rows from one run (4 documents, not 8).
- camera_raw GPU tests: the 858x572 and 1600x900 comparisons run at one
  depth each. The depth only changes the input quantization (8 and 16 bits
  both develop with float = false) and every depth runs at 171x113 above.
- cols_timing is a benchmark without assertions: ignore it like its
  siblings.
- compose: delete clipped_dissolve_is_binary_and_preserves_the_base_shape,
  a byte-identical copy of clipped_dissolve_opacity_fill_is_binary_and_
  preserves_base_shape (whose doc comment names both issues).

Part of #15376.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-17 02:03:03 +01:00
hnoerenberg 857e0eb8e6 fix(effects): gate the Inner Shadow AA offset to the measured map
An independent review found that the third-of-a-pixel source offset sat on
every Size, Choke and Distance with Anti-aliased on, while only Size 10 at
Choke 0 was measured. Both neighbours of that configuration are
degeneracies of `spread_split`: at a blur width of 1 (Size 1, or Size 2 at
Choke 50 %) `dilate` no-ops and the tent blur is the identity, so the
offset became the whole map - 1/3 coverage on the bottom and right inner
edges (G 89.7 against the layer's own 128) and nothing at the top and
left, a one-sided black line. At a Choke that dilates the CPU recomputes
its chamfer distance on the offset map while `B::spread_blur` shifts the
whole-pixel `ChokeInside` field of the unshifted shape, so the two
compositors part by 40/255.

`aa_shift` now takes the Size and Choke and applies the offset only to a
split of no dilation and a blur wider than the identity, with the Gaussian
contour: a rule in the inputs, not the measured document's Size 10. Sizes
1.5 to 250 at Choke 0, Distance 5 and Choke 4 % (which dilates nothing)
still take it; Size 1, Size 2 at Choke 50 % and every Choke that dilates
keep today's map bit-for-bit. Four new CPU probes, one GPU stage-list
probe and one GPU-vs-CPU parity probe pin both sides: three of the CPU
probes and both GPU probes failed on this branch's head before the gate
(the parity probe at max diff 40.04/255, Size 10 Choke 50 %).
2026-11-16 18:43:03 +01:00
hnoerenberg 6434f86f89 Merge upstream/main into fix/inner-shadow-antialiased-14934 2026-11-16 17:26:06 +01:00
admiralronton 95302d354e Merge remote-tracking branch 'origin/main' into fix/bevel-gloss-high-altitude 2026-11-16 07:12:58 -08:00
Yoris Wind ccfb68c86b Format outside-stroke scalar allocation controls 2026-11-16 06:07:06 -08:00
Yoris Wind 9cf0e44a53 Make outside-stroke scalar scratch allocations fallible 2026-11-16 05:53:57 -08:00
yoriswind f95c65faa5 Restore accepted brush sampling and fallible outside stroke accumulation 2026-11-16 02:51:23 -08:00
yoriswind 9be5842ab6 Fix WASM compositor chunk borrow ordering 2026-11-16 01:34:16 -08:00
yoriswind 4a83953fc4 Move fallible render tests after production items 2026-11-16 00:29:44 -08:00
yoriswind 949e2d4d71 Format compositor lint repair 2026-11-16 00:15:54 -08:00
NaufalDzzandOpenBot b84eb0fc74 Layer Style: Satin's Invert flips the result after the contour (#14981)
satin_map inverted the coverage before the contour LUT, so a curved
contour with Invert on was not the opposite of the same Satin without
Invert. Invert now applies after the contour on the CPU, and the GPU
satin stage uses fs_mfinish's existing after-contour mode.

Co-authored-by: OpenBot <335604065+openbotgit[bot]@users.noreply.github.com>
2026-11-16 08:08:38 +00:00
yoriswind ec81755e2b Factor prepared compositor inputs and shape parts for strict lint 2026-11-16 00:06:59 -08:00
yoriswind 2ea1f2b916 Apply rustfmt to fallible compositor candidate 2026-11-15 20:36:37 -08:00
yoriswind 2277c67195 Remove unused effects wrapper re-export 2026-11-15 20:30:41 -08:00
yoriswind 1c0db80938 Remove obsolete infallible compositor wrappers 2026-11-15 20:28:25 -08:00
hnoerenberg e59b7f9c8e Merge upstream/main into fix/outer-glow-noise-14952 2026-11-16 05:27:23 +01:00
hnoerenberg b8ce481908 Merge upstream/main into fix/inner-glow-noise-14936 2026-11-16 05:27:19 +01:00
yoriswind 138b591c3c Remove stale compositor wrapper imports 2026-11-15 20:27:07 -08:00