Avoid extra copies in ui::Event struct-traits |
|||||||||
Issue description
Right now we still suffer from extra copies for derived types like ui::KeyEvent. We create a bunch of temporary mojom::*Data types and then copy things over to their file destination. We need to direct copy into the final destination which means we need StructTraits for derived types too. For example:
struct StructTraits<ui::mojom::KeyData, std::unique_ptr<ui::KeyEvent>> {
..
}
would populate the key event specific fields in the KeyEvent.
,
Jul 7 2016
,
Oct 4 2016
,
Jun 7 2017
,
Feb 26 2018
,
Feb 26 2018
,
Aug 13
,
Aug 14
,
Dec 21
This was done a while back. |
|||||||||
►
Sign in to add a comment |
|||||||||
Comment 1 by fsam...@chromium.org
, Jun 9 2016