| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 63     GPU_PROCESS_KIND_UNSANDBOXED, | 63     GPU_PROCESS_KIND_UNSANDBOXED, | 
| 64     GPU_PROCESS_KIND_SANDBOXED, | 64     GPU_PROCESS_KIND_SANDBOXED, | 
| 65     GPU_PROCESS_KIND_COUNT | 65     GPU_PROCESS_KIND_COUNT | 
| 66   }; | 66   }; | 
| 67 | 67 | 
| 68   typedef base::Callback<void(const IPC::ChannelHandle&, const gpu::GPUInfo&)> | 68   typedef base::Callback<void(const IPC::ChannelHandle&, const gpu::GPUInfo&)> | 
| 69       EstablishChannelCallback; | 69       EstablishChannelCallback; | 
| 70 | 70 | 
| 71   struct EstablishChannelRequest { | 71   struct EstablishChannelRequest { | 
| 72     EstablishChannelRequest(); | 72     EstablishChannelRequest(); | 
|  | 73     EstablishChannelRequest(const EstablishChannelRequest& other); | 
| 73     ~EstablishChannelRequest(); | 74     ~EstablishChannelRequest(); | 
| 74     int32_t client_id; | 75     int32_t client_id; | 
| 75     EstablishChannelCallback callback; | 76     EstablishChannelCallback callback; | 
| 76   }; | 77   }; | 
| 77 | 78 | 
| 78   typedef base::Callback<void(const gfx::GpuMemoryBufferHandle& handle)> | 79   typedef base::Callback<void(const gfx::GpuMemoryBufferHandle& handle)> | 
| 79       CreateGpuMemoryBufferCallback; | 80       CreateGpuMemoryBufferCallback; | 
| 80 | 81 | 
| 81   static bool gpu_enabled() { return gpu_enabled_; } | 82   static bool gpu_enabled() { return gpu_enabled_; } | 
| 82   static int gpu_crash_count() { return gpu_crash_count_; } | 83   static int gpu_crash_count() { return gpu_crash_count_; } | 
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 292   // 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 | 
| 293   // process and contains the browser's ServiceRegistry. | 294   // process and contains the browser's ServiceRegistry. | 
| 294   scoped_ptr<MojoApplicationHost> mojo_application_host_; | 295   scoped_ptr<MojoApplicationHost> mojo_application_host_; | 
| 295 | 296 | 
| 296   DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); | 297   DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); | 
| 297 }; | 298 }; | 
| 298 | 299 | 
| 299 }  // namespace content | 300 }  // namespace content | 
| 300 | 301 | 
| 301 #endif  // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ | 302 #endif  // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ | 
| OLD | NEW | 
|---|