| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 | 168 |
| 169 // What kind of GPU process, e.g. sandboxed or unsandboxed. | 169 // What kind of GPU process, e.g. sandboxed or unsandboxed. |
| 170 GpuProcessKind kind(); | 170 GpuProcessKind kind(); |
| 171 | 171 |
| 172 // Forcefully terminates the GPU process. | 172 // Forcefully terminates the GPU process. |
| 173 void ForceShutdown(); | 173 void ForceShutdown(); |
| 174 | 174 |
| 175 // Asks the GPU process to stop by itself. | 175 // Asks the GPU process to stop by itself. |
| 176 void StopGpuProcess(); | 176 void StopGpuProcess(); |
| 177 | 177 |
| 178 void BeginFrameSubscription( | |
| 179 int surface_id, | |
| 180 base::WeakPtr<RenderWidgetHostViewFrameSubscriber> subscriber); | |
| 181 void EndFrameSubscription(int surface_id); | |
| 182 void LoadedShader(const std::string& key, const std::string& data); | 178 void LoadedShader(const std::string& key, const std::string& data); |
| 183 | 179 |
| 184 private: | 180 private: |
| 185 static bool ValidateHost(GpuProcessHost* host); | 181 static bool ValidateHost(GpuProcessHost* host); |
| 186 | 182 |
| 187 GpuProcessHost(int host_id, GpuProcessKind kind); | 183 GpuProcessHost(int host_id, GpuProcessKind kind); |
| 188 ~GpuProcessHost() override; | 184 ~GpuProcessHost() override; |
| 189 | 185 |
| 190 bool Init(); | 186 bool Init(); |
| 191 | 187 |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 // Browser-side Mojo endpoint which sets up a Mojo channel with the child | 320 // Browser-side Mojo endpoint which sets up a Mojo channel with the child |
| 325 // process and contains the browser's ServiceRegistry. | 321 // process and contains the browser's ServiceRegistry. |
| 326 scoped_ptr<MojoApplicationHost> mojo_application_host_; | 322 scoped_ptr<MojoApplicationHost> mojo_application_host_; |
| 327 | 323 |
| 328 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); | 324 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); |
| 329 }; | 325 }; |
| 330 | 326 |
| 331 } // namespace content | 327 } // namespace content |
| 332 | 328 |
| 333 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ | 329 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ |
| OLD | NEW |