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

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

Issue 8823005: Use ForceShutdown to kill old GPU process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update to trunk Created 9 years 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 | Annotate | Revision Log
« 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) 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 void CreateViewCommandBuffer( 76 void CreateViewCommandBuffer(
77 gfx::PluginWindowHandle compositing_surface, 77 gfx::PluginWindowHandle compositing_surface,
78 int32 render_view_id, 78 int32 render_view_id,
79 int32 renderer_id, 79 int32 renderer_id,
80 const GPUCreateCommandBufferConfig& init_params, 80 const GPUCreateCommandBufferConfig& init_params,
81 CreateCommandBufferCallback* callback); 81 CreateCommandBufferCallback* callback);
82 82
83 // Whether this GPU process is set up to use software rendering. 83 // Whether this GPU process is set up to use software rendering.
84 bool software_rendering(); 84 bool software_rendering();
85 85
86 void ForceShutdown();
87
86 private: 88 private:
87 GpuProcessHost(int host_id); 89 GpuProcessHost(int host_id);
88 virtual ~GpuProcessHost(); 90 virtual ~GpuProcessHost();
89 91
90 bool Init(); 92 bool Init();
91 93
92 // Post an IPC message to the UI shim's message handler on the UI thread. 94 // Post an IPC message to the UI shim's message handler on the UI thread.
93 void RouteOnUIThread(const IPC::Message& message); 95 void RouteOnUIThread(const IPC::Message& message);
94 96
95 virtual void OnProcessLaunched() OVERRIDE; 97 virtual void OnProcessLaunched() OVERRIDE;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 158
157 // Master switch for enabling/disabling GPU acceleration for the current 159 // Master switch for enabling/disabling GPU acceleration for the current
158 // browser session. It does not change the acceleration settings for 160 // browser session. It does not change the acceleration settings for
159 // existing tabs, just the future ones. 161 // existing tabs, just the future ones.
160 CONTENT_EXPORT static bool gpu_enabled_; 162 CONTENT_EXPORT static bool gpu_enabled_;
161 163
162 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); 164 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost);
163 }; 165 };
164 166
165 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ 167 #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