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

Unified Diff: ui/android/delegated_frame_host_android.h

Issue 2683663002: Add AddChildFrameSink() and RemoveChildFrameSink() To WindowAndroidCompositor (Closed)
Patch Set: Created 3 years, 10 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 2e3ba78348fddd58e0501aa780385ff63a8f804a..a58e530a190385d416b3177d26eeffba84fe67f1 100644
--- a/ui/android/delegated_frame_host_android.h
+++ b/ui/android/delegated_frame_host_android.h
@@ -69,8 +69,8 @@ class UI_ANDROID_EXPORT DelegatedFrameHostAndroid
// Called when this DFH is attached/detached from a parent browser compositor
// and needs to be attached to the surface hierarchy.
- void RegisterFrameSinkHierarchy(const cc::FrameSinkId& parent_id);
- void UnregisterFrameSinkHierarchy();
+ void AttachToCompositor(WindowAndroidCompositor* compositor);
+ void DetachFromCompositor();
private:
// cc::SurfaceFactoryClient implementation.
@@ -85,7 +85,7 @@ class UI_ANDROID_EXPORT DelegatedFrameHostAndroid
cc::SurfaceManager* surface_manager_;
std::unique_ptr<cc::SurfaceIdAllocator> surface_id_allocator_;
- cc::FrameSinkId registered_parent_frame_sink_id_;
+ WindowAndroidCompositor* registered_parent_compositor_ = nullptr;
Client* client_;
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