OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_BROWSER_GPU_GPU_MAIN_THREAD_FACTORY_H_ |
| 6 #define CONTENT_BROWSER_GPU_GPU_MAIN_THREAD_FACTORY_H_ |
| 7 |
| 8 #include "content/common/content_export.h" |
| 9 |
| 10 namespace base { |
| 11 class Thread; |
| 12 } |
| 13 |
| 14 namespace gpu { |
| 15 struct GpuPreferences; |
| 16 } |
| 17 |
| 18 namespace content { |
| 19 class InProcessChildThreadParams; |
| 20 |
| 21 typedef base::Thread* (*GpuMainThreadFactoryFunction)( |
| 22 const InProcessChildThreadParams&, |
| 23 const gpu::GpuPreferences&); |
| 24 |
| 25 CONTENT_EXPORT void RegisterGpuMainThreadFactory( |
| 26 GpuMainThreadFactoryFunction create); |
| 27 |
| 28 GpuMainThreadFactoryFunction GetGpuMainThreadFactory(); |
| 29 |
| 30 } // namespace content |
| 31 |
| 32 #endif // CONTENT_BROWSER_GPU_GPU_MAIN_THREAD_FACTORY_H_ |
OLD | NEW |