| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 | 42 |
| 43 namespace gpu { | 43 namespace gpu { |
| 44 struct GpuPreferences; | 44 struct GpuPreferences; |
| 45 struct SyncToken; | 45 struct SyncToken; |
| 46 } | 46 } |
| 47 | 47 |
| 48 namespace content { | 48 namespace content { |
| 49 class BrowserChildProcessHostImpl; | 49 class BrowserChildProcessHostImpl; |
| 50 class GpuMainThread; | 50 class GpuMainThread; |
| 51 class InProcessChildThreadParams; | 51 class InProcessChildThreadParams; |
| 52 class MojoApplicationHost; | 52 class MojoChildConnection; |
| 53 class RenderWidgetHostViewFrameSubscriber; | 53 class RenderWidgetHostViewFrameSubscriber; |
| 54 class ShaderDiskCache; | 54 class ShaderDiskCache; |
| 55 | 55 |
| 56 typedef base::Thread* (*GpuMainThreadFactoryFunction)( | 56 typedef base::Thread* (*GpuMainThreadFactoryFunction)( |
| 57 const InProcessChildThreadParams&, const gpu::GpuPreferences&); | 57 const InProcessChildThreadParams&, const gpu::GpuPreferences&); |
| 58 | 58 |
| 59 class GpuProcessHost : public BrowserChildProcessHostDelegate, | 59 class GpuProcessHost : public BrowserChildProcessHostDelegate, |
| 60 public IPC::Sender, | 60 public IPC::Sender, |
| 61 public base::NonThreadSafe { | 61 public base::NonThreadSafe { |
| 62 public: | 62 public: |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 | 286 |
| 287 typedef std::map<int32_t, scoped_refptr<ShaderDiskCache>> | 287 typedef std::map<int32_t, scoped_refptr<ShaderDiskCache>> |
| 288 ClientIdToShaderCacheMap; | 288 ClientIdToShaderCacheMap; |
| 289 ClientIdToShaderCacheMap client_id_to_shader_cache_; | 289 ClientIdToShaderCacheMap client_id_to_shader_cache_; |
| 290 | 290 |
| 291 std::string shader_prefix_key_; | 291 std::string shader_prefix_key_; |
| 292 | 292 |
| 293 // Browser-side Mojo endpoint which sets up a Mojo channel with the child | 293 // Browser-side Mojo endpoint which sets up a Mojo channel with the child |
| 294 // process and contains the browser's InterfaceRegistry. | 294 // process and contains the browser's InterfaceRegistry. |
| 295 const std::string child_token_; | 295 const std::string child_token_; |
| 296 std::unique_ptr<MojoApplicationHost> mojo_application_host_; | 296 std::unique_ptr<MojoChildConnection> mojo_child_connection_; |
| 297 | 297 |
| 298 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); | 298 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); |
| 299 }; | 299 }; |
| 300 | 300 |
| 301 } // namespace content | 301 } // namespace content |
| 302 | 302 |
| 303 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ | 303 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ |
| OLD | NEW |