• Gary Klassen's avatar
    Route HitTestRegionList through FrameSinkManager · 9dc83102
    Gary Klassen authored
    This change routes HitTestRegionList objects received by
    CompositorFrameSinkSupport to the HitTestManager.
    
    The HitTestAggregator will query the HitTestManager for the
    active HitTestRegionLists when aggregating the data.
    
    HitTestManager also manages the lifetime of HitTestRegionList
    objects by deleting old objects when surfaces are discarded
    and deleting objects that correspond to older frames when
    a new surface is activated.
    
    This change also modifies HitTestAggregator memory management
    so that new memory is allocated as needed while aggregating
    HitTestRegionList data.
    
    Bug: 732399
    Change-Id: Iaedec31a34f04446a539acd10d77c6fe18034d44
    Reviewed-on: https://chromium-review.googlesource.com/650220
    Commit-Queue: Gary Klassen <gklassen@chromium.org>
    Reviewed-by: default avatarRobert Kroeger <rjkroege@chromium.org>
    Reviewed-by: default avatarRia Jiang <riajiang@chromium.org>
    Reviewed-by: default avatarFady Samuel <fsamuel@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#506780}
    9dc83102
hit_test_manager.cc 4.02 KB