Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(336)

Unified Diff: gpu/ipc/service/gpu_init_delegate.h

Issue 2289553002: gpu: Introduce GpuInit. (Closed)
Patch Set: . Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/ipc/service/gpu_init.cc ('k') | gpu/ipc/service/gpu_watchdog_thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « gpu/ipc/service/gpu_init.cc ('k') | gpu/ipc/service/gpu_watchdog_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698