• scottmg's avatar
    Fixes for two different HUD issues related to win32k lockdown · 616a8e65
    scottmg authored
    1. Using a GDI bitmap -- switch to SkSurface instead
    
    2. Lazily loading a font. This breaks for two different reasons.
    The first is a DCHECK for doing IO on the Compositor thread. This
    could have been just ignored in general since it's only for debug
    usage, the drawbacks of minor jank are limited.
    
    However, once lockdown is on, the font load hard fails from the
    renderer. So, load the typeface before lockdown and pass it into
    CC and the hud via LayerTreeSettings.
    
    R=danakj@chromium.org
    BUG=453731,455104
    TEST=run chrome with --enable-win32k-renderer-lockdown --show-fps-counter --ui-show-fps-counter on Win8
    
    Review URL: https://codereview.chromium.org/900063002
    
    Cr-Commit-Position: refs/heads/master@{#314929}
    616a8e65
renderer_main_platform_delegate_win.cc 4.85 KB