Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upPort linear gradients to be interned primitives. #3352
Conversation
|
This patch is not tidy, but not quite as bad as it looks, since it includes #3349 and #3350 - probably best to review this after those have been reviewed and merged. Pending try run: |
|
Try run looks good so far. Also seems to be about another 2% win in dl_mutate (https://treeherder.mozilla.org/perf.html#/graphs?series=try,1660472,1,1&selected=try,1660472,407537,652574374). |
webrender/src/border.rs, line 1133 at r3 (raw file):
could this be a method of this descriptor? webrender/src/prim_store.rs, line 422 at r3 (raw file):
would it be easier to just introduce a webrender/src/prim_store.rs, line 2691 at r3 (raw file):
why do we need all those typedefs? IIRC, they were helpful when the indices weren't strongly typed. Now everything is explicit enough. Is it just to save on symbol count? |
|
|
webrender/src/border.rs, line 1133 at r3 (raw file): Previously, kvark (Dzmitry Malyshau) wrote…
Yep, done. webrender/src/prim_store.rs, line 422 at r3 (raw file): Previously, kvark (Dzmitry Malyshau) wrote…
Yep, sounds good. That's probably a good approach to switch to when tidying all this up. webrender/src/prim_store.rs, line 2691 at r3 (raw file): Previously, kvark (Dzmitry Malyshau) wrote…
Initially I was just following the initial code which had typedefs, but I agree - I'm fine with changing them to be explicit types. OK if we do that later on, to avoid rebase issues with the other open PRs? |
|
Rebased and fixed one of the review comments. I agree with the other two suggestions too - although would prefer to do those as follow ups, to avoid rebase issues with other open patches. |
|
@bors-servo r+ |
|
|
Port linear gradients to be interned primitives. <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/webrender/3352) <!-- Reviewable:end -->
|
My things TODO after picture caching is here is growing and growing ;) |
|
|
|
…a6e5edfe73f4 (WR PR #3352). r=kats servo/webrender#3352 Differential Revision: https://phabricator.services.mozilla.com/D13056 --HG-- extra : moz-landing-system : lando
…a6e5edfe73f4 (WR PR #3352). r=kats servo/webrender#3352 Differential Revision: https://phabricator.services.mozilla.com/D13056
…a6e5edfe73f4 (WR PR #3352). r=kats servo/webrender#3352 Differential Revision: https://phabricator.services.mozilla.com/D13056 UltraBlame original commit: 2f8233496ee8d83688e27d266e5dd61ba29ad5b1
…a6e5edfe73f4 (WR PR #3352). r=kats servo/webrender#3352 Differential Revision: https://phabricator.services.mozilla.com/D13056 UltraBlame original commit: 2f8233496ee8d83688e27d266e5dd61ba29ad5b1
…a6e5edfe73f4 (WR PR #3352). r=kats servo/webrender#3352 Differential Revision: https://phabricator.services.mozilla.com/D13056 UltraBlame original commit: 2f8233496ee8d83688e27d266e5dd61ba29ad5b1
gw3583 commentedNov 26, 2018
•
edited by larsbergstrom
This change is