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

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

Issue 2772193006: gpu: Replace GpuMsg_GpuSwitched with 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/common/gpu_host_messages.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 a0041b29b6adbb8c1d3dee50adaa0775a7d3dffc..01e81d957d46e0233a14b67d20fb5b6b860fb512 100644
--- a/content/browser/gpu/gpu_process_host.cc
+++ b/content/browser/gpu/gpu_process_host.cc
@@ -191,17 +191,6 @@ enum GPUProcessLifetimeEvent {
// only be accessed from the IO thread.
GpuProcessHost* g_gpu_process_hosts[GpuProcessHost::GPU_PROCESS_KIND_COUNT];
-void SendGpuProcessMessage(GpuProcessHost::GpuProcessKind kind,
- bool force_create,
- IPC::Message* message) {
- GpuProcessHost* host = GpuProcessHost::Get(kind, force_create);
- if (host) {
- host->Send(message);
- } else {
- delete message;
- }
-}
-
void RunCallbackOnIO(GpuProcessHost::GpuProcessKind kind,
bool force_create,
const base::Callback<void(GpuProcessHost*)>& callback) {
@@ -443,20 +432,6 @@ void GpuProcessHost::GetProcessHandles(
}
// static
-void GpuProcessHost::SendOnIO(GpuProcessKind kind,
- bool force_create,
- IPC::Message* message) {
-#if !defined(OS_WIN)
- DCHECK_NE(kind, GpuProcessHost::GPU_PROCESS_KIND_UNSANDBOXED);
-#endif
- if (!BrowserThread::PostTask(
- BrowserThread::IO, FROM_HERE,
- base::Bind(&SendGpuProcessMessage, kind, force_create, message))) {
- delete message;
- }
-}
-
-// static
void GpuProcessHost::CallOnIO(
GpuProcessKind kind,
bool force_create,
« no previous file with comments | « content/browser/gpu/gpu_process_host.h ('k') | content/common/gpu_host_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698