| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |