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

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

Issue 2903853002: Make RendererCompositorFrameSink derive from ClientCompositorFrameSink (Closed)
Patch Set: Address comments Created 3 years, 6 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, 77 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager,
78 const CompositorFrameSinkCallback& callback) { 78 const CompositorFrameSinkCallback& callback) {
79 cc::mojom::MojoCompositorFrameSinkPtrInfo sink_info; 79 cc::mojom::MojoCompositorFrameSinkPtrInfo sink_info;
80 cc::mojom::MojoCompositorFrameSinkRequest sink_request = 80 cc::mojom::MojoCompositorFrameSinkRequest sink_request =
81 mojo::MakeRequest(&sink_info); 81 mojo::MakeRequest(&sink_info);
82 cc::mojom::MojoCompositorFrameSinkClientPtr client; 82 cc::mojom::MojoCompositorFrameSinkClientPtr client;
83 cc::mojom::MojoCompositorFrameSinkClientRequest client_request = 83 cc::mojom::MojoCompositorFrameSinkClientRequest client_request =
84 mojo::MakeRequest(&client); 84 mojo::MakeRequest(&client);
85 constexpr bool enable_surface_synchronization = true; 85 constexpr bool enable_surface_synchronization = true;
86 auto frame_sink = base::MakeUnique<viz::ClientCompositorFrameSink>( 86 auto frame_sink = base::MakeUnique<viz::ClientCompositorFrameSink>(
87 std::move(context_provider), gpu_memory_buffer_manager, 87 std::move(context_provider), nullptr, gpu_memory_buffer_manager, nullptr,
88 std::move(sink_info), std::move(client_request), 88 nullptr, std::move(sink_info), std::move(client_request),
89 enable_surface_synchronization); 89 enable_surface_synchronization);
90 tree_->AttachCompositorFrameSink(root_window_id_, std::move(sink_request), 90 tree_->AttachCompositorFrameSink(root_window_id_, std::move(sink_request),
91 std::move(client)); 91 std::move(client));
92 callback.Run(std::move(frame_sink)); 92 callback.Run(std::move(frame_sink));
93 } 93 }
94 94
95 void RendererWindowTreeClient::DestroySelf() { 95 void RendererWindowTreeClient::DestroySelf() {
96 delete this; 96 delete this;
97 } 97 }
98 98
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 bool success) {} 260 bool success) {}
261 261
262 void RendererWindowTreeClient::RequestClose(uint32_t window_id) {} 262 void RendererWindowTreeClient::RequestClose(uint32_t window_id) {}
263 263
264 void RendererWindowTreeClient::GetWindowManager( 264 void RendererWindowTreeClient::GetWindowManager(
265 mojo::AssociatedInterfaceRequest<ui::mojom::WindowManager> internal) { 265 mojo::AssociatedInterfaceRequest<ui::mojom::WindowManager> internal) {
266 NOTREACHED(); 266 NOTREACHED();
267 } 267 }
268 268
269 } // namespace content 269 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698