RESOLVED FIXED 190155
[CG] Adopt CG SPI for non-even cornered rounded rects
https://bugs.webkit.org/show_bug.cgi?id=190155
Summary [CG] Adopt CG SPI for non-even cornered rounded rects
Said Abou-Hallawa
Reported 2018-10-01 14:15:38 PDT
Currently we create bezier curves for the non-even corners of the rounded rects. This should be optimized by the CG. With this SPI, I could get 3% progression on the Multiply test on MacPro.
Attachments
Patch (3.29 KB, patch)
2018-10-01 14:19 PDT, Said Abou-Hallawa
no flags
Archive of layout-test-results from ews124 for ios-simulator-wk2 (3.63 MB, application/zip)
2018-10-02 09:44 PDT, EWS Watchlist
no flags
Patch (3.04 KB, patch)
2018-10-15 17:29 PDT, Said Abou-Hallawa
no flags
Testcase (397 bytes, text/html)
2018-10-17 09:10 PDT, Simon Fraser (smfr)
no flags
Patch (2.99 KB, patch)
2018-10-17 14:51 PDT, Said Abou-Hallawa
no flags
Archive of layout-test-results from ews125 for ios-simulator-wk2 (2.73 MB, application/zip)
2018-10-17 18:10 PDT, EWS Watchlist
no flags
Archive of layout-test-results from ews126 for ios-simulator-wk2 (2.41 MB, application/zip)
2018-10-17 19:33 PDT, EWS Watchlist
no flags
Patch (5.38 KB, patch)
2018-10-18 18:25 PDT, Said Abou-Hallawa
no flags
Patch (5.36 KB, patch)
2018-10-29 13:55 PDT, Said Abou-Hallawa
no flags
Archive of layout-test-results from ews125 for ios-simulator-wk2 (6.26 MB, application/zip)
2018-10-29 15:52 PDT, EWS Watchlist
no flags
Patch (4.43 KB, patch)
2018-10-31 18:05 PDT, Said Abou-Hallawa
no flags
Patch (4.58 KB, patch)
2018-11-01 09:30 PDT, Said Abou-Hallawa
no flags
Said Abou-Hallawa
Comment 1 2018-10-01 14:19:17 PDT
EWS Watchlist
Comment 2 2018-10-02 09:44:20 PDT
Comment on attachment 351297 [details] Patch Attachment 351297 [details] did not pass ios-sim-ews (ios-simulator-wk2): Output: https://webkit-queues.webkit.org/results/9426505 New failing tests: fast/shapes/shape-outside-floats/shape-outside-floats-inset-rounded-bottom-right.html compositing/video/video-border-radius.html fast/shapes/shape-outside-floats/shape-outside-floats-inset-rounded-bottom-left.html fast/box-shadow/box-shadow-with-zero-radius.html fast/shapes/shape-outside-floats/shape-outside-floats-inset-rounded-top-left.html fast/shapes/shape-outside-floats/shape-outside-floats-inset-rounded-top-right.html fast/borders/border-radius-inner-clip-vertical.html fast/borders/border-radius-inner-clip.html css3/filters/backdrop/backdrop-filter-uneven-corner-radii.html
EWS Watchlist
Comment 3 2018-10-02 09:44:21 PDT
Created attachment 351399 [details] Archive of layout-test-results from ews124 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews124 Port: ios-simulator-wk2 Platform: Mac OS X 10.13.6
Said Abou-Hallawa
Comment 4 2018-10-15 17:29:06 PDT
WebKit Commit Bot
Comment 5 2018-10-15 17:53:21 PDT
Comment on attachment 352410 [details] Patch Clearing flags on attachment: 352410 Committed r237163: <https://trac.webkit.org/changeset/237163>
WebKit Commit Bot
Comment 6 2018-10-15 17:53:22 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 7 2018-10-15 17:54:26 PDT
Ryan Haddad
Comment 8 2018-10-16 11:21:17 PDT
(In reply to Build Bot from comment #2) > Comment on attachment 351297 [details] > Patch > > Attachment 351297 [details] did not pass ios-sim-ews (ios-simulator-wk2): > Output: https://webkit-queues.webkit.org/results/9426505 > > New failing tests: > fast/shapes/shape-outside-floats/shape-outside-floats-inset-rounded-bottom- > right.html > compositing/video/video-border-radius.html > fast/shapes/shape-outside-floats/shape-outside-floats-inset-rounded-bottom- > left.html > fast/box-shadow/box-shadow-with-zero-radius.html > fast/shapes/shape-outside-floats/shape-outside-floats-inset-rounded-top-left. > html > fast/shapes/shape-outside-floats/shape-outside-floats-inset-rounded-top- > right.html > fast/borders/border-radius-inner-clip-vertical.html > fast/borders/border-radius-inner-clip.html > css3/filters/backdrop/backdrop-filter-uneven-corner-radii.html These tests are indeed failing on the iOS Simulator bots now that this patch has landed: https://build.webkit.org/results/Apple%20iOS%2012%20Simulator%20Release%20WK2%20(Tests)/r237183%20(395)/results.html
Ryan Haddad
Comment 9 2018-10-16 13:18:13 PDT
Reverted r237163 for reason: Introduced layout test failures on iOS Simulator. Committed r237201: <https://trac.webkit.org/changeset/237201>
Ryan Haddad
Comment 10 2018-10-16 13:40:09 PDT
Simon Fraser (smfr)
Comment 11 2018-10-17 09:06:49 PDT
With the change, we're rendering the radii with incorrect vertical flipping.
Simon Fraser (smfr)
Comment 12 2018-10-17 09:10:41 PDT
Created attachment 352569 [details] Testcase
Said Abou-Hallawa
Comment 13 2018-10-17 14:24:47 PDT
(In reply to Simon Fraser (smfr) from comment #11) > With the change, we're rendering the radii with incorrect vertical flipping. The problem is I was passing the corners in the following orders: { topLeftRadius, topRightRadius, bottomRightRadius, bottomLeftRadius } But they should be in the following order: { bottomLeftRadius, bottomRightRadius, topRightRadius, topLeftRadius } This is to be consistent with CGRect whose origin is s located in the lower-left corner of the rectangle.
Said Abou-Hallawa
Comment 14 2018-10-17 14:51:46 PDT
EWS Watchlist
Comment 15 2018-10-17 18:10:12 PDT
Comment on attachment 352645 [details] Patch Attachment 352645 [details] did not pass ios-sim-ews (ios-simulator-wk2): Output: https://webkit-queues.webkit.org/results/9644184 New failing tests: fast/box-shadow/box-shadow-with-zero-radius.html
EWS Watchlist
Comment 16 2018-10-17 18:10:14 PDT
Created attachment 352670 [details] Archive of layout-test-results from ews125 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews125 Port: ios-simulator-wk2 Platform: Mac OS X 10.13.6
EWS Watchlist
Comment 17 2018-10-17 19:33:32 PDT
Comment on attachment 352645 [details] Patch Attachment 352645 [details] did not pass ios-sim-ews (ios-simulator-wk2): Output: https://webkit-queues.webkit.org/results/9645666 New failing tests: fast/box-shadow/box-shadow-with-zero-radius.html
EWS Watchlist
Comment 18 2018-10-17 19:33:34 PDT
Created attachment 352676 [details] Archive of layout-test-results from ews126 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews126 Port: ios-simulator-wk2 Platform: Mac OS X 10.13.6
Said Abou-Hallawa
Comment 19 2018-10-18 18:25:54 PDT
WebKit Commit Bot
Comment 20 2018-10-18 21:39:37 PDT
Comment on attachment 352752 [details] Patch Clearing flags on attachment: 352752 Committed r237280: <https://trac.webkit.org/changeset/237280>
WebKit Commit Bot
Comment 21 2018-10-18 21:39:39 PDT
All reviewed patches have been landed. Closing bug.
Simon Fraser (smfr)
Comment 22 2018-10-21 05:49:07 PDT
This patch added some PLATFORM(IOS) that should be PLATFORM(IOS_FAMILY)
Alexey Proskuryakov
Comment 23 2018-10-23 09:06:54 PDT
And with that fixed, the patch still breaks box-shadow-with-zero-radius.html (fix in bug 190813). Probably roll back again?
Ryan Haddad
Comment 24 2018-10-23 11:17:17 PDT
Reverted r237280 for reason: Causes fast/box-shadow/box-shadow-with-zero-radius.html to fail on iOS Simulator. Committed r237359: <https://trac.webkit.org/changeset/237359>
Said Abou-Hallawa
Comment 25 2018-10-29 13:55:18 PDT
EWS Watchlist
Comment 26 2018-10-29 15:52:32 PDT
Comment on attachment 353317 [details] Patch Attachment 353317 [details] did not pass ios-sim-ews (ios-simulator-wk2): Output: https://webkit-queues.webkit.org/results/9772127 New failing tests: fast/box-shadow/box-shadow-with-zero-radius.html
EWS Watchlist
Comment 27 2018-10-29 15:52:34 PDT
Created attachment 353328 [details] Archive of layout-test-results from ews125 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews125 Port: ios-simulator-wk2 Platform: Mac OS X 10.13.6
Said Abou-Hallawa
Comment 28 2018-10-31 18:05:33 PDT
Simon Fraser (smfr)
Comment 29 2018-10-31 23:40:18 PDT
Comment on attachment 353565 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=353565&action=review > LayoutTests/platform/ios/TestExpectations:1939 > +fast/box-shadow/box-shadow-with-zero-radius.html You should mark this as [ImageOnlyFailure] so that the test still runs (to detect crashes). Also the reason this only fails on iOS is probably because we don't use accelerated drawing for macOS testing.
Said Abou-Hallawa
Comment 30 2018-11-01 09:30:38 PDT
WebKit Commit Bot
Comment 31 2018-11-01 11:49:20 PDT
Comment on attachment 353605 [details] Patch Clearing flags on attachment: 353605 Committed r237691: <https://trac.webkit.org/changeset/237691>
WebKit Commit Bot
Comment 32 2018-11-01 11:49:22 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.