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

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

Issue 2459973002: Expedite discovery of primary DRM device. (Closed)
Patch Set: Add more comments. 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 // This is called from browser IO thread.
17 virtual void OnGpuProcessLaunched() = 0;
15 // Called when a GPU thread implementation has become available. 18 // Called when a GPU thread implementation has become available.
19 // This is called from browser UI thread.
16 virtual void OnGpuThreadReady() = 0; 20 virtual void OnGpuThreadReady() = 0;
17 // Called when the GPU thread implementation has ceased to be 21 // Called when the GPU thread implementation has ceased to be
18 // available. 22 // available.
23 // This is called from browser UI thread.
19 virtual void OnGpuThreadRetired() = 0; 24 virtual void OnGpuThreadRetired() = 0;
20 }; 25 };
21 26
22 } // namespace ui 27 } // namespace ui
23 28
24 #endif // UI_OZONE_PLATFORM_DRM_HOST_GPU_THREAD_OBSERVER_H_ 29 #endif // UI_OZONE_PLATFORM_DRM_HOST_GPU_THREAD_OBSERVER_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/host/drm_window_host.cc ('k') | ui/ozone/public/gpu_platform_support_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698