| 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 14 matching lines...) Expand all Loading... |
| 25 #include "content/public/browser/gpu_data_manager.h" | 25 #include "content/public/browser/gpu_data_manager.h" |
| 26 #include "gpu/command_buffer/common/constants.h" | 26 #include "gpu/command_buffer/common/constants.h" |
| 27 #include "gpu/config/gpu_info.h" | 27 #include "gpu/config/gpu_info.h" |
| 28 #include "gpu/ipc/common/surface_handle.h" | 28 #include "gpu/ipc/common/surface_handle.h" |
| 29 #include "ipc/ipc_sender.h" | 29 #include "ipc/ipc_sender.h" |
| 30 #include "ipc/message_filter.h" | 30 #include "ipc/message_filter.h" |
| 31 #include "ui/gfx/geometry/size.h" | 31 #include "ui/gfx/geometry/size.h" |
| 32 #include "ui/gfx/gpu_memory_buffer.h" | 32 #include "ui/gfx/gpu_memory_buffer.h" |
| 33 #include "url/gurl.h" | 33 #include "url/gurl.h" |
| 34 | 34 |
| 35 struct GPUCreateCommandBufferConfig; | |
| 36 | |
| 37 namespace base { | 35 namespace base { |
| 38 class Thread; | 36 class Thread; |
| 39 } | 37 } |
| 40 | 38 |
| 41 namespace IPC { | 39 namespace IPC { |
| 42 struct ChannelHandle; | 40 struct ChannelHandle; |
| 43 } | 41 } |
| 44 | 42 |
| 45 namespace gpu { | 43 namespace gpu { |
| 46 struct GpuPreferences; | 44 struct GpuPreferences; |
| 47 struct SyncToken; | 45 struct SyncToken; |
| 48 } | 46 } |
| 49 | 47 |
| 50 namespace service_manager { | 48 namespace service_manager { |
| 51 class InterfaceProvider; | 49 class InterfaceProvider; |
| 52 } | 50 } |
| 53 | 51 |
| 54 namespace content { | 52 namespace content { |
| 55 class BrowserChildProcessHostImpl; | 53 class BrowserChildProcessHostImpl; |
| 56 class GpuMainThread; | 54 class GpuMainThread; |
| 57 class InProcessChildThreadParams; | 55 class InProcessChildThreadParams; |
| 58 class RenderWidgetHostViewFrameSubscriber; | |
| 59 class ShaderDiskCache; | 56 class ShaderDiskCache; |
| 60 | 57 |
| 61 typedef base::Thread* (*GpuMainThreadFactoryFunction)( | 58 typedef base::Thread* (*GpuMainThreadFactoryFunction)( |
| 62 const InProcessChildThreadParams&, const gpu::GpuPreferences&); | 59 const InProcessChildThreadParams&, const gpu::GpuPreferences&); |
| 63 | 60 |
| 64 class GpuProcessHost : public BrowserChildProcessHostDelegate, | 61 class GpuProcessHost : public BrowserChildProcessHostDelegate, |
| 65 public IPC::Sender, | 62 public IPC::Sender, |
| 66 public base::NonThreadSafe { | 63 public base::NonThreadSafe { |
| 67 public: | 64 public: |
| 68 enum GpuProcessKind { | 65 enum GpuProcessKind { |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 ClientIdToShaderCacheMap client_id_to_shader_cache_; | 288 ClientIdToShaderCacheMap client_id_to_shader_cache_; |
| 292 | 289 |
| 293 std::string shader_prefix_key_; | 290 std::string shader_prefix_key_; |
| 294 | 291 |
| 295 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); | 292 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); |
| 296 }; | 293 }; |
| 297 | 294 |
| 298 } // namespace content | 295 } // namespace content |
| 299 | 296 |
| 300 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ | 297 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ |
| OLD | NEW |