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

Unified Diff: ui/aura/mus/window_port_mus.h

Issue 2764433003: mus-ws: Plumb FrameSinkId to Children (Closed)
Patch Set: Addressed Antoine's comment Created 3 years, 9 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/aura/mus/window_mus.h ('k') | ui/aura/mus/window_port_mus.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/mus/window_port_mus.h
diff --git a/ui/aura/mus/window_port_mus.h b/ui/aura/mus/window_port_mus.h
index c1f6e35cf4926243995b89d063fed7ff9ac38866..f708296435e4ea60ee4b746acc3061c06964ce9c 100644
--- a/ui/aura/mus/window_port_mus.h
+++ b/ui/aura/mus/window_port_mus.h
@@ -68,9 +68,17 @@ class AURA_EXPORT WindowPortMus : public WindowPort, public WindowMus {
uint32_t flags,
const ui::mojom::WindowTree::EmbedCallback& callback);
- std::unique_ptr<ui::ClientCompositorFrameSink> RequestCompositorFrameSink(
+ using CompositorFrameSinkCallback =
+ base::Callback<void(std::unique_ptr<cc::CompositorFrameSink>)>;
+ void RequestCompositorFrameSink(
scoped_refptr<cc::ContextProvider> context_provider,
- gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager);
+ gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager,
+ const CompositorFrameSinkCallback& callback);
+
+ void RequestCompositorFrameSinkInternal(
+ scoped_refptr<cc::ContextProvider> context_provider,
+ gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager,
+ const CompositorFrameSinkCallback& callback);
void AttachCompositorFrameSink(
std::unique_ptr<ui::ClientCompositorFrameSinkBinding>
@@ -210,6 +218,7 @@ class AURA_EXPORT WindowPortMus : public WindowPort, public WindowMus {
void SetPropertyFromServer(
const std::string& property_name,
const std::vector<uint8_t>* property_data) override;
+ void SetFrameSinkIdFromServer(const cc::FrameSinkId& frame_sink_id) override;
void SetSurfaceInfoFromServer(const cc::SurfaceInfo& surface_info) override;
void DestroyFromServer() override;
void AddTransientChildFromServer(WindowMus* child) override;
@@ -250,6 +259,9 @@ class AURA_EXPORT WindowPortMus : public WindowPort, public WindowMus {
ServerChangeIdType next_server_change_id_ = 0;
ServerChanges server_changes_;
+ cc::FrameSinkId frame_sink_id_;
+ base::Closure pending_compositor_frame_sink_request_;
+
cc::SurfaceInfo surface_info_;
ui::mojom::Cursor predefined_cursor_ = ui::mojom::Cursor::CURSOR_NULL;
« no previous file with comments | « ui/aura/mus/window_mus.h ('k') | ui/aura/mus/window_port_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698