| 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 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 // Whether the GPU process is valid, set to false after Send() failed. | 248 // Whether the GPU process is valid, set to false after Send() failed. |
| 249 bool valid_; | 249 bool valid_; |
| 250 | 250 |
| 251 // Whether we are running a GPU thread inside the browser process instead | 251 // Whether we are running a GPU thread inside the browser process instead |
| 252 // of a separate GPU process. | 252 // of a separate GPU process. |
| 253 bool in_process_; | 253 bool in_process_; |
| 254 | 254 |
| 255 bool swiftshader_rendering_; | 255 bool swiftshader_rendering_; |
| 256 GpuProcessKind kind_; | 256 GpuProcessKind kind_; |
| 257 | 257 |
| 258 // The GPUInfo for the connected process. Only valid after initialized_ is |
| 259 // true. |
| 260 gpu::GPUInfo gpu_info_; |
| 261 |
| 258 scoped_ptr<base::Thread> in_process_gpu_thread_; | 262 scoped_ptr<base::Thread> in_process_gpu_thread_; |
| 259 | 263 |
| 260 // Whether we actually launched a GPU process. | 264 // Whether we actually launched a GPU process. |
| 261 bool process_launched_; | 265 bool process_launched_; |
| 262 | 266 |
| 263 // Whether the GPU process successfully initialized. | 267 // Whether the GPU process successfully initialized. |
| 264 bool initialized_; | 268 bool initialized_; |
| 265 | 269 |
| 266 // Time Init started. Used to log total GPU process startup time to UMA. | 270 // Time Init started. Used to log total GPU process startup time to UMA. |
| 267 base::TimeTicks init_start_time_; | 271 base::TimeTicks init_start_time_; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 // Browser-side Mojo endpoint which sets up a Mojo channel with the child | 304 // Browser-side Mojo endpoint which sets up a Mojo channel with the child |
| 301 // process and contains the browser's ServiceRegistry. | 305 // process and contains the browser's ServiceRegistry. |
| 302 scoped_ptr<MojoApplicationHost> mojo_application_host_; | 306 scoped_ptr<MojoApplicationHost> mojo_application_host_; |
| 303 | 307 |
| 304 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); | 308 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); |
| 305 }; | 309 }; |
| 306 | 310 |
| 307 } // namespace content | 311 } // namespace content |
| 308 | 312 |
| 309 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ | 313 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ |
| OLD | NEW |