Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(881)

Unified Diff: content/browser/renderer_host/compositor_impl_android.cc

Issue 2810813004: Hide fullscreen rotation jank (Closed)
Patch Set: Assume true/false when updating fullscreen state Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
}
}

Powered by Google App Engine
This is Rietveld 408576698