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

Side by Side Diff: content/gpu/gpu_child_thread.h

Issue 9401025: Collect GPU info before enabling sandbox. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 10 months 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
« no previous file with comments | « no previous file | content/gpu/gpu_child_thread.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
(...skipping 15 matching lines...) Expand all
27 } 27 }
28 28
29 class GpuWatchdogThread; 29 class GpuWatchdogThread;
30 30
31 // The main thread of the GPU child process. There will only ever be one of 31 // The main thread of the GPU child process. There will only ever be one of
32 // these per process. It does process initialization and shutdown. It forwards 32 // these per process. It does process initialization and shutdown. It forwards
33 // IPC messages to GpuChannelManager, which is responsible for issuing rendering 33 // IPC messages to GpuChannelManager, which is responsible for issuing rendering
34 // commands to the GPU. 34 // commands to the GPU.
35 class GpuChildThread : public ChildThread { 35 class GpuChildThread : public ChildThread {
36 public: 36 public:
37 explicit GpuChildThread(bool dead_on_arrival); 37 explicit GpuChildThread(bool dead_on_arrival,
38 const content::GPUInfo& gpu_info);
38 39
39 // For single-process mode. 40 // For single-process mode.
40 explicit GpuChildThread(const std::string& channel_id); 41 explicit GpuChildThread(const std::string& channel_id);
41 42
42 virtual ~GpuChildThread(); 43 virtual ~GpuChildThread();
43 44
44 void Init(const base::Time& process_start_time); 45 void Init(const base::Time& process_start_time);
45 void StopWatchdog(); 46 void StopWatchdog();
46 47
47 // ChildThread overrides. 48 // ChildThread overrides.
(...skipping 30 matching lines...) Expand all
78 79
79 scoped_ptr<GpuChannelManager> gpu_channel_manager_; 80 scoped_ptr<GpuChannelManager> gpu_channel_manager_;
80 81
81 // Information about the GPU, such as device and vendor ID. 82 // Information about the GPU, such as device and vendor ID.
82 content::GPUInfo gpu_info_; 83 content::GPUInfo gpu_info_;
83 84
84 DISALLOW_COPY_AND_ASSIGN(GpuChildThread); 85 DISALLOW_COPY_AND_ASSIGN(GpuChildThread);
85 }; 86 };
86 87
87 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_ 88 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_
OLDNEW
« no previous file with comments | « no previous file | content/gpu/gpu_child_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698