Pass gfx::AcceleratedWidget by value.
The gfx::AcceleratedWidget StructTraits had it passed by reference instead of value. The underlying type is always a primitive so it should be passed by value. Update StructTraits and mojom implementations. Change the StructTraits implementation to fail deserialization for platforms that don't support sending AcceleratedWidgets over IPC. Also change StructTraits unittest not to need a test interface, directly serialize and then deserialize instead. Bug: none Change-Id: Iee82df75d248fe48f5478ca5251a08238707758e Reviewed-on: https://chromium-review.googlesource.com/1110023Reviewed-by:Tom Sepez <tsepez@chromium.org> Reviewed-by:
Michael Spang <spang@chromium.org> Commit-Queue: kylechar <kylechar@chromium.org> Cr-Commit-Position: refs/heads/master@{#569315}
Showing
Please register or sign in to comment