OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_GPU_GPU_THREAD_H_ | 5 #ifndef CHROME_GPU_GPU_THREAD_H_ |
6 #define CHROME_GPU_GPU_THREAD_H_ | 6 #define CHROME_GPU_GPU_THREAD_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 // ChildThread overrides. | 31 // ChildThread overrides. |
32 virtual void OnControlMessageReceived(const IPC::Message& msg); | 32 virtual void OnControlMessageReceived(const IPC::Message& msg); |
33 | 33 |
34 // Message handlers. | 34 // Message handlers. |
35 void OnEstablishChannel(int renderer_id); | 35 void OnEstablishChannel(int renderer_id); |
36 void OnSynchronize(); | 36 void OnSynchronize(); |
37 void OnCollectGraphicsInfo(); | 37 void OnCollectGraphicsInfo(); |
38 void OnCrash(); | 38 void OnCrash(); |
39 void OnHang(); | 39 void OnHang(); |
40 | 40 |
| 41 #if defined(OS_WIN) |
| 42 static void CollectDxDiagnostics(GpuThread* thread); |
| 43 static void SetDxDiagnostics(GpuThread* thread, const DxDiagNode& node); |
| 44 #endif |
| 45 |
41 typedef base::hash_map<int, scoped_refptr<GpuChannel> > GpuChannelMap; | 46 typedef base::hash_map<int, scoped_refptr<GpuChannel> > GpuChannelMap; |
42 GpuChannelMap gpu_channels_; | 47 GpuChannelMap gpu_channels_; |
43 | 48 |
44 // Information about the GPU, such as device and vendor ID. | 49 // Information about the GPU, such as device and vendor ID. |
45 GPUInfo gpu_info_; | 50 GPUInfo gpu_info_; |
46 | 51 |
47 DISALLOW_COPY_AND_ASSIGN(GpuThread); | 52 DISALLOW_COPY_AND_ASSIGN(GpuThread); |
48 }; | 53 }; |
49 | 54 |
50 #endif // CHROME_GPU_GPU_THREAD_H_ | 55 #endif // CHROME_GPU_GPU_THREAD_H_ |
OLD | NEW |