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

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

Issue 1515993003: Use AVDA copying strategy unless the unified pipeline flag is set. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cl feedback Created 5 years 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 | content/common/gpu/media/android_copying_backing_strategy.h » ('j') | 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 <utility> 7 #include <utility>
8 8
9 #include "base/base64.h" 9 #include "base/base64.h"
10 #include "base/base_switches.h" 10 #include "base/base_switches.h"
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 switches::kDisableSeccompFilterSandbox, 100 switches::kDisableSeccompFilterSandbox,
101 #if defined(ENABLE_WEBRTC) 101 #if defined(ENABLE_WEBRTC)
102 switches::kDisableWebRtcHWEncoding, 102 switches::kDisableWebRtcHWEncoding,
103 #endif 103 #endif
104 #if defined(OS_WIN) 104 #if defined(OS_WIN)
105 switches::kEnableAcceleratedVpxDecode, 105 switches::kEnableAcceleratedVpxDecode,
106 #endif 106 #endif
107 switches::kEnableHeapProfiling, 107 switches::kEnableHeapProfiling,
108 switches::kEnableLogging, 108 switches::kEnableLogging,
109 switches::kEnableShareGroupAsyncTextureUpload, 109 switches::kEnableShareGroupAsyncTextureUpload,
110 #if defined(OS_ANDROID)
111 switches::kEnableUnifiedMediaPipeline,
112 #endif
110 #if defined(OS_CHROMEOS) 113 #if defined(OS_CHROMEOS)
111 switches::kDisableVaapiAcceleratedVideoEncode, 114 switches::kDisableVaapiAcceleratedVideoEncode,
112 #endif 115 #endif
113 switches::kGpuStartupDialog, 116 switches::kGpuStartupDialog,
114 switches::kGpuSandboxAllowSysVShm, 117 switches::kGpuSandboxAllowSysVShm,
115 switches::kGpuSandboxFailuresFatal, 118 switches::kGpuSandboxFailuresFatal,
116 switches::kGpuSandboxStartEarly, 119 switches::kGpuSandboxStartEarly,
117 switches::kLoggingLevel, 120 switches::kLoggingLevel,
118 switches::kEnableLowEndDeviceMode, 121 switches::kEnableLowEndDeviceMode,
119 switches::kDisableLowEndDeviceMode, 122 switches::kDisableLowEndDeviceMode,
(...skipping 1046 matching lines...) Expand 10 before | Expand all | Expand 10 after
1166 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); 1169 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader");
1167 ClientIdToShaderCacheMap::iterator iter = 1170 ClientIdToShaderCacheMap::iterator iter =
1168 client_id_to_shader_cache_.find(client_id); 1171 client_id_to_shader_cache_.find(client_id);
1169 // If the cache doesn't exist then this is an off the record profile. 1172 // If the cache doesn't exist then this is an off the record profile.
1170 if (iter == client_id_to_shader_cache_.end()) 1173 if (iter == client_id_to_shader_cache_.end())
1171 return; 1174 return;
1172 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); 1175 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader);
1173 } 1176 }
1174 1177
1175 } // namespace content 1178 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/common/gpu/media/android_copying_backing_strategy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698