| 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 CreateCommandBufferCallback* callback); | 89 CreateCommandBufferCallback* callback); |
| 90 | 90 |
| 91 // See documentation on MessageRouter for AddRoute and RemoveRoute | 91 // See documentation on MessageRouter for AddRoute and RemoveRoute |
| 92 void AddRoute(int32 routing_id, IPC::Channel::Listener* listener); | 92 void AddRoute(int32 routing_id, IPC::Channel::Listener* listener); |
| 93 void RemoveRoute(int32 routing_id); | 93 void RemoveRoute(int32 routing_id); |
| 94 | 94 |
| 95 // Sends a message to the browser process to collect the information from the | 95 // Sends a message to the browser process to collect the information from the |
| 96 // graphics card. | 96 // graphics card. |
| 97 void CollectGraphicsInfoAsynchronously(GPUInfo::Level level); | 97 void CollectGraphicsInfoAsynchronously(GPUInfo::Level level); |
| 98 | 98 |
| 99 // Tells the GPU process to enable TRACE collection |
| 100 void SetTraceEnabled(bool enabled); |
| 101 |
| 99 // Tells the GPU process to crash. Useful for testing. | 102 // Tells the GPU process to crash. Useful for testing. |
| 100 void SendAboutGpuCrash(); | 103 void SendAboutGpuCrash(); |
| 101 | 104 |
| 102 // Tells the GPU process to let its main thread enter an infinite loop. | 105 // Tells the GPU process to let its main thread enter an infinite loop. |
| 103 // Useful for testing. | 106 // Useful for testing. |
| 104 void SendAboutGpuHang(); | 107 void SendAboutGpuHang(); |
| 105 | 108 |
| 106 // Return all known information about the GPU. | 109 // Return all known information about the GPU. |
| 107 const GPUInfo& gpu_info() const; | 110 const GPUInfo& gpu_info() const; |
| 108 | 111 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 137 | 140 |
| 138 void OnChannelEstablished(const IPC::ChannelHandle& channel_handle, | 141 void OnChannelEstablished(const IPC::ChannelHandle& channel_handle, |
| 139 const GPUInfo& gpu_info); | 142 const GPUInfo& gpu_info); |
| 140 void OnCommandBufferCreated(const int32 route_id); | 143 void OnCommandBufferCreated(const int32 route_id); |
| 141 void OnDestroyCommandBuffer(gfx::PluginWindowHandle window, | 144 void OnDestroyCommandBuffer(gfx::PluginWindowHandle window, |
| 142 int32 renderer_id, int32 render_view_id); | 145 int32 renderer_id, int32 render_view_id); |
| 143 void OnGraphicsInfoCollected(const GPUInfo& gpu_info); | 146 void OnGraphicsInfoCollected(const GPUInfo& gpu_info); |
| 144 void OnLogMessage(int level, const std::string& header, | 147 void OnLogMessage(int level, const std::string& header, |
| 145 const std::string& message); | 148 const std::string& message); |
| 146 void OnSynchronizeReply(); | 149 void OnSynchronizeReply(); |
| 150 void OnTraceDataCollectedRemotely(const std::string& json_events); |
| 147 #if defined(OS_LINUX) | 151 #if defined(OS_LINUX) |
| 148 void OnResizeXID(unsigned long xid, gfx::Size size, IPC::Message* reply_msg); | 152 void OnResizeXID(unsigned long xid, gfx::Size size, IPC::Message* reply_msg); |
| 149 #elif defined(OS_MACOSX) | 153 #elif defined(OS_MACOSX) |
| 150 void OnAcceleratedSurfaceSetIOSurface( | 154 void OnAcceleratedSurfaceSetIOSurface( |
| 151 const GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params& params); | 155 const GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params& params); |
| 152 void OnAcceleratedSurfaceBuffersSwapped( | 156 void OnAcceleratedSurfaceBuffersSwapped( |
| 153 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params); | 157 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params); |
| 154 #elif defined(OS_WIN) | 158 #elif defined(OS_WIN) |
| 155 void OnScheduleComposite(int32 renderer_id, int32 render_view_id); | 159 void OnScheduleComposite(int32 renderer_id, int32 render_view_id); |
| 156 #endif | 160 #endif |
| (...skipping 23 matching lines...) Expand all Loading... |
| 180 bool initialized_; | 184 bool initialized_; |
| 181 bool initialized_successfully_; | 185 bool initialized_successfully_; |
| 182 | 186 |
| 183 bool gpu_feature_flags_set_; | 187 bool gpu_feature_flags_set_; |
| 184 scoped_ptr<GpuBlacklist> gpu_blacklist_; | 188 scoped_ptr<GpuBlacklist> gpu_blacklist_; |
| 185 GpuFeatureFlags gpu_feature_flags_; | 189 GpuFeatureFlags gpu_feature_flags_; |
| 186 }; | 190 }; |
| 187 | 191 |
| 188 #endif // CHROME_BROWSER_GPU_PROCESS_HOST_UI_SHIM_H_ | 192 #endif // CHROME_BROWSER_GPU_PROCESS_HOST_UI_SHIM_H_ |
| 189 | 193 |
| OLD | NEW |