DescriptionFixes 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
Committed: https://crrev.com/616a8e656b2d923ed393bde86adc150e555ba799
Cr-Commit-Position: refs/heads/master@{#314929}
Patch Set 1 #Patch Set 2 : i am a plumber #
Total comments: 7
Patch Set 3 : fixes #Patch Set 4 : fix on non-win #Patch Set 5 : move to ui/gfx/hud_font.h/cc #Patch Set 6 : gn for real #
Total comments: 2
Patch Set 7 : refptr #
Total comments: 5
Patch Set 8 : no #if, so browser gets a reasonable font #
Total comments: 2
Patch Set 9 : better adoptref #
Total comments: 1
Messages
Total messages: 49 (19 generated)
|