OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ | 5 #ifndef CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ |
6 #define CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ | 6 #define CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <queue> | 10 #include <queue> |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 void RouteOnUIThread(const IPC::Message& message); | 93 void RouteOnUIThread(const IPC::Message& message); |
94 | 94 |
95 virtual void OnProcessLaunched() OVERRIDE; | 95 virtual void OnProcessLaunched() OVERRIDE; |
96 virtual void OnProcessCrashed(int exit_code) OVERRIDE; | 96 virtual void OnProcessCrashed(int exit_code) OVERRIDE; |
97 | 97 |
98 // Message handlers. | 98 // Message handlers. |
99 void OnChannelEstablished(const IPC::ChannelHandle& channel_handle); | 99 void OnChannelEstablished(const IPC::ChannelHandle& channel_handle); |
100 void OnCommandBufferCreated(const int32 route_id); | 100 void OnCommandBufferCreated(const int32 route_id); |
101 void OnDestroyCommandBuffer( | 101 void OnDestroyCommandBuffer( |
102 gfx::PluginWindowHandle window, int32 renderer_id, int32 render_view_id); | 102 gfx::PluginWindowHandle window, int32 renderer_id, int32 render_view_id); |
103 void OnGraphicsInfoCollected(const content::GPUInfo& gpu_info); | |
104 | 103 |
105 bool LaunchGpuProcess(const std::string& channel_id); | 104 bool LaunchGpuProcess(const std::string& channel_id); |
106 | 105 |
107 void SendOutstandingReplies(); | 106 void SendOutstandingReplies(); |
108 void EstablishChannelError( | 107 void EstablishChannelError( |
109 EstablishChannelCallback* callback, | 108 EstablishChannelCallback* callback, |
110 const IPC::ChannelHandle& channel_handle, | 109 const IPC::ChannelHandle& channel_handle, |
111 base::ProcessHandle renderer_process_for_gpu, | 110 base::ProcessHandle renderer_process_for_gpu, |
112 const content::GPUInfo& gpu_info); | 111 const content::GPUInfo& gpu_info); |
113 void CreateCommandBufferError(CreateCommandBufferCallback* callback, | 112 void CreateCommandBufferError(CreateCommandBufferCallback* callback, |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 | 155 |
157 // Master switch for enabling/disabling GPU acceleration for the current | 156 // Master switch for enabling/disabling GPU acceleration for the current |
158 // browser session. It does not change the acceleration settings for | 157 // browser session. It does not change the acceleration settings for |
159 // existing tabs, just the future ones. | 158 // existing tabs, just the future ones. |
160 CONTENT_EXPORT static bool gpu_enabled_; | 159 CONTENT_EXPORT static bool gpu_enabled_; |
161 | 160 |
162 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); | 161 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); |
163 }; | 162 }; |
164 | 163 |
165 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ | 164 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ |
OLD | NEW |