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

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

Issue 20632002: Add media::VideoEncodeAccelerator with WebRTC integration (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@git-svn
Patch Set: 7fd9dbd5 More debugging statements, some fixes Created 7 years, 4 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
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 #include "content/browser/gpu/gpu_process_host.h" 5 #include "content/browser/gpu/gpu_process_host.h"
6 6
7 #include "base/base64.h" 7 #include "base/base64.h"
8 #include "base/base_switches.h" 8 #include "base/base_switches.h"
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 1121 matching lines...) Expand 10 before | Expand all | Expand 10 after
1132 CommandLine* cmd_line = new CommandLine(exe_path); 1132 CommandLine* cmd_line = new CommandLine(exe_path);
1133 cmd_line->AppendSwitchASCII(switches::kProcessType, switches::kGpuProcess); 1133 cmd_line->AppendSwitchASCII(switches::kProcessType, switches::kGpuProcess);
1134 cmd_line->AppendSwitchASCII(switches::kProcessChannelID, channel_id); 1134 cmd_line->AppendSwitchASCII(switches::kProcessChannelID, channel_id);
1135 1135
1136 if (kind_ == GPU_PROCESS_KIND_UNSANDBOXED) 1136 if (kind_ == GPU_PROCESS_KIND_UNSANDBOXED)
1137 cmd_line->AppendSwitch(switches::kDisableGpuSandbox); 1137 cmd_line->AppendSwitch(switches::kDisableGpuSandbox);
1138 1138
1139 // Propagate relevant command line switches. 1139 // Propagate relevant command line switches.
1140 static const char* const kSwitchNames[] = { 1140 static const char* const kSwitchNames[] = {
1141 switches::kDisableAcceleratedVideoDecode, 1141 switches::kDisableAcceleratedVideoDecode,
1142 switches::kDisableAcceleratedVideoEncode,
1142 switches::kDisableBreakpad, 1143 switches::kDisableBreakpad,
1143 switches::kDisableGLMultisampling, 1144 switches::kDisableGLMultisampling,
1144 switches::kDisableGpuSandbox, 1145 switches::kDisableGpuSandbox,
1145 switches::kDisableGpuWatchdog, 1146 switches::kDisableGpuWatchdog,
1146 switches::kDisableImageTransportSurface, 1147 switches::kDisableImageTransportSurface,
1147 switches::kDisableLogging, 1148 switches::kDisableLogging,
1148 switches::kDisableSeccompFilterSandbox, 1149 switches::kDisableSeccompFilterSandbox,
1149 switches::kEnableLogging, 1150 switches::kEnableLogging,
1150 switches::kEnableShareGroupAsyncTextureUpload, 1151 switches::kEnableShareGroupAsyncTextureUpload,
1151 switches::kEnableVirtualGLContexts, 1152 switches::kEnableVirtualGLContexts,
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
1276 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); 1277 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader");
1277 ClientIdToShaderCacheMap::iterator iter = 1278 ClientIdToShaderCacheMap::iterator iter =
1278 client_id_to_shader_cache_.find(client_id); 1279 client_id_to_shader_cache_.find(client_id);
1279 // If the cache doesn't exist then this is an off the record profile. 1280 // If the cache doesn't exist then this is an off the record profile.
1280 if (iter == client_id_to_shader_cache_.end()) 1281 if (iter == client_id_to_shader_cache_.end())
1281 return; 1282 return;
1282 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); 1283 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader);
1283 } 1284 }
1284 1285
1285 } // namespace content 1286 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698