Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Side by Side Diff: content/public/gpu/content_gpu_client.h

Issue 2034933002: Make field trials activated in the GPU process be reflected in browser. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: IWYU Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/gpu/gpu_child_thread.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "content/public/common/content_client.h" 9 #include "content/public/common/content_client.h"
9 10
10 namespace gpu { 11 namespace gpu {
11 class SyncPointManager; 12 class SyncPointManager;
12 } 13 }
13 14
14 namespace content { 15 namespace content {
15 16
16 class ServiceRegistry; 17 class ServiceRegistry;
17 18
18 // Embedder API for participating in gpu logic. 19 // Embedder API for participating in gpu logic.
19 class CONTENT_EXPORT ContentGpuClient { 20 class CONTENT_EXPORT ContentGpuClient {
20 public: 21 public:
21 virtual ~ContentGpuClient() {} 22 virtual ~ContentGpuClient() {}
22 23
24 // Initializes the client. This sets up the field trial synchronization
25 // mechanism, which will notify |observer| when a field trial is activated,
26 // which should be used to inform the browser process of this state.
27 virtual void Initialize(base::FieldTrialList::Observer* observer) {}
28
23 // Allows client to register Mojo services in |registry| on the GPU process. 29 // Allows client to register Mojo services in |registry| on the GPU process.
24 // The registered services will be exposed to the browser process through 30 // The registered services will be exposed to the browser process through
25 // GpuProcessHost. 31 // GpuProcessHost.
26 virtual void RegisterMojoServices(ServiceRegistry* registry) {} 32 virtual void RegisterMojoServices(ServiceRegistry* registry) {}
27 33
28 // Allows client to supply a SyncPointManager instance instead of having 34 // Allows client to supply a SyncPointManager instance instead of having
29 // content internally create one. 35 // content internally create one.
30 virtual gpu::SyncPointManager* GetSyncPointManager(); 36 virtual gpu::SyncPointManager* GetSyncPointManager();
31 }; 37 };
32 38
33 } // namespace content 39 } // namespace content
34 40
35 #endif // CONTENT_PUBLIC_GPU_CONTENT_GPU_CLIENT_H_ 41 #endif // CONTENT_PUBLIC_GPU_CONTENT_GPU_CLIENT_H_
OLDNEW
« no previous file with comments | « content/gpu/gpu_child_thread.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698