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 #include "content/browser/gpu/gpu_main_thread_factory.h" |
| 6 |
| 7 namespace content { |
| 8 namespace { |
| 9 |
| 10 GpuMainThreadFactoryFunction g_gpu_main_thread_factory = nullptr; |
| 11 |
| 12 } // namespace |
| 13 |
| 14 void RegisterGpuMainThreadFactory(GpuMainThreadFactoryFunction create) { |
| 15 g_gpu_main_thread_factory = create; |
| 16 } |
| 17 |
| 18 GpuMainThreadFactoryFunction GetGpuMainThreadFactory() { |
| 19 return g_gpu_main_thread_factory; |
| 20 } |
| 21 |
| 22 } // namespace content |
OLD | NEW |