Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(123)

Side by Side Diff: chrome/gpu/gpu_thread.h

Issue 4860001: Collect DirectX diagnostic information asynchronously.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698