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

Side by Side Diff: ui/ozone/platform/drm/host/gpu_thread_observer.h

Issue 2459973002: Expedite discovery of primary DRM device. (Closed)
Patch Set: Send the first AddGraphicsDevice IPC synchronously on IO thread. Created 4 years, 1 month 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_OZONE_PLATFORM_DRM_HOST_GPU_THREAD_OBSERVER_H_ 5 #ifndef UI_OZONE_PLATFORM_DRM_HOST_GPU_THREAD_OBSERVER_H_
6 #define UI_OZONE_PLATFORM_DRM_HOST_GPU_THREAD_OBSERVER_H_ 6 #define UI_OZONE_PLATFORM_DRM_HOST_GPU_THREAD_OBSERVER_H_
7 7
8 namespace ui { 8 namespace ui {
9 9
10 // Observes the channel state. 10 // Observes the channel state.
11 class GpuThreadObserver { 11 class GpuThreadObserver {
12 public: 12 public:
13 virtual ~GpuThreadObserver() {} 13 virtual ~GpuThreadObserver() {}
14 14
15 // Called when the GPU process is launched.
16 virtual void OnGpuProcessLaunched() = 0;
dnicoara 2016/11/01 19:00:40 You'll want to document that this is called from b
hshi1 2016/11/01 19:31:47 Done.
15 // Called when a GPU thread implementation has become available. 17 // Called when a GPU thread implementation has become available.
16 virtual void OnGpuThreadReady() = 0; 18 virtual void OnGpuThreadReady() = 0;
17 // Called when the GPU thread implementation has ceased to be 19 // Called when the GPU thread implementation has ceased to be
18 // available. 20 // available.
19 virtual void OnGpuThreadRetired() = 0; 21 virtual void OnGpuThreadRetired() = 0;
20 }; 22 };
21 23
22 } // namespace ui 24 } // namespace ui
23 25
24 #endif // UI_OZONE_PLATFORM_DRM_HOST_GPU_THREAD_OBSERVER_H_ 26 #endif // UI_OZONE_PLATFORM_DRM_HOST_GPU_THREAD_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698