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_BROWSER_GPU_GPU_PROCESS_HOST_H_ | 5 #ifndef CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ |
6 #define CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ | 6 #define CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 // Whether the GPU process is valid, set to false after Send() failed. | 242 // Whether the GPU process is valid, set to false after Send() failed. |
243 bool valid_; | 243 bool valid_; |
244 | 244 |
245 // Whether we are running a GPU thread inside the browser process instead | 245 // Whether we are running a GPU thread inside the browser process instead |
246 // of a separate GPU process. | 246 // of a separate GPU process. |
247 bool in_process_; | 247 bool in_process_; |
248 | 248 |
249 bool swiftshader_rendering_; | 249 bool swiftshader_rendering_; |
250 GpuProcessKind kind_; | 250 GpuProcessKind kind_; |
251 | 251 |
252 // The GPUInfo for the connected process. Only valid after initialized_ is | |
253 // true. | |
254 gpu::GPUInfo gpu_info_; | |
255 | |
256 std::unique_ptr<base::Thread> in_process_gpu_thread_; | 252 std::unique_ptr<base::Thread> in_process_gpu_thread_; |
257 | 253 |
258 // Whether we actually launched a GPU process. | 254 // Whether we actually launched a GPU process. |
259 bool process_launched_; | 255 bool process_launched_; |
260 | 256 |
261 // Whether the GPU process successfully initialized. | 257 // Whether the GPU process successfully initialized. |
262 bool initialized_; | 258 bool initialized_; |
263 | 259 |
264 // Time Init started. Used to log total GPU process startup time to UMA. | 260 // Time Init started. Used to log total GPU process startup time to UMA. |
265 base::TimeTicks init_start_time_; | 261 base::TimeTicks init_start_time_; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 gpu::GpuProcessHostActivityFlags activity_flags_; | 293 gpu::GpuProcessHostActivityFlags activity_flags_; |
298 | 294 |
299 base::WeakPtrFactory<GpuProcessHost> weak_ptr_factory_; | 295 base::WeakPtrFactory<GpuProcessHost> weak_ptr_factory_; |
300 | 296 |
301 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); | 297 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); |
302 }; | 298 }; |
303 | 299 |
304 } // namespace content | 300 } // namespace content |
305 | 301 |
306 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ | 302 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ |
OLD | NEW |