| OLD | NEW |
| 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 "services/ui/public/cpp/window_compositor_frame_sink.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/memory/ptr_util.h" |
| 8 #include "cc/output/compositor_frame.h" | 9 #include "cc/output/compositor_frame.h" |
| 9 #include "cc/output/compositor_frame_sink_client.h" | 10 #include "cc/output/compositor_frame_sink_client.h" |
| 10 #include "gpu/ipc/client/gpu_channel_host.h" | 11 #include "gpu/ipc/client/gpu_channel_host.h" |
| 11 | 12 |
| 12 namespace ui { | 13 namespace ui { |
| 13 | 14 |
| 14 // static | 15 // static |
| 15 std::unique_ptr<WindowCompositorFrameSink> WindowCompositorFrameSink::Create( | 16 std::unique_ptr<WindowCompositorFrameSink> WindowCompositorFrameSink::Create( |
| 16 scoped_refptr<cc::ContextProvider> context_provider, | 17 scoped_refptr<cc::ContextProvider> context_provider, |
| 17 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, | 18 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 WindowCompositorFrameSinkBinding::~WindowCompositorFrameSinkBinding() {} | 125 WindowCompositorFrameSinkBinding::~WindowCompositorFrameSinkBinding() {} |
| 125 | 126 |
| 126 WindowCompositorFrameSinkBinding::WindowCompositorFrameSinkBinding( | 127 WindowCompositorFrameSinkBinding::WindowCompositorFrameSinkBinding( |
| 127 cc::mojom::MojoCompositorFrameSinkRequest compositor_frame_sink_request, | 128 cc::mojom::MojoCompositorFrameSinkRequest compositor_frame_sink_request, |
| 128 mojo::InterfacePtrInfo<cc::mojom::MojoCompositorFrameSinkClient> | 129 mojo::InterfacePtrInfo<cc::mojom::MojoCompositorFrameSinkClient> |
| 129 compositor_frame_sink_client) | 130 compositor_frame_sink_client) |
| 130 : compositor_frame_sink_request_(std::move(compositor_frame_sink_request)), | 131 : compositor_frame_sink_request_(std::move(compositor_frame_sink_request)), |
| 131 compositor_frame_sink_client_(std::move(compositor_frame_sink_client)) {} | 132 compositor_frame_sink_client_(std::move(compositor_frame_sink_client)) {} |
| 132 | 133 |
| 133 } // namespace ui | 134 } // namespace ui |
| OLD | NEW |