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

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

Issue 2545923003: services/ui/surfaces should not depend on other parts of Mus (Closed)
Patch Set: Cleanup 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
« no previous file with comments | « services/ui/surfaces/display_compositor.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
13 #include "services/ui/surfaces/gpu_compositor_frame_sink.h" 12 #include "services/ui/surfaces/gpu_compositor_frame_sink.h"
14 13
15 namespace ui { 14 namespace ui {
16 15
17 DisplayCompositor::DisplayCompositor( 16 DisplayCompositor::DisplayCompositor(
18 scoped_refptr<gpu::InProcessCommandBuffer::Service> gpu_service, 17 scoped_refptr<gpu::InProcessCommandBuffer::Service> gpu_service,
19 std::unique_ptr<gpu::GpuMemoryBufferManager> gpu_memory_buffer_manager, 18 std::unique_ptr<gpu::GpuMemoryBufferManager> gpu_memory_buffer_manager,
20 gpu::ImageFactory* image_factory, 19 gpu::ImageFactory* image_factory,
21 cc::mojom::DisplayCompositorRequest request, 20 cc::mojom::DisplayCompositorRequest request,
22 cc::mojom::DisplayCompositorClientPtr client) 21 cc::mojom::DisplayCompositorClientPtr client)
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 surface_id.local_frame_id()); 169 surface_id.local_frame_id());
171 170
172 if (client_) 171 if (client_)
173 client_->OnSurfaceCreated(surface_id, frame_size, device_scale_factor); 172 client_->OnSurfaceCreated(surface_id, frame_size, device_scale_factor);
174 } 173 }
175 174
176 void DisplayCompositor::OnSurfaceDamaged(const cc::SurfaceId& surface_id, 175 void DisplayCompositor::OnSurfaceDamaged(const cc::SurfaceId& surface_id,
177 bool* changed) {} 176 bool* changed) {}
178 177
179 } // namespace ui 178 } // namespace ui
OLDNEW
« no previous file with comments | « services/ui/surfaces/display_compositor.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698