Chromium Code Reviews| OLD | NEW |
|---|---|
| 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_ |
| OLD | NEW |