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

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

Issue 2369643002: Fix OOPIFs on Android (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « content/browser/renderer_host/compositor_impl_android.cc ('k') | ui/android/delegated_frame_host_android.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_widget_host_view_android.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_android.cc b/content/browser/renderer_host/render_widget_host_view_android.cc
index 99dfbd0062dad04a101f86399cc2ce3ff30fdb94..3b0970700160eba94d1386cda44a9e9aa29f1cbe 100644
--- a/content/browser/renderer_host/render_widget_host_view_android.cc
+++ b/content/browser/renderer_host/render_widget_host_view_android.cc
@@ -1303,6 +1303,11 @@ void RenderWidgetHostViewAndroid::StartObservingRootWindow() {
uint32_t outstanding_vsync_requests = outstanding_vsync_requests_;
outstanding_vsync_requests_ = 0;
RequestVSyncUpdate(outstanding_vsync_requests);
+
+ ui::WindowAndroidCompositor* compositor =
+ content_view_core_->GetWindowAndroid()->GetCompositor();
enne (OOO) 2016/09/23 22:58:09 Can I assume that there's always a compositor at t
no sievers 2016/09/23 23:16:09 I don't trust the logic here with 'observing' but
+ delegated_frame_host_->RegisterSurfaceNamespaceHierarchy(
+ compositor->GetSurfaceClientId());
}
void RenderWidgetHostViewAndroid::StopObservingRootWindow() {
@@ -1321,6 +1326,7 @@ void RenderWidgetHostViewAndroid::StopObservingRootWindow() {
if (host_)
host_->Send(new ViewMsg_SetBeginFramePaused(host_->GetRoutingID(), true));
content_view_core_->GetWindowAndroid()->RemoveObserver(this);
+ delegated_frame_host_->UnregisterSurfaceNamespaceHierarchy();
}
void RenderWidgetHostViewAndroid::SendBeginFrame(base::TimeTicks frame_time,
« no previous file with comments | « content/browser/renderer_host/compositor_impl_android.cc ('k') | ui/android/delegated_frame_host_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698