| 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 <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 | 43 |
| 44 private: | 44 private: |
| 45 // ChildThread overrides. | 45 // ChildThread overrides. |
| 46 virtual bool OnControlMessageReceived(const IPC::Message& msg); | 46 virtual bool OnControlMessageReceived(const IPC::Message& msg); |
| 47 | 47 |
| 48 // Message handlers. | 48 // Message handlers. |
| 49 void OnInitialize(); | 49 void OnInitialize(); |
| 50 void OnEstablishChannel(int renderer_id); | 50 void OnEstablishChannel(int renderer_id); |
| 51 void OnCloseChannel(const IPC::ChannelHandle& channel_handle); | 51 void OnCloseChannel(const IPC::ChannelHandle& channel_handle); |
| 52 void OnSynchronize(); | 52 void OnSynchronize(); |
| 53 void OnCollectGraphicsInfo(GPUInfo::Level level); | 53 void OnCollectGraphicsInfo(); |
| 54 #if defined(OS_MACOSX) | 54 #if defined(OS_MACOSX) |
| 55 void OnAcceleratedSurfaceBuffersSwappedACK( | 55 void OnAcceleratedSurfaceBuffersSwappedACK( |
| 56 int renderer_id, int32 route_id, uint64 swap_buffers_count); | 56 int renderer_id, int32 route_id, uint64 swap_buffers_count); |
| 57 void OnDidDestroyAcceleratedSurface(int renderer_id, int32 renderer_route_id); | 57 void OnDidDestroyAcceleratedSurface(int renderer_id, int32 renderer_route_id); |
| 58 #endif | 58 #endif |
| 59 void OnCrash(); | 59 void OnCrash(); |
| 60 void OnHang(); | 60 void OnHang(); |
| 61 | 61 |
| 62 #if defined(OS_WIN) | 62 #if defined(OS_WIN) |
| 63 static void CollectDxDiagnostics(GpuThread* thread); | 63 static void CollectDxDiagnostics(GpuThread* thread); |
| 64 static void SetDxDiagnostics(GpuThread* thread, const DxDiagNode& node); | 64 static void SetDxDiagnostics(GpuThread* thread, const DxDiagNode& node); |
| 65 #endif | 65 #endif |
| 66 | 66 |
| 67 base::Time process_start_time_; | 67 base::Time process_start_time_; |
| 68 scoped_refptr<GpuWatchdogThread> watchdog_thread_; | 68 scoped_refptr<GpuWatchdogThread> watchdog_thread_; |
| 69 | 69 |
| 70 typedef base::hash_map<int, scoped_refptr<GpuChannel> > GpuChannelMap; | 70 typedef base::hash_map<int, scoped_refptr<GpuChannel> > GpuChannelMap; |
| 71 GpuChannelMap gpu_channels_; | 71 GpuChannelMap gpu_channels_; |
| 72 | 72 |
| 73 // Information about the GPU, such as device and vendor ID. | 73 // Information about the GPU, such as device and vendor ID. |
| 74 GPUInfo gpu_info_; | 74 GPUInfo gpu_info_; |
| 75 | 75 |
| 76 DISALLOW_COPY_AND_ASSIGN(GpuThread); | 76 DISALLOW_COPY_AND_ASSIGN(GpuThread); |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 #endif // CHROME_GPU_GPU_THREAD_H_ | 79 #endif // CHROME_GPU_GPU_THREAD_H_ |
| OLD | NEW |