| 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 // 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_ |
| OLD | NEW |