| 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 29 matching lines...) Expand all Loading... |
| 40 explicit GpuChildThread(GpuWatchdogThread* gpu_watchdog_thread, | 40 explicit GpuChildThread(GpuWatchdogThread* gpu_watchdog_thread, |
| 41 bool dead_on_arrival, | 41 bool dead_on_arrival, |
| 42 const gpu::GPUInfo& gpu_info, | 42 const gpu::GPUInfo& gpu_info, |
| 43 const DeferredMessages& deferred_messages); | 43 const DeferredMessages& deferred_messages); |
| 44 | 44 |
| 45 // For single-process mode. | 45 // For single-process mode. |
| 46 explicit GpuChildThread(const std::string& channel_id); | 46 explicit GpuChildThread(const std::string& channel_id); |
| 47 | 47 |
| 48 virtual ~GpuChildThread(); | 48 virtual ~GpuChildThread(); |
| 49 | 49 |
| 50 virtual void Shutdown() OVERRIDE; | 50 virtual void Shutdown() override; |
| 51 | 51 |
| 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 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(); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 93 | 93 |
| 94 // Whether the GPU thread is running in the browser process. | 94 // Whether the GPU thread is running in the browser process. |
| 95 bool in_browser_process_; | 95 bool in_browser_process_; |
| 96 | 96 |
| 97 DISALLOW_COPY_AND_ASSIGN(GpuChildThread); | 97 DISALLOW_COPY_AND_ASSIGN(GpuChildThread); |
| 98 }; | 98 }; |
| 99 | 99 |
| 100 } // namespace content | 100 } // namespace content |
| 101 | 101 |
| 102 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_ | 102 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_ |
| OLD | NEW |