| 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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 void OnGpuMemoryBufferCreated(const gfx::GpuMemoryBufferHandle& handle); | 194 void OnGpuMemoryBufferCreated(const gfx::GpuMemoryBufferHandle& handle); |
| 195 #if defined(OS_ANDROID) | 195 #if defined(OS_ANDROID) |
| 196 void OnDestroyingVideoSurfaceAck(int surface_id); | 196 void OnDestroyingVideoSurfaceAck(int surface_id); |
| 197 #endif | 197 #endif |
| 198 void OnDidCreateOffscreenContext(const GURL& url); | 198 void OnDidCreateOffscreenContext(const GURL& url); |
| 199 void OnDidLoseContext(bool offscreen, | 199 void OnDidLoseContext(bool offscreen, |
| 200 gpu::error::ContextLostReason reason, | 200 gpu::error::ContextLostReason reason, |
| 201 const GURL& url); | 201 const GURL& url); |
| 202 void OnDidDestroyOffscreenContext(const GURL& url); | 202 void OnDidDestroyOffscreenContext(const GURL& url); |
| 203 void OnGpuMemoryUmaStatsReceived(const gpu::GPUMemoryUmaStats& stats); | 203 void OnGpuMemoryUmaStatsReceived(const gpu::GPUMemoryUmaStats& stats); |
| 204 #if defined(OS_MACOSX) | |
| 205 void OnAcceleratedSurfaceBuffersSwapped(const IPC::Message& message); | |
| 206 #endif | |
| 207 | 204 |
| 208 #if defined(OS_WIN) | 205 #if defined(OS_WIN) |
| 209 void OnAcceleratedSurfaceCreatedChildWindow( | 206 void OnAcceleratedSurfaceCreatedChildWindow( |
| 210 gpu::SurfaceHandle parent_handle, | 207 gpu::SurfaceHandle parent_handle, |
| 211 gpu::SurfaceHandle window_handle); | 208 gpu::SurfaceHandle window_handle); |
| 212 #endif | 209 #endif |
| 213 | 210 |
| 214 void CreateChannelCache(int32_t client_id); | 211 void CreateChannelCache(int32_t client_id); |
| 215 void OnDestroyChannel(int32_t client_id); | 212 void OnDestroyChannel(int32_t client_id); |
| 216 void OnCacheShader(int32_t client_id, | 213 void OnCacheShader(int32_t client_id, |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 // Browser-side Mojo endpoint which sets up a Mojo channel with the child | 301 // Browser-side Mojo endpoint which sets up a Mojo channel with the child |
| 305 // process and contains the browser's ServiceRegistry. | 302 // process and contains the browser's ServiceRegistry. |
| 306 std::unique_ptr<MojoApplicationHost> mojo_application_host_; | 303 std::unique_ptr<MojoApplicationHost> mojo_application_host_; |
| 307 | 304 |
| 308 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); | 305 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); |
| 309 }; | 306 }; |
| 310 | 307 |
| 311 } // namespace content | 308 } // namespace content |
| 312 | 309 |
| 313 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ | 310 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ |
| OLD | NEW |