Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(104)

Side by Side Diff: content/browser/gpu/gpu_process_host.h

Issue 2267843002: gpu host: Delete GpuMsg_Finalize (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | content/browser/gpu/gpu_process_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 // can stop using it. 152 // can stop using it.
153 void SendDestroyingVideoSurface(int surface_id, const base::Closure& done_cb); 153 void SendDestroyingVideoSurface(int surface_id, const base::Closure& done_cb);
154 #endif 154 #endif
155 155
156 // What kind of GPU process, e.g. sandboxed or unsandboxed. 156 // What kind of GPU process, e.g. sandboxed or unsandboxed.
157 GpuProcessKind kind(); 157 GpuProcessKind kind();
158 158
159 // Forcefully terminates the GPU process. 159 // Forcefully terminates the GPU process.
160 void ForceShutdown(); 160 void ForceShutdown();
161 161
162 // Asks the GPU process to stop by itself.
163 void StopGpuProcess();
164
165 void LoadedShader(const std::string& key, const std::string& data); 162 void LoadedShader(const std::string& key, const std::string& data);
166 163
167 private: 164 private:
168 class ConnectionFilterImpl; 165 class ConnectionFilterImpl;
169 166
170 static bool ValidateHost(GpuProcessHost* host); 167 static bool ValidateHost(GpuProcessHost* host);
171 168
172 GpuProcessHost(int host_id, GpuProcessKind kind); 169 GpuProcessHost(int host_id, GpuProcessKind kind);
173 ~GpuProcessHost() override; 170 ~GpuProcessHost() override;
174 171
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 ClientIdToShaderCacheMap client_id_to_shader_cache_; 290 ClientIdToShaderCacheMap client_id_to_shader_cache_;
294 291
295 std::string shader_prefix_key_; 292 std::string shader_prefix_key_;
296 293
297 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); 294 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost);
298 }; 295 };
299 296
300 } // namespace content 297 } // namespace content
301 298
302 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ 299 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/gpu/gpu_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698