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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« 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