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

Side by Side Diff: services/ui/surfaces/display_compositor.cc

Issue 2539893002: Mus: Implement GpuMain mojo interface (Closed)
Patch Set: Cleanup of naming some more Created 4 years 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/surfaces/display_compositor.h" 5 #include "services/ui/surfaces/display_compositor.h"
6 6
7 #include "cc/output/in_process_context_provider.h" 7 #include "cc/output/in_process_context_provider.h"
8 #include "cc/surfaces/surface.h" 8 #include "cc/surfaces/surface.h"
9 #include "gpu/command_buffer/client/shared_memory_limits.h" 9 #include "gpu/command_buffer/client/shared_memory_limits.h"
10 #include "gpu/ipc/gpu_in_process_thread_service.h" 10 #include "gpu/ipc/gpu_in_process_thread_service.h"
11 #include "mojo/public/cpp/bindings/strong_binding.h" 11 #include "mojo/public/cpp/bindings/strong_binding.h"
12 #include "services/ui/common/mus_gpu_memory_buffer_manager.h" 12 #include "services/ui/common/mus_gpu_memory_buffer_manager.h"
13 #include "services/ui/surfaces/gpu_compositor_frame_sink.h" 13 #include "services/ui/surfaces/gpu_compositor_frame_sink.h"
14 14
15 namespace ui { 15 namespace ui {
16 16
17 DisplayCompositor::DisplayCompositor( 17 DisplayCompositor::DisplayCompositor(
18 scoped_refptr<gpu::InProcessCommandBuffer::Service> gpu_service, 18 scoped_refptr<gpu::InProcessCommandBuffer::Service> gpu_service,
19 std::unique_ptr<MusGpuMemoryBufferManager> gpu_memory_buffer_manager, 19 std::unique_ptr<gpu::GpuMemoryBufferManager> gpu_memory_buffer_manager,
20 gpu::ImageFactory* image_factory, 20 gpu::ImageFactory* image_factory,
21 cc::mojom::DisplayCompositorRequest request, 21 cc::mojom::DisplayCompositorRequest request,
22 cc::mojom::DisplayCompositorClientPtr client) 22 cc::mojom::DisplayCompositorClientPtr client)
23 : gpu_service_(std::move(gpu_service)), 23 : gpu_service_(std::move(gpu_service)),
24 gpu_memory_buffer_manager_(std::move(gpu_memory_buffer_manager)), 24 gpu_memory_buffer_manager_(std::move(gpu_memory_buffer_manager)),
25 image_factory_(image_factory), 25 image_factory_(image_factory),
26 client_(std::move(client)), 26 client_(std::move(client)),
27 binding_(this, std::move(request)) { 27 binding_(this, std::move(request)) {
28 manager_.AddObserver(this); 28 manager_.AddObserver(this);
29 } 29 }
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 surface_id.local_frame_id()); 161 surface_id.local_frame_id());
162 162
163 if (client_) 163 if (client_)
164 client_->OnSurfaceCreated(surface_id, frame_size, device_scale_factor); 164 client_->OnSurfaceCreated(surface_id, frame_size, device_scale_factor);
165 } 165 }
166 166
167 void DisplayCompositor::OnSurfaceDamaged(const cc::SurfaceId& surface_id, 167 void DisplayCompositor::OnSurfaceDamaged(const cc::SurfaceId& surface_id,
168 bool* changed) {} 168 bool* changed) {}
169 169
170 } // namespace ui 170 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698