Index: gpu/ipc/service/gpu_init_delegate.h |
diff --git a/gpu/ipc/service/gpu_init_delegate.h b/gpu/ipc/service/gpu_init_delegate.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..0cfe4d0c3fe38e72ec5bace2dd8393ee768f157c |
--- /dev/null |
+++ b/gpu/ipc/service/gpu_init_delegate.h |
@@ -0,0 +1,50 @@ |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef GPU_IPC_SERVICE_GPU_INIT_DELEGATE_H_ |
+#define GPU_IPC_SERVICE_GPU_INIT_DELEGATE_H_ |
+ |
+#include "base/macros.h" |
+ |
+namespace base { |
+class Time; |
+} |
+ |
+namespace gpu { |
+ |
+class GpuMemoryBufferFactory; |
+class GpuWatchdogThread; |
+struct GPUInfo; |
+ |
+struct GpuInitLogMessage { |
+ int severity; |
+ std::string header; |
+ std::string message; |
+}; |
+ |
+class GpuInitDelegate { |
+ public: |
+ virtual ~GpuInitDelegate() {} |
+ |
+ // Can be called more than once, as more info is collected. |
+ virtual void OnGpuInfoUpdate(const GPUInfo& info) = 0; |
+ virtual void OnGpuWatchdogThreadCreated(GpuWatchdogThread* thread) = 0; |
+ virtual void OnGpuWatchdogThreadDestroyed() = 0; |
+ |
+ virtual bool ShouldInitializeGL() = 0; |
+ virtual void WaitForDebugger() = 0; |
+ virtual void PreSandboxInitialization() = 0; |
+ virtual bool ShouldStartSandboxEarly() = 0; |
+ virtual void WarmUpSandbox() = 0; |
+ virtual bool StartSandbox() = 0; |
+ virtual void InitializeMessageLoop() = 0; |
+ virtual void Initialize(base::Time start_time, |
+ bool dead_on_arrival, |
+ std::vector<GpuInitLogMessage> init_log_messages, |
+ GpuMemoryBufferFactory* gpu_buffer_factory) = 0; |
+}; |
+ |
+} // namespace gpu |
+ |
+#endif // GPU_IPC_SERVICE_GPU_INIT_DELEGATE_H_ |