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

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

Issue 618633002: Add kEnableWebRtcHWVp8Encoding to GPU process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 | no next file » | 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 #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/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 // Command-line switches to propagate to the GPU process. 73 // Command-line switches to propagate to the GPU process.
74 static const char* const kSwitchNames[] = { 74 static const char* const kSwitchNames[] = {
75 switches::kDisableAcceleratedVideoDecode, 75 switches::kDisableAcceleratedVideoDecode,
76 switches::kDisableBreakpad, 76 switches::kDisableBreakpad,
77 switches::kDisableGpuSandbox, 77 switches::kDisableGpuSandbox,
78 switches::kDisableGpuWatchdog, 78 switches::kDisableGpuWatchdog,
79 switches::kDisableLogging, 79 switches::kDisableLogging,
80 switches::kDisableSeccompFilterSandbox, 80 switches::kDisableSeccompFilterSandbox,
81 #if defined(ENABLE_WEBRTC) 81 #if defined(ENABLE_WEBRTC)
82 switches::kDisableWebRtcHWEncoding, 82 switches::kDisableWebRtcHWEncoding,
83 switches::kEnableWebRtcHWVp8Encoding,
83 #endif 84 #endif
84 switches::kEnableLogging, 85 switches::kEnableLogging,
85 switches::kEnableShareGroupAsyncTextureUpload, 86 switches::kEnableShareGroupAsyncTextureUpload,
86 #if defined(OS_CHROMEOS) 87 #if defined(OS_CHROMEOS)
87 switches::kDisableVaapiAcceleratedVideoEncode, 88 switches::kDisableVaapiAcceleratedVideoEncode,
88 #endif 89 #endif
89 switches::kGpuStartupDialog, 90 switches::kGpuStartupDialog,
90 switches::kGpuSandboxAllowSysVShm, 91 switches::kGpuSandboxAllowSysVShm,
91 switches::kGpuSandboxFailuresFatal, 92 switches::kGpuSandboxFailuresFatal,
92 switches::kGpuSandboxStartEarly, 93 switches::kGpuSandboxStartEarly,
(...skipping 964 matching lines...) Expand 10 before | Expand all | Expand 10 after
1057 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); 1058 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader");
1058 ClientIdToShaderCacheMap::iterator iter = 1059 ClientIdToShaderCacheMap::iterator iter =
1059 client_id_to_shader_cache_.find(client_id); 1060 client_id_to_shader_cache_.find(client_id);
1060 // If the cache doesn't exist then this is an off the record profile. 1061 // If the cache doesn't exist then this is an off the record profile.
1061 if (iter == client_id_to_shader_cache_.end()) 1062 if (iter == client_id_to_shader_cache_.end())
1062 return; 1063 return;
1063 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); 1064 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader);
1064 } 1065 }
1065 1066
1066 } // namespace content 1067 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698