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

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

Issue 2058413003: H264 HW encode using MediaFoundation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: wuchengli@ and ananta@ comments. Created 4 years, 5 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 <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <list> 10 #include <list>
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 switches::kDisableGpuSandbox, 113 switches::kDisableGpuSandbox,
114 switches::kDisableGpuWatchdog, 114 switches::kDisableGpuWatchdog,
115 switches::kDisableGLExtensions, 115 switches::kDisableGLExtensions,
116 switches::kDisableLogging, 116 switches::kDisableLogging,
117 switches::kDisableSeccompFilterSandbox, 117 switches::kDisableSeccompFilterSandbox,
118 #if defined(ENABLE_WEBRTC) 118 #if defined(ENABLE_WEBRTC)
119 switches::kDisableWebRtcHWEncoding, 119 switches::kDisableWebRtcHWEncoding,
120 #endif 120 #endif
121 #if defined(OS_WIN) 121 #if defined(OS_WIN)
122 switches::kEnableAcceleratedVpxDecode, 122 switches::kEnableAcceleratedVpxDecode,
123 switches::kEnableMFH264Encoding,
123 #endif 124 #endif
124 switches::kEnableHeapProfiling, 125 switches::kEnableHeapProfiling,
125 switches::kEnableLogging, 126 switches::kEnableLogging,
126 #if defined(OS_CHROMEOS) 127 #if defined(OS_CHROMEOS)
127 switches::kDisableVaapiAcceleratedVideoEncode, 128 switches::kDisableVaapiAcceleratedVideoEncode,
128 #endif 129 #endif
129 switches::kGpuDriverBugWorkarounds, 130 switches::kGpuDriverBugWorkarounds,
130 switches::kGpuStartupDialog, 131 switches::kGpuStartupDialog,
131 switches::kGpuSandboxAllowSysVShm, 132 switches::kGpuSandboxAllowSysVShm,
132 switches::kGpuSandboxFailuresFatal, 133 switches::kGpuSandboxFailuresFatal,
(...skipping 1055 matching lines...) Expand 10 before | Expand all | Expand 10 after
1188 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); 1189 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader");
1189 ClientIdToShaderCacheMap::iterator iter = 1190 ClientIdToShaderCacheMap::iterator iter =
1190 client_id_to_shader_cache_.find(client_id); 1191 client_id_to_shader_cache_.find(client_id);
1191 // If the cache doesn't exist then this is an off the record profile. 1192 // If the cache doesn't exist then this is an off the record profile.
1192 if (iter == client_id_to_shader_cache_.end()) 1193 if (iter == client_id_to_shader_cache_.end())
1193 return; 1194 return;
1194 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); 1195 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader);
1195 } 1196 }
1196 1197
1197 } // namespace content 1198 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/gpu/gpu_main.cc » ('j') | media/gpu/media_foundation_video_encode_accelerator_win.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698