CompositorFrame holds a unique_ptr to DelegatedFrameData but deleted
frame data is now always set after this patch:
https://codereview.chromium.org/2374183006/
Thus, there's no good reason for it to be in a unique pointer.
We can simply move the fields:
TransferableResourceArray resource_list;
RenderPassList render_pass_list;
to CompositorFrame directly, and avoid an unnecessary allocation.
There are some places where we check delegated_frame_data to see if we've
received a frame. Perhaps those can be replaced by a bool or base::Optional.
Comment 1 by fsam...@chromium.org
, Oct 7 2016