| Index: cc/heads_up_display_layer_impl.cc
|
| diff --git a/cc/heads_up_display_layer_impl.cc b/cc/heads_up_display_layer_impl.cc
|
| index 73f99d01c29be4b3c317390d9e4c0331ff8fe6ee..177f349558981a9a7d302b80ad99d555fb2c584b 100644
|
| --- a/cc/heads_up_display_layer_impl.cc
|
| +++ b/cc/heads_up_display_layer_impl.cc
|
| @@ -71,9 +71,10 @@ void HeadsUpDisplayLayerImpl::willDraw(ResourceProvider* resourceProvider)
|
| if (!m_hudTexture)
|
| m_hudTexture = ScopedResource::create(resourceProvider);
|
|
|
| - // FIXME: Scale the HUD by deviceScale to make it more friendly under high DPI.
|
| + // TODO(danakj): Scale the HUD by deviceScale to make it more friendly under high DPI.
|
|
|
| - if (m_hudTexture->size() != bounds())
|
| + // TODO(danakj): The HUD could swap between two textures instead of creating a texture every frame in ubercompositor.
|
| + if (m_hudTexture->size() != bounds() || resourceProvider->inUseByConsumer(m_hudTexture->id()))
|
| m_hudTexture->Free();
|
|
|
| if (!m_hudTexture->id())
|
|
|