| 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 "components/mus/gpu/gpu_service_impl.h" | 5 #include "components/mus/gpu/gpu_service_impl.h" |
| 6 | 6 |
| 7 #include "components/mus/common/gpu_type_converters.h" | 7 #include "components/mus/common/gpu_type_converters.h" |
| 8 #include "components/mus/gpu/gpu_service_mus.h" | 8 #include "components/mus/gpu/gpu_service_mus.h" |
| 9 #include "services/shell/public/cpp/connection.h" | 9 #include "services/shell/public/cpp/connection.h" |
| 10 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 GpuServiceImpl::GpuServiceImpl( | 25 GpuServiceImpl::GpuServiceImpl( |
| 26 mojo::InterfaceRequest<mojom::GpuService> request, | 26 mojo::InterfaceRequest<mojom::GpuService> request, |
| 27 shell::Connection* connection) | 27 shell::Connection* connection) |
| 28 : binding_(this, std::move(request)) {} | 28 : binding_(this, std::move(request)) {} |
| 29 | 29 |
| 30 GpuServiceImpl::~GpuServiceImpl() {} | 30 GpuServiceImpl::~GpuServiceImpl() {} |
| 31 | 31 |
| 32 void GpuServiceImpl::EstablishGpuChannel( | 32 void GpuServiceImpl::EstablishGpuChannel( |
| 33 const mojom::GpuService::EstablishGpuChannelCallback& callback) { | 33 const mojom::GpuService::EstablishGpuChannelCallback& callback) { |
| 34 fprintf(stderr, "EEE %d %s %d\n", getpid(), __PRETTY_FUNCTION__, __LINE__); |
| 34 GpuServiceMus* service = GpuServiceMus::GetInstance(); | 35 GpuServiceMus* service = GpuServiceMus::GetInstance(); |
| 35 // TODO(penghuang): crbug.com/617415 figure out how to generate a meaningful | 36 // TODO(penghuang): crbug.com/617415 figure out how to generate a meaningful |
| 36 // tracing id. | 37 // tracing id. |
| 37 const uint64_t client_tracing_id = 0; | 38 const uint64_t client_tracing_id = 0; |
| 38 // TODO(penghuang): windows server may want to control those flags. | 39 // TODO(penghuang): windows server may want to control those flags. |
| 39 // Add a private interface for windows server. | 40 // Add a private interface for windows server. |
| 40 const bool preempts = false; | 41 const bool preempts = false; |
| 41 const bool allow_view_command_buffers = false; | 42 const bool allow_view_command_buffers = false; |
| 42 const bool allow_real_time_streams = false; | 43 const bool allow_real_time_streams = false; |
| 43 service->EstablishGpuChannel( | 44 service->EstablishGpuChannel( |
| (...skipping 20 matching lines...) Expand all Loading... |
| 64 callback) { | 65 callback) { |
| 65 NOTIMPLEMENTED(); | 66 NOTIMPLEMENTED(); |
| 66 } | 67 } |
| 67 | 68 |
| 68 void GpuServiceImpl::DestroyGpuMemoryBuffer(mojom::GpuMemoryBufferIdPtr id, | 69 void GpuServiceImpl::DestroyGpuMemoryBuffer(mojom::GpuMemoryBufferIdPtr id, |
| 69 const gpu::SyncToken& sync_token) { | 70 const gpu::SyncToken& sync_token) { |
| 70 NOTIMPLEMENTED(); | 71 NOTIMPLEMENTED(); |
| 71 } | 72 } |
| 72 | 73 |
| 73 } // namespace mus | 74 } // namespace mus |
| OLD | NEW |