• Fady Samuel's avatar
    Surface synchronization: Assign temporary ref owner sooner · d1f9caab
    Fady Samuel authored
    This CL plumbs an OnSurfaceCreated over from Surface to SurfaceManager
    to FrameSinkManagerImpl to HostFrameSinkManager so that the host can
    assign an owner to the temporary reference. Previously we waited until
    activation to assign an owner to the temporary reference but that had
    the effect of taking longer for a newer fallback surface to be picked
    by SurfaceManager.
    
    This CL also simplifies GetLatestInFlightSurface by removing the parent
    FrameSinkId parameter. Instead, the parent FrameSinkId is extracted from
    the surface hierarchy already stored in SurfaceManager.
    
    Bug: 672962
    Cq-Include-Trybots: master.tryserver.chromium.android:android_optional_gpu_tests_rel
    Change-Id: I012f5feda5e3172978cc3686694362e4d85f5832
    Reviewed-on: https://chromium-review.googlesource.com/820162Reviewed-by: default avatarkylechar <kylechar@chromium.org>
    Reviewed-by: default avatarTom Sepez <tsepez@chromium.org>
    Commit-Queue: Fady Samuel <fsamuel@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#523589}
    d1f9caab
hit_test_manager.h 2.78 KB