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

Side by Side Diff: ui/aura/mus/window_compositor_frame_sink.cc

Issue 2464123003: Enabling Aura-Mus clients to submit frames to Mus. (Closed)
Patch Set: Created 4 years, 1 month 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "services/ui/public/cpp/window_compositor_frame_sink.h" 5 #include "ui/aura/mus/window_compositor_frame_sink.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "cc/output/compositor_frame.h" 8 #include "cc/output/compositor_frame.h"
9 #include "cc/output/compositor_frame_sink_client.h" 9 #include "cc/output/compositor_frame_sink_client.h"
10 #include "gpu/ipc/client/gpu_channel_host.h" 10 #include "gpu/ipc/client/gpu_channel_host.h"
11 #include "services/ui/public/cpp/gpu_service.h"
12 11
13 namespace ui { 12 namespace aura {
14 13
15 // static 14 // static
16 std::unique_ptr<WindowCompositorFrameSink> WindowCompositorFrameSink::Create( 15 std::unique_ptr<WindowCompositorFrameSink> WindowCompositorFrameSink::Create(
17 scoped_refptr<cc::ContextProvider> context_provider, 16 scoped_refptr<cc::ContextProvider> context_provider,
18 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, 17 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager,
19 std::unique_ptr<WindowCompositorFrameSinkBinding>* 18 std::unique_ptr<WindowCompositorFrameSinkBinding>*
20 compositor_frame_sink_binding) { 19 compositor_frame_sink_binding) {
21 cc::mojom::MojoCompositorFrameSinkPtr compositor_frame_sink; 20 cc::mojom::MojoCompositorFrameSinkPtr compositor_frame_sink;
22 cc::mojom::MojoCompositorFrameSinkClientPtr compositor_frame_sink_client; 21 cc::mojom::MojoCompositorFrameSinkClientPtr compositor_frame_sink_client;
23 cc::mojom::MojoCompositorFrameSinkClientRequest 22 cc::mojom::MojoCompositorFrameSinkClientRequest
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 103
105 WindowCompositorFrameSinkBinding::~WindowCompositorFrameSinkBinding() {} 104 WindowCompositorFrameSinkBinding::~WindowCompositorFrameSinkBinding() {}
106 105
107 WindowCompositorFrameSinkBinding::WindowCompositorFrameSinkBinding( 106 WindowCompositorFrameSinkBinding::WindowCompositorFrameSinkBinding(
108 cc::mojom::MojoCompositorFrameSinkRequest compositor_frame_sink_request, 107 cc::mojom::MojoCompositorFrameSinkRequest compositor_frame_sink_request,
109 mojo::InterfacePtrInfo<cc::mojom::MojoCompositorFrameSinkClient> 108 mojo::InterfacePtrInfo<cc::mojom::MojoCompositorFrameSinkClient>
110 compositor_frame_sink_client) 109 compositor_frame_sink_client)
111 : compositor_frame_sink_request_(std::move(compositor_frame_sink_request)), 110 : compositor_frame_sink_request_(std::move(compositor_frame_sink_request)),
112 compositor_frame_sink_client_(std::move(compositor_frame_sink_client)) {} 111 compositor_frame_sink_client_(std::move(compositor_frame_sink_client)) {}
113 112
114 } // namespace ui 113 } // namespace aura
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698