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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 void Init(const base::Time& process_start_time); | 52 void Init(const base::Time& process_start_time); |
53 void StopWatchdog(); | 53 void StopWatchdog(); |
54 | 54 |
55 // ChildThread overrides. | 55 // ChildThread overrides. |
56 virtual bool Send(IPC::Message* msg) OVERRIDE; | 56 virtual bool Send(IPC::Message* msg) OVERRIDE; |
57 virtual bool OnControlMessageReceived(const IPC::Message& msg) OVERRIDE; | 57 virtual bool OnControlMessageReceived(const IPC::Message& msg) OVERRIDE; |
58 | 58 |
59 private: | 59 private: |
60 // Message handlers. | 60 // Message handlers. |
61 void OnInitialize(); | 61 void OnInitialize(); |
| 62 void OnInitializePlatformSupport(int32 host_route_id); |
62 void OnCollectGraphicsInfo(); | 63 void OnCollectGraphicsInfo(); |
63 void OnGetVideoMemoryUsageStats(); | 64 void OnGetVideoMemoryUsageStats(); |
64 void OnSetVideoMemoryWindowCount(uint32 window_count); | 65 void OnSetVideoMemoryWindowCount(uint32 window_count); |
65 | 66 |
66 void OnClean(); | 67 void OnClean(); |
67 void OnCrash(); | 68 void OnCrash(); |
68 void OnHang(); | 69 void OnHang(); |
69 void OnDisableWatchdog(); | 70 void OnDisableWatchdog(); |
70 | 71 |
71 #if defined(USE_TCMALLOC) | 72 #if defined(USE_TCMALLOC) |
(...skipping 21 matching lines...) Expand all Loading... |
93 | 94 |
94 // Whether the GPU thread is running in the browser process. | 95 // Whether the GPU thread is running in the browser process. |
95 bool in_browser_process_; | 96 bool in_browser_process_; |
96 | 97 |
97 DISALLOW_COPY_AND_ASSIGN(GpuChildThread); | 98 DISALLOW_COPY_AND_ASSIGN(GpuChildThread); |
98 }; | 99 }; |
99 | 100 |
100 } // namespace content | 101 } // namespace content |
101 | 102 |
102 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_ | 103 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_ |
OLD | NEW |