• Christopher Cameron's avatar
    viz/mac: Remove GpuSurfaceTracker, redefine gfx::AcceleratedWidget · 212266c0
    Christopher Cameron authored
    GpuSurfaceTracker has been removed from all other desktop platforms (in
    crrev.com/389975) and is not used on Mac. Remove it.
    
    Include Mac in GPU_SURFACE_HANDLE_IS_ACCELERATED_WINDOW with other
    desktop platforms.
    
    Define gfx::AcceleratedWidget to be uint64_t instead of NSView*. It
    never actually was NSView*, but was rather a sequence number used to
    look up a ui::AcceleratedWidgetMac.
    
    Fix a number of locations that were dangerously mixing NSView* and
    gfx::AcceleratedWidget (now that they are incompatible types, this is
    a compile error).
    
    Bug: 772576
    Cq-Include-Trybots: master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel
    Change-Id: I29212236627c512ed6a7fe55a8cf3e613e4e593a
    Reviewed-on: https://chromium-review.googlesource.com/792295
    Commit-Queue: ccameron <ccameron@chromium.org>
    Reviewed-by: default avatarAvi Drissman <avi@chromium.org>
    Reviewed-by: default avatarDaniel Cheng <dcheng@chromium.org>
    Reviewed-by: default avatarAntoine Labour <piman@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#521030}
    212266c0
bridged_native_widget.mm 60.1 KB