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

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

Issue 2810813004: Hide fullscreen rotation jank (Closed)
Patch Set: Clear thumbnail cache instead of hiding static layer. Break out results of changing fullscreen stat… 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..a38558395dc6a243da258c1e754ed3a73e6b24d4 100644
--- a/content/browser/renderer_host/compositor_impl_android.cc
+++ b/content/browser/renderer_host/compositor_impl_android.cc
@@ -597,18 +597,8 @@ void CompositorImpl::SetWindowBounds(const gfx::Size& size) {
void CompositorImpl::SetHasTransparentBackground(bool transparent) {
has_transparent_background_ = transparent;
- if (host_) {
+ 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));
- }
}
void CompositorImpl::SetBackgroundColor(int color) {

Powered by Google App Engine
This is Rietveld 408576698