| 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 struct GpuPreferences; |
| 12 } // namespace gpu |
| 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( |
| 27 ServiceRegistry* registry, |
| 28 const gpu::GpuPreferences& gpu_preferences) {} |
| 23 }; | 29 }; |
| 24 | 30 |
| 25 } // namespace content | 31 } // namespace content |
| 26 | 32 |
| 27 #endif // CONTENT_PUBLIC_GPU_CONTENT_GPU_CLIENT_H_ | 33 #endif // CONTENT_PUBLIC_GPU_CONTENT_GPU_CLIENT_H_ |
| OLD | NEW |