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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
90 void OnGraphicsInfoCollected(const GPUInfo& gpu_info); | 90 void OnGraphicsInfoCollected(const GPUInfo& gpu_info); |
91 #if defined(OS_LINUX) | 91 #if defined(OS_LINUX) |
92 void OnGetViewXID(gfx::NativeViewId id, IPC::Message* reply_msg); | 92 void OnGetViewXID(gfx::NativeViewId id, IPC::Message* reply_msg); |
93 #elif defined(OS_MACOSX) | 93 #elif defined(OS_MACOSX) |
94 void OnAcceleratedSurfaceSetIOSurface( | 94 void OnAcceleratedSurfaceSetIOSurface( |
95 const GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params& params); | 95 const GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params& params); |
96 void OnAcceleratedSurfaceBuffersSwapped(int32 renderer_id, | 96 void OnAcceleratedSurfaceBuffersSwapped(int32 renderer_id, |
97 int32 render_view_id, | 97 int32 render_view_id, |
98 gfx::PluginWindowHandle window, | 98 gfx::PluginWindowHandle window, |
99 uint64 surface_id); | 99 uint64 surface_id); |
100 #elif defined(OS_WIN) | |
101 void OnCreateCompositorHostWindow(int32 renderer_id, | |
jam
2010/11/12 18:08:00
nit: I'm curious why int32 is used, instead of jus
nduca
2010/11/12 19:45:32
Neat discovery. I chased this a bit deeper and it
jam
2010/11/12 20:34:41
the IDMap can be using int32, but almost everywher
nduca
2010/11/19 19:02:29
So, for this CL, I will leave the IPC handlers (On
jam
2010/11/20 00:37:00
I feel kind of strongly that these should be ints,
nduca
2010/11/22 22:37:44
Done.
| |
102 int32 render_view_id, | |
103 IPC::Message* reply_message); | |
104 void OnScheduleComposite(int32 renderer_id, int32 render_view_id); | |
100 #endif | 105 #endif |
101 | 106 |
102 void ReplyToRenderer(const IPC::ChannelHandle& channel, | 107 void ReplyToRenderer(const IPC::ChannelHandle& channel, |
103 const GPUInfo& gpu_info, | 108 const GPUInfo& gpu_info, |
104 ResourceMessageFilter* filter); | 109 ResourceMessageFilter* filter); |
105 | 110 |
106 // ResourceDispatcherHost::Receiver implementation: | 111 // ResourceDispatcherHost::Receiver implementation: |
107 virtual URLRequestContext* GetRequestContext( | 112 virtual URLRequestContext* GetRequestContext( |
108 uint32 request_id, | 113 uint32 request_id, |
109 const ViewHostMsg_Resource_Request& request_data); | 114 const ViewHostMsg_Resource_Request& request_data); |
(...skipping 10 matching lines...) Expand all Loading... | |
120 // the GPU process, but haven't heard back about yet. | 125 // the GPU process, but haven't heard back about yet. |
121 std::queue<ChannelRequest> sent_requests_; | 126 std::queue<ChannelRequest> sent_requests_; |
122 | 127 |
123 // The pending synchronization requests we need to reply to. | 128 // The pending synchronization requests we need to reply to. |
124 std::queue<SynchronizationRequest> queued_synchronization_replies_; | 129 std::queue<SynchronizationRequest> queued_synchronization_replies_; |
125 | 130 |
126 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); | 131 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); |
127 }; | 132 }; |
128 | 133 |
129 #endif // CHROME_BROWSER_GPU_PROCESS_HOST_H_ | 134 #endif // CHROME_BROWSER_GPU_PROCESS_HOST_H_ |
OLD | NEW |