Add SharedBitmapReporter interface.
VideoResourceUpdater currently uses LayerTreeFrameSink as the interface through which to notify the display compositor about shared bitmaps. This doesn't work UseSurfaceLayerForVideo where there is no LayerTreeFrameSink. Pull the two required functions out of LayerTreeFrameSink and into SharedBitmapReporter. LayerTreeFrameSink has SharedBitmapReporter as a subclass and doesn't implement the functions so nothing changes with regards to it. VideoResourceUpdater now takes a SharedBitmapReporter instead of a LayerTreeFrameSink. An implementation of SharedBitmapReporter that calls into mojom::CompositorFrameSinkPtr can be added trivially to support UseSurfaceLayerInVideo after this patch. Bug: 807840 Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;master.tryserver.blink:linux_trusty_blink_rel Change-Id: I9a5a07140f8aa1614d1b647f3af1dd5d7aab2cd2 Reviewed-on: https://chromium-review.googlesource.com/1053054 Commit-Queue: kylechar <kylechar@chromium.org> Reviewed-by:danakj <danakj@chromium.org> Cr-Commit-Position: refs/heads/master@{#558011}
Showing
Please register or sign in to comment