| 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_UI_SHIM_H_ | 5 #ifndef CHROME_BROWSER_GPU_PROCESS_HOST_UI_SHIM_H_ |
| 6 #define CHROME_BROWSER_GPU_PROCESS_HOST_UI_SHIM_H_ | 6 #define CHROME_BROWSER_GPU_PROCESS_HOST_UI_SHIM_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 // This class lives on the UI thread and supports classes like the | 9 // This class lives on the UI thread and supports classes like the |
| 10 // BackingStoreProxy, which must live on the UI thread. The IO thread | 10 // BackingStoreProxy, which must live on the UI thread. The IO thread |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 | 136 |
| 137 // Message handlers. | 137 // Message handlers. |
| 138 bool OnControlMessageReceived(const IPC::Message& message); | 138 bool OnControlMessageReceived(const IPC::Message& message); |
| 139 | 139 |
| 140 void OnChannelEstablished(const IPC::ChannelHandle& channel_handle, | 140 void OnChannelEstablished(const IPC::ChannelHandle& channel_handle, |
| 141 const GPUInfo& gpu_info); | 141 const GPUInfo& gpu_info); |
| 142 void OnCommandBufferCreated(const int32 route_id); | 142 void OnCommandBufferCreated(const int32 route_id); |
| 143 void OnDestroyCommandBuffer(gfx::PluginWindowHandle window, | 143 void OnDestroyCommandBuffer(gfx::PluginWindowHandle window, |
| 144 int32 renderer_id, int32 render_view_id); | 144 int32 renderer_id, int32 render_view_id); |
| 145 void OnGraphicsInfoCollected(const GPUInfo& gpu_info); | 145 void OnGraphicsInfoCollected(const GPUInfo& gpu_info); |
| 146 void OnPreliminaryGraphicsInfoCollected( | |
| 147 const GPUInfo& gpu_info, IPC::Message* reply_msg); | |
| 148 void OnLogMessage(int level, const std::string& header, | 146 void OnLogMessage(int level, const std::string& header, |
| 149 const std::string& message); | 147 const std::string& message); |
| 150 void OnSynchronizeReply(); | 148 void OnSynchronizeReply(); |
| 151 #if defined(OS_LINUX) | 149 #if defined(OS_LINUX) |
| 152 void OnResizeXID(unsigned long xid, gfx::Size size, IPC::Message* reply_msg); | 150 void OnResizeXID(unsigned long xid, gfx::Size size, IPC::Message* reply_msg); |
| 153 #elif defined(OS_MACOSX) | 151 #elif defined(OS_MACOSX) |
| 154 void OnAcceleratedSurfaceSetIOSurface( | 152 void OnAcceleratedSurfaceSetIOSurface( |
| 155 const GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params& params); | 153 const GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params& params); |
| 156 void OnAcceleratedSurfaceBuffersSwapped( | 154 void OnAcceleratedSurfaceBuffersSwapped( |
| 157 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params); | 155 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 185 // Encapsulates surfaces that we acquire when creating view command buffers. | 183 // Encapsulates surfaces that we acquire when creating view command buffers. |
| 186 // We assume that a render view has at most 1 such surface associated | 184 // We assume that a render view has at most 1 such surface associated |
| 187 // with it. | 185 // with it. |
| 188 class ViewSurface; | 186 class ViewSurface; |
| 189 std::map<ViewID, linked_ptr<ViewSurface> > acquired_surfaces_; | 187 std::map<ViewID, linked_ptr<ViewSurface> > acquired_surfaces_; |
| 190 | 188 |
| 191 }; | 189 }; |
| 192 | 190 |
| 193 #endif // CHROME_BROWSER_GPU_PROCESS_HOST_UI_SHIM_H_ | 191 #endif // CHROME_BROWSER_GPU_PROCESS_HOST_UI_SHIM_H_ |
| 194 | 192 |
| OLD | NEW |