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

Side by Side Diff: content/browser/gpu/gpu_main_thread_factory.h

Issue 2781293003: gpu: Have GpuService create and own GpuMemoryBufferFactory. (Closed)
Patch Set: tot merge. Created 3 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 | « no previous file | content/browser/gpu/gpu_process_host.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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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_BROWSER_GPU_GPU_MAIN_THREAD_FACTORY_H_ 5 #ifndef CONTENT_BROWSER_GPU_GPU_MAIN_THREAD_FACTORY_H_
6 #define CONTENT_BROWSER_GPU_GPU_MAIN_THREAD_FACTORY_H_ 6 #define CONTENT_BROWSER_GPU_GPU_MAIN_THREAD_FACTORY_H_
7 7
8 #include "content/common/content_export.h" 8 #include "content/common/content_export.h"
9 9
10 namespace base { 10 namespace base {
11 class Thread; 11 class Thread;
12 } 12 }
13 13
14 namespace gpu {
15 struct GpuPreferences;
16 }
17
18 namespace content { 14 namespace content {
19 class InProcessChildThreadParams; 15 class InProcessChildThreadParams;
20 16
21 typedef base::Thread* (*GpuMainThreadFactoryFunction)( 17 typedef base::Thread* (*GpuMainThreadFactoryFunction)(
22 const InProcessChildThreadParams&, 18 const InProcessChildThreadParams&);
23 const gpu::GpuPreferences&);
24 19
25 CONTENT_EXPORT void RegisterGpuMainThreadFactory( 20 CONTENT_EXPORT void RegisterGpuMainThreadFactory(
26 GpuMainThreadFactoryFunction create); 21 GpuMainThreadFactoryFunction create);
27 22
28 GpuMainThreadFactoryFunction GetGpuMainThreadFactory(); 23 GpuMainThreadFactoryFunction GetGpuMainThreadFactory();
29 24
30 } // namespace content 25 } // namespace content
31 26
32 #endif // CONTENT_BROWSER_GPU_GPU_MAIN_THREAD_FACTORY_H_ 27 #endif // CONTENT_BROWSER_GPU_GPU_MAIN_THREAD_FACTORY_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/gpu/gpu_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698