Revert of Fixes for two different HUD issues related to win32k lockdown (patchset...
commit1793e0467bb34d2545c0493a557bb038cc2ac6f0
authorScott Graham <scottmg@chromium.org>
Mon, 23 Feb 2015 21:06:53 +0000 (23 13:06 -0800)
committerScott Graham <scottmg@chromium.org>
Mon, 23 Feb 2015 21:09:49 +0000 (23 21:09 +0000)
tree08ec402ad7429e496bdc0f33b87e8501212d3939
parent9b3d6f1d977fc7fda607adc6ac4244a68466c477
Revert of Fixes for two different HUD issues related to win32k lockdown (patchset #9 id:350001 of https://codereview.chromium.org/900063002/)

Reason for revert:
Causes regression in cold start on Android and maybe Mac.

Details in http://crbug.com/457248.

Original issue's description:
> 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
>
> Committed: https://crrev.com/616a8e656b2d923ed393bde86adc150e555ba799
> Cr-Commit-Position: refs/heads/master@{#314929}

TBR=enne@chromium.org,danakj@chromium.org,piman@chromium.org
BUG=453731,455104,457248

Review URL: https://codereview.chromium.org/922293006

Cr-Commit-Position: refs/heads/master@{#317648}
cc/layers/heads_up_display_layer_impl.cc
cc/layers/heads_up_display_layer_impl.h
cc/trees/layer_tree_settings.h
content/renderer/gpu/render_widget_compositor.cc
content/renderer/renderer_main_platform_delegate_win.cc
ui/compositor/compositor.cc
ui/gfx/BUILD.gn
ui/gfx/gfx.gyp
ui/gfx/hud_font.cc [deleted file]
ui/gfx/hud_font.h [deleted file]