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 CONTENT_PUBLIC_GPU_CONTENT_GPU_CLIENT_H_ | 5 #ifndef CONTENT_PUBLIC_GPU_CONTENT_GPU_CLIENT_H_ |
6 #define CONTENT_PUBLIC_GPU_CONTENT_GPU_CLIENT_H_ | 6 #define CONTENT_PUBLIC_GPU_CONTENT_GPU_CLIENT_H_ |
7 | 7 |
8 #include "content/public/common/content_client.h" | 8 #include "content/public/common/content_client.h" |
9 | 9 |
| 10 namespace gpu { |
| 11 class SyncPointManager; |
| 12 } |
| 13 |
10 namespace content { | 14 namespace content { |
11 | 15 |
12 class ServiceRegistry; | 16 class ServiceRegistry; |
13 | 17 |
14 // Embedder API for participating in gpu logic. | 18 // Embedder API for participating in gpu logic. |
15 class CONTENT_EXPORT ContentGpuClient { | 19 class CONTENT_EXPORT ContentGpuClient { |
16 public: | 20 public: |
17 virtual ~ContentGpuClient() {} | 21 virtual ~ContentGpuClient() {} |
18 | 22 |
19 // Allows client to register Mojo services in |registry| on the GPU process. | 23 // Allows client to register Mojo services in |registry| on the GPU process. |
20 // The registered services will be exposed to the browser process through | 24 // The registered services will be exposed to the browser process through |
21 // GpuProcessHost. | 25 // GpuProcessHost. |
22 virtual void RegisterMojoServices(ServiceRegistry* registry) {} | 26 virtual void RegisterMojoServices(ServiceRegistry* registry) {} |
| 27 |
| 28 // Allows client to supply a SyncPointManager instance instead of having |
| 29 // content internally create one. |
| 30 virtual gpu::SyncPointManager* GetSyncPointManager(); |
23 }; | 31 }; |
24 | 32 |
25 } // namespace content | 33 } // namespace content |
26 | 34 |
27 #endif // CONTENT_PUBLIC_GPU_CONTENT_GPU_CLIENT_H_ | 35 #endif // CONTENT_PUBLIC_GPU_CONTENT_GPU_CLIENT_H_ |
OLD | NEW |