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_DELEGATE_H_ |
| 6 #define GPU_IPC_SERVICE_GPU_INIT_DELEGATE_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 |
| 10 namespace base { |
| 11 class Time; |
| 12 } |
| 13 |
| 14 namespace gpu { |
| 15 |
| 16 class GpuMemoryBufferFactory; |
| 17 class GpuWatchdogThread; |
| 18 struct GPUInfo; |
| 19 |
| 20 struct GpuInitLogMessage { |
| 21 int severity; |
| 22 std::string header; |
| 23 std::string message; |
| 24 }; |
| 25 |
| 26 class GpuInitDelegate { |
| 27 public: |
| 28 virtual ~GpuInitDelegate() {} |
| 29 |
| 30 // Can be called more than once, as more info is collected. |
| 31 virtual void OnGpuInfoUpdate(const GPUInfo& info) = 0; |
| 32 virtual void OnGpuWatchdogThreadCreated(GpuWatchdogThread* thread) = 0; |
| 33 virtual void OnGpuWatchdogThreadDestroyed() = 0; |
| 34 |
| 35 virtual bool ShouldInitializeGL() = 0; |
| 36 virtual void WaitForDebugger() = 0; |
| 37 virtual void PreSandboxInitialization() = 0; |
| 38 virtual bool ShouldStartSandboxEarly() = 0; |
| 39 virtual void WarmUpSandbox() = 0; |
| 40 virtual bool StartSandbox() = 0; |
| 41 virtual void InitializeMessageLoop() = 0; |
| 42 virtual void Initialize(base::Time start_time, |
| 43 bool dead_on_arrival, |
| 44 std::vector<GpuInitLogMessage> init_log_messages, |
| 45 GpuMemoryBufferFactory* gpu_buffer_factory) = 0; |
| 46 }; |
| 47 |
| 48 } // namespace gpu |
| 49 |
| 50 #endif // GPU_IPC_SERVICE_GPU_INIT_DELEGATE_H_ |
OLD | NEW |