Make cc::CompositorFrames movable [Part 1 of 2]
There was some odd code where we created CompositorFrames on the stack
and passed them around by raw pointers, and then on the other other side
of the IPC boundary we wrapped the CompositorFrame in a unique_ptr. Odder
still, there are cases where we create a copy of the CompositorFrame just
to pass it to a SurfaceFactory or elsewhere.
This CL cleans up the insanity in preparation of shipping
CompositorFrames over mojo. CompositorFrames are now
movable. SurfaceFactory still uses a unique_ptr and so we
create a new CompositorFrame, and move into that to pass to
SurfaceFactory in this CL. In a subsequent CL,
SurfaceFactory holds a CompositorFrame by value.
BUG=611802
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
Review-Url: https://codereview.chromium.org/2096493002
Cr-Commit-Position: refs/heads/master@{#402014}
96 files changed