• Christopher Cameron's avatar
    MacViews: Enable compositor recycling · 1b6d6cec
    Christopher Cameron authored
    We create a new ui::Compositor at the first character typed in the
    omnibox. This is very expensive, and is compounded by the fact that the
    shaders used by rasterization and display must be re-created in this
    new context.
    
    There already exists ui::Compositor recycling in content:: for
    RenderWidgetHostViewMac. Move this code to ui::, and share it with
    BridgedNativeWidget.
    
    Bug: 712268
    Change-Id: I969174e2c38b181e18a10e78dd49d3e9be9690e5
    Reviewed-on: https://chromium-review.googlesource.com/1132710
    Commit-Queue: ccameron <ccameron@chromium.org>
    Reviewed-by: default avatarLeonard Grey <lgrey@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#574738}
    1b6d6cec
bridged_native_widget.mm 52.1 KB