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 "base/metrics/field_trial.h" | 8 #include "base/metrics/field_trial.h" |
9 #include "content/public/common/content_client.h" | 9 #include "content/public/common/content_client.h" |
10 | 10 |
(...skipping 10 matching lines...) Expand all Loading... |
21 // Embedder API for participating in gpu logic. | 21 // Embedder API for participating in gpu logic. |
22 class CONTENT_EXPORT ContentGpuClient { | 22 class CONTENT_EXPORT ContentGpuClient { |
23 public: | 23 public: |
24 virtual ~ContentGpuClient() {} | 24 virtual ~ContentGpuClient() {} |
25 | 25 |
26 // Initializes the client. This sets up the field trial synchronization | 26 // Initializes the client. This sets up the field trial synchronization |
27 // mechanism, which will notify |observer| when a field trial is activated, | 27 // mechanism, which will notify |observer| when a field trial is activated, |
28 // which should be used to inform the browser process of this state. | 28 // which should be used to inform the browser process of this state. |
29 virtual void Initialize(base::FieldTrialList::Observer* observer) {} | 29 virtual void Initialize(base::FieldTrialList::Observer* observer) {} |
30 | 30 |
31 // Allows client to register Mojo interfaces in |registry| on the GPU process. | 31 // Allows the client to expose interfaces from the GPU process to the browser |
32 // The registered interfaces will be exposed to the browser process through | 32 // process via |registry|. |
33 // GpuProcessHost. | 33 virtual void ExposeInterfacesToBrowser(shell::InterfaceRegistry* registry) {} |
34 virtual void RegisterMojoInterfaces(shell::InterfaceRegistry* registry) {} | |
35 | 34 |
36 // Allows client to supply a SyncPointManager instance instead of having | 35 // Allows client to supply a SyncPointManager instance instead of having |
37 // content internally create one. | 36 // content internally create one. |
38 virtual gpu::SyncPointManager* GetSyncPointManager(); | 37 virtual gpu::SyncPointManager* GetSyncPointManager(); |
39 }; | 38 }; |
40 | 39 |
41 } // namespace content | 40 } // namespace content |
42 | 41 |
43 #endif // CONTENT_PUBLIC_GPU_CONTENT_GPU_CLIENT_H_ | 42 #endif // CONTENT_PUBLIC_GPU_CONTENT_GPU_CLIENT_H_ |
OLD | NEW |