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 #ifndef COMPONENTS_MUS_GPU_GPU_SERVICE_IMPL_H_ | 5 #ifndef COMPONENTS_MUS_GPU_GPU_SERVICE_IMPL_H_ |
6 #define COMPONENTS_MUS_GPU_GPU_SERVICE_IMPL_H_ | 6 #define COMPONENTS_MUS_GPU_GPU_SERVICE_IMPL_H_ |
7 | 7 |
8 #include "components/mus/public/interfaces/gpu_memory_buffer.mojom.h" | 8 #include "components/mus/public/interfaces/gpu_memory_buffer.mojom.h" |
9 #include "components/mus/public/interfaces/gpu_service.mojom.h" | 9 #include "components/mus/public/interfaces/gpu_service.mojom.h" |
10 #include "mojo/public/cpp/bindings/interface_request.h" | 10 #include "mojo/public/cpp/bindings/interface_request.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 mojom::BufferFormat format, | 42 mojom::BufferFormat format, |
43 const mojom::GpuService::CreateGpuMemoryBufferFromHandleCallback& | 43 const mojom::GpuService::CreateGpuMemoryBufferFromHandleCallback& |
44 callback) override; | 44 callback) override; |
45 | 45 |
46 void DestroyGpuMemoryBuffer(mojom::GpuMemoryBufferIdPtr id, | 46 void DestroyGpuMemoryBuffer(mojom::GpuMemoryBufferIdPtr id, |
47 const gpu::SyncToken& sync_token) override; | 47 const gpu::SyncToken& sync_token) override; |
48 | 48 |
49 private: | 49 private: |
50 mojo::StrongBinding<GpuService> binding_; | 50 mojo::StrongBinding<GpuService> binding_; |
51 | 51 |
52 // A unique client id for constructing the GpuChannel. | |
53 const int32_t client_id_; | |
54 | |
55 DISALLOW_COPY_AND_ASSIGN(GpuServiceImpl); | 52 DISALLOW_COPY_AND_ASSIGN(GpuServiceImpl); |
56 }; | 53 }; |
57 | 54 |
58 } // namespace mus | 55 } // namespace mus |
59 | 56 |
60 #endif // COMPONENTS_MUS_GPU_GPU_SERVICE_IMPL_H_ | 57 #endif // COMPONENTS_MUS_GPU_GPU_SERVICE_IMPL_H_ |
OLD | NEW |