| 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" |
| 12 #include "services/ui/surfaces/gpu_compositor_frame_sink.h" | 13 #include "services/ui/surfaces/gpu_compositor_frame_sink.h" |
| 13 | 14 |
| 14 namespace ui { | 15 namespace ui { |
| 15 | 16 |
| 16 DisplayCompositor::DisplayCompositor( | 17 DisplayCompositor::DisplayCompositor( |
| 17 scoped_refptr<gpu::InProcessCommandBuffer::Service> gpu_service, | 18 scoped_refptr<gpu::InProcessCommandBuffer::Service> gpu_service, |
| 18 std::unique_ptr<MusGpuMemoryBufferManager> gpu_memory_buffer_manager, | 19 std::unique_ptr<MusGpuMemoryBufferManager> gpu_memory_buffer_manager, |
| 19 gpu::ImageFactory* image_factory, | 20 gpu::ImageFactory* image_factory, |
| 20 cc::mojom::DisplayCompositorRequest request, | 21 cc::mojom::DisplayCompositorRequest request, |
| 21 cc::mojom::DisplayCompositorClientPtr client) | 22 cc::mojom::DisplayCompositorClientPtr client) |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 surface_id.local_frame_id()); | 161 surface_id.local_frame_id()); |
| 161 | 162 |
| 162 if (client_) | 163 if (client_) |
| 163 client_->OnSurfaceCreated(surface_id, frame_size, device_scale_factor); | 164 client_->OnSurfaceCreated(surface_id, frame_size, device_scale_factor); |
| 164 } | 165 } |
| 165 | 166 |
| 166 void DisplayCompositor::OnSurfaceDamaged(const cc::SurfaceId& surface_id, | 167 void DisplayCompositor::OnSurfaceDamaged(const cc::SurfaceId& surface_id, |
| 167 bool* changed) {} | 168 bool* changed) {} |
| 168 | 169 |
| 169 } // namespace ui | 170 } // namespace ui |
| OLD | NEW |