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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 void OnCollectGraphicsInfo(); | 76 void OnCollectGraphicsInfo(); |
77 void OnGetVideoMemoryUsageStats(); | 77 void OnGetVideoMemoryUsageStats(); |
78 void OnSetVideoMemoryWindowCount(uint32 window_count); | 78 void OnSetVideoMemoryWindowCount(uint32 window_count); |
79 | 79 |
80 void OnClean(); | 80 void OnClean(); |
81 void OnCrash(); | 81 void OnCrash(); |
82 void OnHang(); | 82 void OnHang(); |
83 void OnDisableWatchdog(); | 83 void OnDisableWatchdog(); |
84 void OnGpuSwitched(); | 84 void OnGpuSwitched(); |
85 | 85 |
86 #if defined(USE_TCMALLOC) | |
87 void OnGetGpuTcmalloc(); | |
88 #endif | |
89 | |
90 void BindProcessControlRequest( | 86 void BindProcessControlRequest( |
91 mojo::InterfaceRequest<ProcessControl> request); | 87 mojo::InterfaceRequest<ProcessControl> request); |
92 | 88 |
93 // Set this flag to true if a fatal error occurred before we receive the | 89 // Set this flag to true if a fatal error occurred before we receive the |
94 // OnInitialize message, in which case we just declare ourselves DOA. | 90 // OnInitialize message, in which case we just declare ourselves DOA. |
95 bool dead_on_arrival_; | 91 bool dead_on_arrival_; |
96 base::Time process_start_time_; | 92 base::Time process_start_time_; |
97 scoped_refptr<GpuWatchdogThread> watchdog_thread_; | 93 scoped_refptr<GpuWatchdogThread> watchdog_thread_; |
98 | 94 |
99 #if defined(OS_WIN) | 95 #if defined(OS_WIN) |
(...skipping 23 matching lines...) Expand all Loading... |
123 | 119 |
124 // Bindings to the ProcessControl impl. | 120 // Bindings to the ProcessControl impl. |
125 mojo::WeakBindingSet<ProcessControl> process_control_bindings_; | 121 mojo::WeakBindingSet<ProcessControl> process_control_bindings_; |
126 | 122 |
127 DISALLOW_COPY_AND_ASSIGN(GpuChildThread); | 123 DISALLOW_COPY_AND_ASSIGN(GpuChildThread); |
128 }; | 124 }; |
129 | 125 |
130 } // namespace content | 126 } // namespace content |
131 | 127 |
132 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_ | 128 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_ |
OLD | NEW |