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

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

Issue 1908223002: Remove content/gpu from content/browser/android/DEPS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: owned_sync_point_manager_ Created 4 years, 8 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/gpu/BUILD.gn ('k') | content/public/gpu/content_gpu_client.cc » ('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 "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_
OLDNEW
« no previous file with comments | « content/public/gpu/BUILD.gn ('k') | content/public/gpu/content_gpu_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698