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_GPU_GPU_CHILD_THREAD_H_ | 5 #ifndef CONTENT_GPU_GPU_CHILD_THREAD_H_ |
6 #define CONTENT_GPU_GPU_CHILD_THREAD_H_ | 6 #define CONTENT_GPU_GPU_CHILD_THREAD_H_ |
7 | 7 |
8 #include <queue> | 8 #include <queue> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 void OnInitialize(); | 61 void OnInitialize(); |
62 void OnCollectGraphicsInfo(); | 62 void OnCollectGraphicsInfo(); |
63 void OnGetVideoMemoryUsageStats(); | 63 void OnGetVideoMemoryUsageStats(); |
64 void OnSetVideoMemoryWindowCount(uint32 window_count); | 64 void OnSetVideoMemoryWindowCount(uint32 window_count); |
65 | 65 |
66 void OnClean(); | 66 void OnClean(); |
67 void OnCrash(); | 67 void OnCrash(); |
68 void OnHang(); | 68 void OnHang(); |
69 void OnDisableWatchdog(); | 69 void OnDisableWatchdog(); |
70 | 70 |
| 71 #if defined(TOOLKIT_GTK) |
| 72 void OnAcceleratedCompositingStateChange( |
| 73 int32 surface_id, bool compositing_active); |
| 74 #endif |
| 75 |
71 #if defined(USE_TCMALLOC) | 76 #if defined(USE_TCMALLOC) |
72 void OnGetGpuTcmalloc(); | 77 void OnGetGpuTcmalloc(); |
73 #endif | 78 #endif |
74 | 79 |
75 // Set this flag to true if a fatal error occurred before we receive the | 80 // Set this flag to true if a fatal error occurred before we receive the |
76 // OnInitialize message, in which case we just declare ourselves DOA. | 81 // OnInitialize message, in which case we just declare ourselves DOA. |
77 bool dead_on_arrival_; | 82 bool dead_on_arrival_; |
78 base::Time process_start_time_; | 83 base::Time process_start_time_; |
79 scoped_refptr<GpuWatchdogThread> watchdog_thread_; | 84 scoped_refptr<GpuWatchdogThread> watchdog_thread_; |
80 | 85 |
(...skipping 12 matching lines...) Expand all Loading... |
93 | 98 |
94 // Whether the GPU thread is running in the browser process. | 99 // Whether the GPU thread is running in the browser process. |
95 bool in_browser_process_; | 100 bool in_browser_process_; |
96 | 101 |
97 DISALLOW_COPY_AND_ASSIGN(GpuChildThread); | 102 DISALLOW_COPY_AND_ASSIGN(GpuChildThread); |
98 }; | 103 }; |
99 | 104 |
100 } // namespace content | 105 } // namespace content |
101 | 106 |
102 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_ | 107 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_ |
OLD | NEW |