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

Unified Diff: content/browser/gpu/gpu_process_host.cc

Issue 2723363002: gpu: Replace GpuMsg_Finalize ipc with equivalent mojom api (Closed)
Patch Set: . Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/gpu/gpu_process_host.h ('k') | content/browser/gpu/gpu_process_host_ui_shim.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gpu/gpu_process_host.cc
diff --git a/content/browser/gpu/gpu_process_host.cc b/content/browser/gpu/gpu_process_host.cc
index 33dc88f7ca9cff248d0d8a66fa1fa49fb5db53f8..e2328dbbac1b844b0ffe6f0fe630289b8bb7bd41 100644
--- a/content/browser/gpu/gpu_process_host.cc
+++ b/content/browser/gpu/gpu_process_host.cc
@@ -200,8 +200,7 @@ void RunCallbackOnIO(GpuProcessHost::GpuProcessKind kind,
bool force_create,
const base::Callback<void(GpuProcessHost*)>& callback) {
GpuProcessHost* host = GpuProcessHost::Get(kind, force_create);
- if (host)
- callback.Run(host);
+ callback.Run(host);
}
#if defined(USE_OZONE)
@@ -988,10 +987,6 @@ void GpuProcessHost::ForceShutdown() {
process_->ForceShutdown();
}
-void GpuProcessHost::StopGpuProcess() {
- Send(new GpuMsg_Finalize());
-}
-
bool GpuProcessHost::LaunchGpuProcess(gpu::GpuPreferences* gpu_preferences) {
const base::CommandLine& browser_command_line =
*base::CommandLine::ForCurrentProcess();
« no previous file with comments | « content/browser/gpu/gpu_process_host.h ('k') | content/browser/gpu/gpu_process_host_ui_shim.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698