Chromium Code Reviews

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

Issue 1001573003: [Android] Stop hiding the RWHV layer subtree when hiding the widget (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add test Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
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 da403dc6bbed6a4d4e724493b628806a3c09f6e8..6029f1f4f08299db17063f9ff101775544e31c62 100644
--- a/content/browser/renderer_host/compositor_impl_android.cc
+++ b/content/browser/renderer_host/compositor_impl_android.cc
@@ -469,6 +469,7 @@ void CompositorImpl::SetVisible(bool visible) {
CreateLayerTreeHost();
ui_resource_provider_.SetLayerTreeHost(host_.get());
}
+ root_window_->OnVisibilityChanged(visible);
}
void CompositorImpl::setDeviceScaleFactor(float factor) {

Powered by Google App Engine