OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef GPU_IPC_SERVICE_GPU_INIT_H_ |
| 6 #define GPU_IPC_SERVICE_GPU_INIT_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "base/macros.h" |
| 11 #include "base/memory/ref_counted.h" |
| 12 #include "gpu/gpu_export.h" |
| 13 |
| 14 namespace base { |
| 15 class CommandLine; |
| 16 class Time; |
| 17 } |
| 18 |
| 19 namespace gpu { |
| 20 |
| 21 class GpuInitDelegate; |
| 22 class GpuMemoryBufferFactory; |
| 23 class GpuWatchdogThread; |
| 24 struct GPUInfo; |
| 25 |
| 26 class GPU_EXPORT GpuInit { |
| 27 public: |
| 28 GpuInit(GpuInitDelegate* delegate, const base::CommandLine& command_line); |
| 29 ~GpuInit(); |
| 30 |
| 31 private: |
| 32 GpuInitDelegate* delegate_; |
| 33 scoped_refptr<GpuWatchdogThread> watchdog_thread_; |
| 34 std::unique_ptr<gpu::GpuMemoryBufferFactory> gpu_memory_buffer_factory_; |
| 35 |
| 36 DISALLOW_COPY_AND_ASSIGN(GpuInit); |
| 37 }; |
| 38 |
| 39 } // namespace gpu |
| 40 |
| 41 #endif // GPU_IPC_SERVICE_GPU_INIT_H_ |
OLD | NEW |