| 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 177f349558981a9a7d302b80ad99d555fb2c584b..d15893ad3b9bb958c03cfc81f6dea7f126a4d471 100644
|
| --- a/cc/heads_up_display_layer_impl.cc
|
| +++ b/cc/heads_up_display_layer_impl.cc
|
| @@ -77,8 +77,14 @@ void HeadsUpDisplayLayerImpl::willDraw(ResourceProvider* resourceProvider)
|
| if (m_hudTexture->size() != bounds() || resourceProvider->inUseByConsumer(m_hudTexture->id()))
|
| m_hudTexture->Free();
|
|
|
| - if (!m_hudTexture->id())
|
| + if (!m_hudTexture->id()) {
|
| m_hudTexture->Allocate(bounds(), GL_RGBA, ResourceProvider::TextureUsageAny);
|
| + // TODO(epenner): This texture was being used before setPixels was called,
|
| + // which is now not allowed (it's an uninitialized read). This should be fixed
|
| + // and this allocateForTesting() removed.
|
| + // http://crbug.com/166784
|
| + resourceProvider->allocateForTesting(m_hudTexture->id());
|
| + }
|
| }
|
|
|
| void HeadsUpDisplayLayerImpl::appendQuads(QuadSink& quadSink, AppendQuadsData& appendQuadsData)
|
|
|