Chromium Code Reviews| Index: content/browser/renderer_host/compositor_impl_android.cc |
| diff --git a/content/browser/renderer_host/compositor_impl_android.cc b/content/browser/renderer_host/compositor_impl_android.cc |
| index 006a51dc8552f337ae44b8e8fad8034fc52f3b17..f6cdbd02276ae18451544945b11eb8161ceb5a14 100644 |
| --- a/content/browser/renderer_host/compositor_impl_android.cc |
| +++ b/content/browser/renderer_host/compositor_impl_android.cc |
| @@ -599,15 +599,8 @@ void CompositorImpl::SetHasTransparentBackground(bool transparent) { |
| has_transparent_background_ = transparent; |
| if (host_) { |
| host_->set_has_transparent_background(transparent); |
| - |
| - // Give a delay in setting the background color to avoid the color for |
| - // the normal mode (white) affecting the UI transition. |
| - base::ThreadTaskRunnerHandle::Get().get()->PostDelayedTask( |
| - FROM_HERE, |
| - base::Bind(&CompositorImpl::SetBackgroundColor, |
| - weak_factory_.GetWeakPtr(), |
| - transparent ? SK_ColorBLACK : SK_ColorWHITE), |
| - base::TimeDelta::FromMilliseconds(500)); |
| + // TODO(steimel): Set the color based on the color of the renderer frame. |
|
aelias_OOO_until_Jul13
2017/06/16 22:46:40
This is done in OnFrameMetadataUpdated right now.
steimel
2017/06/22 01:32:11
Done.
|
| + SetBackgroundColor(transparent ? SK_ColorBLACK : SK_ColorWHITE); |
| } |
| } |