Commit 0d0fba4
committed
Don't call hwc set() if there is nothing new to do
there was situations where SF's main loop would run (as if there was
an invalidate), but the dirty region was empty (so no new buffers
were retired). In this case we return early and don't swap, which
would cause drawing artifacts.
Bug: 5476838
Change-Id: Id3b7bf4b7aabec7919c50d9278eb2165973a4c3d1 parent 9044ef0 commit 0d0fba4
1 file changed
+10
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
445 | 445 | | |
446 | 446 | | |
447 | 447 | | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
448 | 453 | | |
449 | 454 | | |
450 | 455 | | |
| |||
478 | 483 | | |
479 | 484 | | |
480 | 485 | | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
481 | 489 | | |
482 | 490 | | |
483 | 491 | | |
| |||
938 | 946 | | |
939 | 947 | | |
940 | 948 | | |
941 | | - | |
| 949 | + | |
942 | 950 | | |
943 | 951 | | |
944 | 952 | | |
| |||
1769 | 1777 | | |
1770 | 1778 | | |
1771 | 1779 | | |
1772 | | - | |
| 1780 | + | |
1773 | 1781 | | |
1774 | 1782 | | |
1775 | 1783 | | |
| |||
0 commit comments