| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_BROWSER_GPU_PROCESS_HOST_H_ | 5 #ifndef CHROME_BROWSER_GPU_PROCESS_HOST_H_ |
| 6 #define CHROME_BROWSER_GPU_PROCESS_HOST_H_ | 6 #define CHROME_BROWSER_GPU_PROCESS_HOST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <queue> | 9 #include <queue> |
| 10 | 10 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 bool Init(); | 75 bool Init(); |
| 76 | 76 |
| 77 void OnControlMessageReceived(const IPC::Message& message); | 77 void OnControlMessageReceived(const IPC::Message& message); |
| 78 | 78 |
| 79 // Message handlers. | 79 // Message handlers. |
| 80 void OnChannelEstablished(const IPC::ChannelHandle& channel_handle, | 80 void OnChannelEstablished(const IPC::ChannelHandle& channel_handle, |
| 81 const GPUInfo& gpu_info); | 81 const GPUInfo& gpu_info); |
| 82 void OnSynchronizeReply(); | 82 void OnSynchronizeReply(); |
| 83 #if defined(OS_LINUX) | 83 #if defined(OS_LINUX) |
| 84 void OnGetViewXID(gfx::NativeViewId id, IPC::Message* reply_msg); | 84 void OnGetViewXID(gfx::NativeViewId id, IPC::Message* reply_msg); |
| 85 void OnResizeXID(unsigned long xid, int32 width, int32 height, |
| 86 IPC::Message* reply_msg); |
| 85 #elif defined(OS_MACOSX) | 87 #elif defined(OS_MACOSX) |
| 86 void OnAcceleratedSurfaceSetIOSurface( | 88 void OnAcceleratedSurfaceSetIOSurface( |
| 87 const GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params& params); | 89 const GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params& params); |
| 88 void OnAcceleratedSurfaceBuffersSwapped(int32 renderer_id, | 90 void OnAcceleratedSurfaceBuffersSwapped(int32 renderer_id, |
| 89 int32 render_view_id, | 91 int32 render_view_id, |
| 90 gfx::PluginWindowHandle window, | 92 gfx::PluginWindowHandle window, |
| 91 uint64 surface_id); | 93 uint64 surface_id); |
| 92 #endif | 94 #endif |
| 93 | 95 |
| 94 // Sends the response for establish channel request to the renderer. | 96 // Sends the response for establish channel request to the renderer. |
| (...skipping 19 matching lines...) Expand all Loading... |
| 114 // the GPU process, but haven't heard back about yet. | 116 // the GPU process, but haven't heard back about yet. |
| 115 std::queue<ChannelRequest> sent_requests_; | 117 std::queue<ChannelRequest> sent_requests_; |
| 116 | 118 |
| 117 // The pending synchronization requests we need to reply to. | 119 // The pending synchronization requests we need to reply to. |
| 118 std::queue<SynchronizationRequest> queued_synchronization_replies_; | 120 std::queue<SynchronizationRequest> queued_synchronization_replies_; |
| 119 | 121 |
| 120 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); | 122 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); |
| 121 }; | 123 }; |
| 122 | 124 |
| 123 #endif // CHROME_BROWSER_GPU_PROCESS_HOST_H_ | 125 #endif // CHROME_BROWSER_GPU_PROCESS_HOST_H_ |
| OLD | NEW |