| 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 dd8f4134d5fbd0a22e9ba8f059e58a3a68439083..73f99d01c29be4b3c317390d9e4c0331ff8fe6ee 100644
|
| --- a/cc/heads_up_display_layer_impl.cc
|
| +++ b/cc/heads_up_display_layer_impl.cc
|
| @@ -76,14 +76,8 @@ void HeadsUpDisplayLayerImpl::willDraw(ResourceProvider* resourceProvider)
|
| if (m_hudTexture->size() != bounds())
|
| 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)
|
|
|