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

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

Issue 2099063002: Migrate RenderProcessHost, ChildThread to InterfaceRegistry/Provider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 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/public/child/child_thread.h ('k') | content/public/renderer/content_renderer_client.h » ('j') | 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 "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
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_
OLDNEW
« no previous file with comments | « content/public/child/child_thread.h ('k') | content/public/renderer/content_renderer_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698