• Fady Samuel's avatar
    viz: Introduce RegisterFrameSinkId and InvalidateFrameSinkId Host API · bac0f1af
    Fady Samuel authored
    Registering a FrameSinkId delimits the beginning of the lifetime of a
    FrameSinkId. From Viz's perspective that ID is valid until
    InvalidateFrameSinkId is called. RegisterFrameSinkId also bundles
    a HostFrameSinkClient (was FrameSinkObserver) that listens for new surfaces
    submitted to the registered FrameSinkId.
    
    This CL allows us to replace multiple call sites to RegisterFrameSink /
    InvalidateFrameSinkId in content that go directly to FrameSinkManagerImpl
    with calls to HostFrameSinkManager, taking us closer to a point where
    content does not directly use FrameSinkManagerImpl.
    
    This CL is also a prerequisite for using HostFrameSinkManager in the
    window server because it introduces a mechanism for listening for events
    pertaining to a particular FrameSinkId which is a requirement for the
    window server. This interface will be used for events as well in the
    future.
    
    Bug: 657959
    Cq-Include-Trybots: master.tryserver.chromium.linux:linux_site_isolation
    Change-Id: I3e1343ea6cfbe6b3d39ba2fcd23d193dd2c3e4a0
    Reviewed-on: https://chromium-review.googlesource.com/595147Reviewed-by: default avatarBo Liu <boliu@chromium.org>
    Reviewed-by: default avatarJustin Novosad <junov@chromium.org>
    Reviewed-by: default avatarKen Buchanan <kenrb@chromium.org>
    Reviewed-by: default avatarJohn Abd-El-Malek <jam@chromium.org>
    Reviewed-by: default avatarRobert Kroeger <rjkroege@chromium.org>
    Reviewed-by: default avatarRia Jiang <riajiang@chromium.org>
    Commit-Queue: Fady Samuel <fsamuel@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#491386}
    bac0f1af
offscreen_canvas_surface_impl.cc 3.27 KB