| 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 <string> | 10 #include <string> |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 #include "ipc/ipc_sender.h" | 21 #include "ipc/ipc_sender.h" |
| 22 #include "ui/gfx/native_widget_types.h" | 22 #include "ui/gfx/native_widget_types.h" |
| 23 #include "ui/gfx/size.h" | 23 #include "ui/gfx/size.h" |
| 24 | 24 |
| 25 class GpuMainThread; | 25 class GpuMainThread; |
| 26 struct GPUCreateCommandBufferConfig; | 26 struct GPUCreateCommandBufferConfig; |
| 27 struct GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params; | 27 struct GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params; |
| 28 struct GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params; | 28 struct GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params; |
| 29 struct GpuHostMsg_AcceleratedSurfaceRelease_Params; | 29 struct GpuHostMsg_AcceleratedSurfaceRelease_Params; |
| 30 | 30 |
| 31 namespace content { |
| 31 class BrowserChildProcessHostImpl; | 32 class BrowserChildProcessHostImpl; |
| 33 } |
| 32 | 34 |
| 33 namespace IPC { | 35 namespace IPC { |
| 34 struct ChannelHandle; | 36 struct ChannelHandle; |
| 35 } | 37 } |
| 36 | 38 |
| 37 class GpuProcessHost : public content::BrowserChildProcessHostDelegate, | 39 class GpuProcessHost : public content::BrowserChildProcessHostDelegate, |
| 38 public IPC::Sender, | 40 public IPC::Sender, |
| 39 public base::NonThreadSafe { | 41 public base::NonThreadSafe { |
| 40 public: | 42 public: |
| 41 enum GpuProcessKind { | 43 enum GpuProcessKind { |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 // Time Init started. Used to log total GPU process startup time to UMA. | 212 // Time Init started. Used to log total GPU process startup time to UMA. |
| 211 base::TimeTicks init_start_time_; | 213 base::TimeTicks init_start_time_; |
| 212 | 214 |
| 213 // Master switch for enabling/disabling GPU acceleration for the current | 215 // Master switch for enabling/disabling GPU acceleration for the current |
| 214 // browser session. It does not change the acceleration settings for | 216 // browser session. It does not change the acceleration settings for |
| 215 // existing tabs, just the future ones. | 217 // existing tabs, just the future ones. |
| 216 static bool gpu_enabled_; | 218 static bool gpu_enabled_; |
| 217 | 219 |
| 218 static bool hardware_gpu_enabled_; | 220 static bool hardware_gpu_enabled_; |
| 219 | 221 |
| 220 scoped_ptr<BrowserChildProcessHostImpl> process_; | 222 scoped_ptr<content::BrowserChildProcessHostImpl> process_; |
| 221 | 223 |
| 222 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); | 224 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); |
| 223 }; | 225 }; |
| 224 | 226 |
| 225 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ | 227 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ |
| OLD | NEW |