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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 bool OnMessageReceived(const IPC::Message& message) override; | 172 bool OnMessageReceived(const IPC::Message& message) override; |
173 void OnChannelConnected(int32_t peer_pid) override; | 173 void OnChannelConnected(int32_t peer_pid) override; |
174 void OnProcessLaunched() override; | 174 void OnProcessLaunched() override; |
175 void OnProcessLaunchFailed() override; | 175 void OnProcessLaunchFailed() override; |
176 void OnProcessCrashed(int exit_code) override; | 176 void OnProcessCrashed(int exit_code) override; |
177 | 177 |
178 // Message handlers. | 178 // Message handlers. |
179 void OnInitialized(bool result, const gpu::GPUInfo& gpu_info); | 179 void OnInitialized(bool result, const gpu::GPUInfo& gpu_info); |
180 void OnChannelEstablished(const IPC::ChannelHandle& channel_handle); | 180 void OnChannelEstablished(const IPC::ChannelHandle& channel_handle); |
181 void OnGpuMemoryBufferCreated(const gfx::GpuMemoryBufferHandle& handle); | 181 void OnGpuMemoryBufferCreated(const gfx::GpuMemoryBufferHandle& handle); |
182 void OnDidCreateOffscreenContext(const GURL& url); | 182 void OnDidCreateOffscreenContext(const std::string& url); |
183 void OnDidLoseContext(bool offscreen, | 183 void OnDidLoseContext(bool offscreen, |
184 gpu::error::ContextLostReason reason, | 184 gpu::error::ContextLostReason reason, |
185 const GURL& url); | 185 const std::string& url); |
186 void OnDidDestroyOffscreenContext(const GURL& url); | 186 void OnDidDestroyOffscreenContext(const std::string& url); |
187 void OnGpuMemoryUmaStatsReceived(const GPUMemoryUmaStats& stats); | 187 void OnGpuMemoryUmaStatsReceived(const GPUMemoryUmaStats& stats); |
188 #if defined(OS_MACOSX) | 188 #if defined(OS_MACOSX) |
189 void OnAcceleratedSurfaceBuffersSwapped(const IPC::Message& message); | 189 void OnAcceleratedSurfaceBuffersSwapped(const IPC::Message& message); |
190 #endif | 190 #endif |
191 | 191 |
192 #if defined(OS_WIN) | 192 #if defined(OS_WIN) |
193 void OnAcceleratedSurfaceCreatedChildWindow( | 193 void OnAcceleratedSurfaceCreatedChildWindow( |
194 const gfx::PluginWindowHandle& parent_handle, | 194 const gfx::PluginWindowHandle& parent_handle, |
195 const gfx::PluginWindowHandle& window_handle); | 195 const gfx::PluginWindowHandle& window_handle); |
196 #endif | 196 #endif |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 // Browser-side Mojo endpoint which sets up a Mojo channel with the child | 284 // Browser-side Mojo endpoint which sets up a Mojo channel with the child |
285 // process and contains the browser's ServiceRegistry. | 285 // process and contains the browser's ServiceRegistry. |
286 scoped_ptr<MojoApplicationHost> mojo_application_host_; | 286 scoped_ptr<MojoApplicationHost> mojo_application_host_; |
287 | 287 |
288 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); | 288 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); |
289 }; | 289 }; |
290 | 290 |
291 } // namespace content | 291 } // namespace content |
292 | 292 |
293 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ | 293 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ |
OLD | NEW |