| 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 <map> | 8 #include <map> |
| 9 #include <queue> | 9 #include <queue> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 // Whether the GPU process is valid, set to false after Send() failed. | 207 // Whether the GPU process is valid, set to false after Send() failed. |
| 208 bool valid_; | 208 bool valid_; |
| 209 | 209 |
| 210 // Whether we are running a GPU thread inside the browser process instead | 210 // Whether we are running a GPU thread inside the browser process instead |
| 211 // of a separate GPU process. | 211 // of a separate GPU process. |
| 212 bool in_process_; | 212 bool in_process_; |
| 213 | 213 |
| 214 bool swiftshader_rendering_; | 214 bool swiftshader_rendering_; |
| 215 GpuProcessKind kind_; | 215 GpuProcessKind kind_; |
| 216 | 216 |
| 217 #if !defined(CHROME_MULTIPLE_DLL) |
| 217 scoped_ptr<GpuMainThread> in_process_gpu_thread_; | 218 scoped_ptr<GpuMainThread> in_process_gpu_thread_; |
| 219 #endif |
| 218 | 220 |
| 219 // Whether we actually launched a GPU process. | 221 // Whether we actually launched a GPU process. |
| 220 bool process_launched_; | 222 bool process_launched_; |
| 221 | 223 |
| 222 // Whether the GPU process successfully initialized. | 224 // Whether the GPU process successfully initialized. |
| 223 bool initialized_; | 225 bool initialized_; |
| 224 | 226 |
| 225 // Time Init started. Used to log total GPU process startup time to UMA. | 227 // Time Init started. Used to log total GPU process startup time to UMA. |
| 226 base::TimeTicks init_start_time_; | 228 base::TimeTicks init_start_time_; |
| 227 | 229 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 typedef std::multimap<int, scoped_refptr<GpuSurfaceTracker::SurfaceRef> > | 266 typedef std::multimap<int, scoped_refptr<GpuSurfaceTracker::SurfaceRef> > |
| 265 SurfaceRefMap; | 267 SurfaceRefMap; |
| 266 SurfaceRefMap surface_refs_; | 268 SurfaceRefMap surface_refs_; |
| 267 | 269 |
| 268 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); | 270 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); |
| 269 }; | 271 }; |
| 270 | 272 |
| 271 } // namespace content | 273 } // namespace content |
| 272 | 274 |
| 273 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ | 275 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ |
| OLD | NEW |