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

Unified Diff: ui/android/delegated_frame_host_android.h

Issue 2369643002: Fix OOPIFs on Android (Closed)
Patch Set: Add conditional for WebView shutdown 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
Index: ui/android/delegated_frame_host_android.h
diff --git a/ui/android/delegated_frame_host_android.h b/ui/android/delegated_frame_host_android.h
index 2536ad753c3ce7ff16715fff2ea0da3e37fea45d..4bc0a312d2533c66e1ab3605380bf4f2abc07825 100644
--- a/ui/android/delegated_frame_host_android.h
+++ b/ui/android/delegated_frame_host_android.h
@@ -64,6 +64,11 @@ class UI_ANDROID_EXPORT DelegatedFrameHostAndroid
void UpdateContainerSizeinDIP(const gfx::Size& size_in_dip);
+ // Called when this DFH is attached/detached from a parent browser compositor
+ // and needs to be attached to the surface hierarchy.
+ void RegisterSurfaceNamespaceHierarchy(uint32_t parent_id);
+ void UnregisterSurfaceNamespaceHierarchy();
+
private:
// cc::SurfaceFactoryClient implementation.
void ReturnResources(const cc::ReturnedResourceArray& resources) override;
@@ -75,6 +80,7 @@ class UI_ANDROID_EXPORT DelegatedFrameHostAndroid
cc::SurfaceManager* surface_manager_;
std::unique_ptr<cc::SurfaceIdAllocator> surface_id_allocator_;
+ uint32_t registered_parent_client_id_ = 0u;
ReturnResourcesCallback return_resources_callback_;
std::unique_ptr<cc::SurfaceFactory> surface_factory_;
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_android.cc ('k') | ui/android/delegated_frame_host_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698