This repository was archived by the owner on Jul 9, 2025. It is now read-only.
Commit 1bc435d
committed
Bug 1659418 - Handle inverse projection negative hemisphere r=nical
Our inverse projection logic was correct, just not fully complete.
The problem is that it didn't take into account that the projected point can be in negative hemisphere.
Now we are checking for this and bailing out of building a tight rect if this is the case.
Another small change is in `get_raster_rects`: if we are unable to find a tighter bound by inverse projection, we return the same unclipped rect.
The actual clipping should happen at the picture level anyway.
Differential Revision: https://phabricator.services.mozilla.com/D930871 parent 0babc1c commit 1bc435d
4 files changed
Lines changed: 86 additions & 9 deletions
File tree
- gfx/wr
- webrender/src
- wrench/reftests/transforms
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7109 | 7109 | | |
7110 | 7110 | | |
7111 | 7111 | | |
7112 | | - | |
7113 | 7112 | | |
7114 | 7113 | | |
7115 | | - | |
7116 | | - | |
7117 | | - | |
| 7114 | + | |
| 7115 | + | |
| 7116 | + | |
| 7117 | + | |
| 7118 | + | |
| 7119 | + | |
7118 | 7120 | | |
7119 | 7121 | | |
7120 | 7122 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
385 | 385 | | |
386 | 386 | | |
387 | 387 | | |
| 388 | + | |
388 | 389 | | |
389 | | - | |
390 | | - | |
| 390 | + | |
| 391 | + | |
391 | 392 | | |
392 | 393 | | |
393 | 394 | | |
394 | 395 | | |
395 | | - | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
396 | 403 | | |
397 | 404 | | |
398 | 405 | | |
| |||
609 | 616 | | |
610 | 617 | | |
611 | 618 | | |
612 | | - | |
613 | | - | |
| 619 | + | |
| 620 | + | |
614 | 621 | | |
615 | 622 | | |
616 | 623 | | |
| |||
624 | 631 | | |
625 | 632 | | |
626 | 633 | | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
627 | 678 | | |
628 | 679 | | |
629 | 680 | | |
| |||
Lines changed: 23 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
0 commit comments