OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_OBSERVER_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_OBSERVER_H_ |
6 #define CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_OBSERVER_H_ | 6 #define CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_OBSERVER_H_ |
7 | 7 |
8 #include "base/process_util.h" | 8 #include "base/process_util.h" |
9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
10 #include "content/public/common/gpu_memory_stats.h" | 10 #include "content/public/common/gpu_memory_stats.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 // Indicates that client 3D APIs (Pepper 3D, WebGL) were just blocked on the | 28 // Indicates that client 3D APIs (Pepper 3D, WebGL) were just blocked on the |
29 // given page, specifically because the GPU was reset recently. | 29 // given page, specifically because the GPU was reset recently. |
30 virtual void DidBlock3DAPIs(const GURL& url, | 30 virtual void DidBlock3DAPIs(const GURL& url, |
31 int render_process_id, | 31 int render_process_id, |
32 int render_view_id, | 32 int render_view_id, |
33 ThreeDAPIType requester) {} | 33 ThreeDAPIType requester) {} |
34 | 34 |
35 // Called for any observer when the GPU process crashed. | 35 // Called for any observer when the GPU process crashed. |
36 virtual void OnGpuProcessCrashed(base::TerminationStatus exit_code) {} | 36 virtual void OnGpuProcessCrashed(base::TerminationStatus exit_code) {} |
37 | 37 |
| 38 // Called for any observer when the system switches to a different GPU. |
| 39 virtual void OnGpuSwitching() {} |
| 40 |
38 protected: | 41 protected: |
39 virtual ~GpuDataManagerObserver() {} | 42 virtual ~GpuDataManagerObserver() {} |
40 }; | 43 }; |
41 | 44 |
42 }; // namespace content | 45 }; // namespace content |
43 | 46 |
44 #endif // CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_OBSERVER_H_ | 47 #endif // CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_OBSERVER_H_ |
OLD | NEW |