| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/gpu/gpu_service_impl.h" | 5 #include "services/ui/gpu/gpu_service_impl.h" |
| 6 | 6 |
| 7 #include "services/shell/public/cpp/connection.h" | 7 #include "services/shell/public/cpp/connection.h" |
| 8 #include "services/ui/common/gpu_type_converters.h" | 8 #include "services/ui/common/gpu_type_converters.h" |
| 9 #include "services/ui/gpu/gpu_service_mus.h" | 9 #include "services/ui/gpu/gpu_service_mus.h" |
| 10 | 10 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 const bool allow_view_command_buffers = false; | 40 const bool allow_view_command_buffers = false; |
| 41 const bool allow_real_time_streams = false; | 41 const bool allow_real_time_streams = false; |
| 42 service->EstablishGpuChannel( | 42 service->EstablishGpuChannel( |
| 43 client_tracing_id, preempts, allow_view_command_buffers, | 43 client_tracing_id, preempts, allow_view_command_buffers, |
| 44 allow_real_time_streams, base::Bind(&EstablishGpuChannelDone, callback)); | 44 allow_real_time_streams, base::Bind(&EstablishGpuChannelDone, callback)); |
| 45 } | 45 } |
| 46 | 46 |
| 47 void GpuServiceImpl::CreateGpuMemoryBuffer( | 47 void GpuServiceImpl::CreateGpuMemoryBuffer( |
| 48 mojom::GpuMemoryBufferIdPtr id, | 48 mojom::GpuMemoryBufferIdPtr id, |
| 49 const gfx::Size& size, | 49 const gfx::Size& size, |
| 50 mojom::BufferFormat format, | 50 gfx::BufferFormat format, |
| 51 mojom::BufferUsage usage, | 51 gfx::BufferUsage usage, |
| 52 uint64_t surface_id, | 52 uint64_t surface_id, |
| 53 const mojom::GpuService::CreateGpuMemoryBufferCallback& callback) { | 53 const mojom::GpuService::CreateGpuMemoryBufferCallback& callback) { |
| 54 NOTIMPLEMENTED(); | 54 NOTIMPLEMENTED(); |
| 55 } | 55 } |
| 56 | 56 |
| 57 void GpuServiceImpl::DestroyGpuMemoryBuffer(mojom::GpuMemoryBufferIdPtr id, | 57 void GpuServiceImpl::DestroyGpuMemoryBuffer(mojom::GpuMemoryBufferIdPtr id, |
| 58 const gpu::SyncToken& sync_token) { | 58 const gpu::SyncToken& sync_token) { |
| 59 NOTIMPLEMENTED(); | 59 NOTIMPLEMENTED(); |
| 60 } | 60 } |
| 61 | 61 |
| 62 } // namespace ui | 62 } // namespace ui |
| OLD | NEW |