• kylechar's avatar
    Add SharedBitmapReporter interface. · 123a218d
    kylechar authored
    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: default avatardanakj <danakj@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#558011}
    123a218d
layer_tree_frame_sink.h 6.52 KB