Fixes for two different HUD issues related to win32k lockdown
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}
Showing
ui/gfx/hud_font.cc
0 → 100644
ui/gfx/hud_font.h
0 → 100644
Please register or sign in to comment