| 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 | 134 |
| 135 // Message handlers. | 135 // Message handlers. |
| 136 bool OnControlMessageReceived(const IPC::Message& message); | 136 bool OnControlMessageReceived(const IPC::Message& message); |
| 137 | 137 |
| 138 void OnChannelEstablished(const IPC::ChannelHandle& channel_handle, | 138 void OnChannelEstablished(const IPC::ChannelHandle& channel_handle, |
| 139 const GPUInfo& gpu_info); | 139 const GPUInfo& gpu_info); |
| 140 void OnCommandBufferCreated(const int32 route_id); | 140 void OnCommandBufferCreated(const int32 route_id); |
| 141 void OnDestroyCommandBuffer(gfx::PluginWindowHandle window, | 141 void OnDestroyCommandBuffer(gfx::PluginWindowHandle window, |
| 142 int32 renderer_id, int32 render_view_id); | 142 int32 renderer_id, int32 render_view_id); |
| 143 void OnGraphicsInfoCollected(const GPUInfo& gpu_info); | 143 void OnGraphicsInfoCollected(const GPUInfo& gpu_info); |
| 144 void OnGraphicsInfoCollectedSafe( |
| 145 const GPUInfo& gpu_info, IPC::Message* reply_msg); |
| 144 void OnLogMessage(int level, const std::string& header, | 146 void OnLogMessage(int level, const std::string& header, |
| 145 const std::string& message); | 147 const std::string& message); |
| 146 void OnSynchronizeReply(); | 148 void OnSynchronizeReply(); |
| 147 #if defined(OS_LINUX) | 149 #if defined(OS_LINUX) |
| 148 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); |
| 149 #elif defined(OS_MACOSX) | 151 #elif defined(OS_MACOSX) |
| 150 void OnAcceleratedSurfaceSetIOSurface( | 152 void OnAcceleratedSurfaceSetIOSurface( |
| 151 const GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params& params); | 153 const GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params& params); |
| 152 void OnAcceleratedSurfaceBuffersSwapped( | 154 void OnAcceleratedSurfaceBuffersSwapped( |
| 153 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params); | 155 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params); |
| (...skipping 26 matching lines...) Expand all Loading... |
| 180 bool initialized_; | 182 bool initialized_; |
| 181 bool initialized_successfully_; | 183 bool initialized_successfully_; |
| 182 | 184 |
| 183 bool gpu_feature_flags_set_; | 185 bool gpu_feature_flags_set_; |
| 184 scoped_ptr<GpuBlacklist> gpu_blacklist_; | 186 scoped_ptr<GpuBlacklist> gpu_blacklist_; |
| 185 GpuFeatureFlags gpu_feature_flags_; | 187 GpuFeatureFlags gpu_feature_flags_; |
| 186 }; | 188 }; |
| 187 | 189 |
| 188 #endif // CHROME_BROWSER_GPU_PROCESS_HOST_UI_SHIM_H_ | 190 #endif // CHROME_BROWSER_GPU_PROCESS_HOST_UI_SHIM_H_ |
| 189 | 191 |
| OLD | NEW |