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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 void StopWatchdog(); | 45 void StopWatchdog(); |
46 | 46 |
47 // ChildThread overrides. | 47 // ChildThread overrides. |
48 virtual bool Send(IPC::Message* msg) OVERRIDE; | 48 virtual bool Send(IPC::Message* msg) OVERRIDE; |
49 virtual bool OnControlMessageReceived(const IPC::Message& msg) OVERRIDE; | 49 virtual bool OnControlMessageReceived(const IPC::Message& msg) OVERRIDE; |
50 | 50 |
51 private: | 51 private: |
52 // Message handlers. | 52 // Message handlers. |
53 void OnInitialize(); | 53 void OnInitialize(); |
54 void OnCollectGraphicsInfo(); | 54 void OnCollectGraphicsInfo(); |
| 55 void OnGetVideoMemoryUsageStats(); |
55 void OnClean(); | 56 void OnClean(); |
56 void OnCrash(); | 57 void OnCrash(); |
57 void OnHang(); | 58 void OnHang(); |
58 | 59 |
59 #if defined(USE_TCMALLOC) | 60 #if defined(USE_TCMALLOC) |
60 void OnGetGpuTcmalloc(); | 61 void OnGetGpuTcmalloc(); |
61 #endif | 62 #endif |
62 | 63 |
63 #if defined(OS_WIN) | 64 #if defined(OS_WIN) |
64 static void CollectDxDiagnostics(GpuChildThread* thread); | 65 static void CollectDxDiagnostics(GpuChildThread* thread); |
(...skipping 17 matching lines...) Expand all Loading... |
82 | 83 |
83 scoped_ptr<GpuChannelManager> gpu_channel_manager_; | 84 scoped_ptr<GpuChannelManager> gpu_channel_manager_; |
84 | 85 |
85 // Information about the GPU, such as device and vendor ID. | 86 // Information about the GPU, such as device and vendor ID. |
86 content::GPUInfo gpu_info_; | 87 content::GPUInfo gpu_info_; |
87 | 88 |
88 DISALLOW_COPY_AND_ASSIGN(GpuChildThread); | 89 DISALLOW_COPY_AND_ASSIGN(GpuChildThread); |
89 }; | 90 }; |
90 | 91 |
91 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_ | 92 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_ |
OLD | NEW |