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

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

Issue 357903003: Revert 279958 "Revert "Revert 279650 "Add VaapiVideoEncodeAccele..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 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 | Annotate | Revision Log
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 963 matching lines...) Expand 10 before | Expand all | Expand 10 after
974 switches::kDisableBreakpad, 974 switches::kDisableBreakpad,
975 switches::kDisableGpuSandbox, 975 switches::kDisableGpuSandbox,
976 switches::kDisableGpuWatchdog, 976 switches::kDisableGpuWatchdog,
977 switches::kDisableLogging, 977 switches::kDisableLogging,
978 switches::kDisableSeccompFilterSandbox, 978 switches::kDisableSeccompFilterSandbox,
979 #if defined(ENABLE_WEBRTC) 979 #if defined(ENABLE_WEBRTC)
980 switches::kDisableWebRtcHWEncoding, 980 switches::kDisableWebRtcHWEncoding,
981 #endif 981 #endif
982 switches::kEnableLogging, 982 switches::kEnableLogging,
983 switches::kEnableShareGroupAsyncTextureUpload, 983 switches::kEnableShareGroupAsyncTextureUpload,
984 #if defined(OS_CHROMEOS)
985 switches::kEnableVaapiAcceleratedVideoEncode,
986 #endif
987 switches::kGpuStartupDialog, 984 switches::kGpuStartupDialog,
988 switches::kGpuSandboxAllowSysVShm, 985 switches::kGpuSandboxAllowSysVShm,
989 switches::kGpuSandboxFailuresFatal, 986 switches::kGpuSandboxFailuresFatal,
990 switches::kGpuSandboxStartAfterInitialization, 987 switches::kGpuSandboxStartAfterInitialization,
991 switches::kIgnoreResolutionLimitsForAcceleratedVideoDecode, 988 switches::kIgnoreResolutionLimitsForAcceleratedVideoDecode,
992 switches::kLoggingLevel, 989 switches::kLoggingLevel,
993 switches::kNoSandbox, 990 switches::kNoSandbox,
994 switches::kTestGLLib, 991 switches::kTestGLLib,
995 switches::kTraceStartup, 992 switches::kTraceStartup,
996 switches::kTraceToConsole, 993 switches::kTraceToConsole,
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
1116 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); 1113 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader");
1117 ClientIdToShaderCacheMap::iterator iter = 1114 ClientIdToShaderCacheMap::iterator iter =
1118 client_id_to_shader_cache_.find(client_id); 1115 client_id_to_shader_cache_.find(client_id);
1119 // If the cache doesn't exist then this is an off the record profile. 1116 // If the cache doesn't exist then this is an off the record profile.
1120 if (iter == client_id_to_shader_cache_.end()) 1117 if (iter == client_id_to_shader_cache_.end())
1121 return; 1118 return;
1122 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); 1119 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader);
1123 } 1120 }
1124 1121
1125 } // namespace content 1122 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698