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

Unified Diff: ui/android/delegated_frame_host_android.h

Issue 2382873002: Replace usage of SurfaceId's client_id with FrameSinkId (Closed)
Patch Set: Rebased Created 4 years, 2 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 | « ui/android/context_provider_factory.h ('k') | ui/android/delegated_frame_host_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 4bc0a312d2533c66e1ab3605380bf4f2abc07825..a78c162ddc904306acbcc6d3ed81375bceae7f44 100644
--- a/ui/android/delegated_frame_host_android.h
+++ b/ui/android/delegated_frame_host_android.h
@@ -50,7 +50,7 @@ class UI_ANDROID_EXPORT DelegatedFrameHostAndroid
bool HasDelegatedContent() const;
- uint32_t GetSurfaceClientId() const;
+ cc::FrameSinkId GetFrameSinkId() const;
// Should only be called when the host has a content layer.
void RequestCopyOfSurface(
@@ -66,8 +66,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 RegisterSurfaceNamespaceHierarchy(uint32_t parent_id);
- void UnregisterSurfaceNamespaceHierarchy();
+ void RegisterFrameSinkHierarchy(const cc::FrameSinkId& parent_id);
+ void UnregisterFrameSinkHierarchy();
private:
// cc::SurfaceFactoryClient implementation.
@@ -80,7 +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;
+ cc::FrameSinkId registered_parent_frame_sink_id_;
ReturnResourcesCallback return_resources_callback_;
std::unique_ptr<cc::SurfaceFactory> surface_factory_;
« no previous file with comments | « ui/android/context_provider_factory.h ('k') | ui/android/delegated_frame_host_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698