Move TransferableResource creation to Canvas Resource

This change makes it possible to decouple the actions of capturing an
animation frame from a canvas and sending it to the compositor.
This is a prerequisite for mergin OffscreenCanvasResourceProdiver
with CanvasResourceProvider.

Bug: 788439, 776801
Cq-Include-Trybots: master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2
Change-Id: Iaf4563069ede53b1bba8bde5ea8b693d4c1a2b73
Reviewed-on: https://chromium-review.googlesource.com/803945
Commit-Queue: Justin Novosad <junov@chromium.org>
Reviewed-by: Olivia Lai <xlai@chromium.org>
Cr-Commit-Position: refs/heads/master@{#521868}
6 files changed