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

Side by Side Diff: content/renderer/mus/renderer_window_tree_client.cc

Issue 2875753002: Implement aura::WindowPortMus::CreateCompositorFrameSink() (Closed)
Patch Set: WIP Created 3 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/mus/renderer_window_tree_client.h" 5 #include "content/renderer/mus/renderer_window_tree_client.h"
6 6
7 #include <map> 7 #include <map>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 RendererWindowTreeClient::~RendererWindowTreeClient() { 71 RendererWindowTreeClient::~RendererWindowTreeClient() {
72 g_connections.Get().erase(routing_id_); 72 g_connections.Get().erase(routing_id_);
73 } 73 }
74 74
75 void RendererWindowTreeClient::RequestCompositorFrameSinkInternal( 75 void RendererWindowTreeClient::RequestCompositorFrameSinkInternal(
76 scoped_refptr<cc::ContextProvider> context_provider, 76 scoped_refptr<cc::ContextProvider> context_provider,
77 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, 77 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager,
78 const CompositorFrameSinkCallback& callback) { 78 const CompositorFrameSinkCallback& callback) {
79 std::unique_ptr<ui::ClientCompositorFrameSinkBinding> frame_sink_binding; 79 std::unique_ptr<ui::ClientCompositorFrameSinkBinding> frame_sink_binding;
80 auto frame_sink = ui::ClientCompositorFrameSink::Create( 80 auto frame_sink = ui::ClientCompositorFrameSink::Create(
81 frame_sink_id_, std::move(context_provider), gpu_memory_buffer_manager, 81 std::move(context_provider), gpu_memory_buffer_manager,
82 &frame_sink_binding); 82 &frame_sink_binding);
83 tree_->AttachCompositorFrameSink( 83 tree_->AttachCompositorFrameSink(
84 root_window_id_, frame_sink_binding->TakeFrameSinkRequest(), 84 root_window_id_, frame_sink_binding->TakeFrameSinkRequest(),
85 mojo::MakeProxy(frame_sink_binding->TakeFrameSinkClient())); 85 mojo::MakeProxy(frame_sink_binding->TakeFrameSinkClient()));
86 callback.Run(std::move(frame_sink)); 86 callback.Run(std::move(frame_sink));
87 } 87 }
88 88
89 void RendererWindowTreeClient::DestroySelf() { 89 void RendererWindowTreeClient::DestroySelf() {
90 delete this; 90 delete this;
91 } 91 }
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 bool success) {} 257 bool success) {}
258 258
259 void RendererWindowTreeClient::RequestClose(uint32_t window_id) {} 259 void RendererWindowTreeClient::RequestClose(uint32_t window_id) {}
260 260
261 void RendererWindowTreeClient::GetWindowManager( 261 void RendererWindowTreeClient::GetWindowManager(
262 mojo::AssociatedInterfaceRequest<ui::mojom::WindowManager> internal) { 262 mojo::AssociatedInterfaceRequest<ui::mojom::WindowManager> internal) {
263 NOTREACHED(); 263 NOTREACHED();
264 } 264 }
265 265
266 } // namespace content 266 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | services/ui/public/cpp/client_compositor_frame_sink.h » ('j') | ui/aura/mus/mus_context_factory.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698