| OLD | NEW |
| 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/compositor_util.h" | 5 #include "content/browser/gpu/compositor_util.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 manager->IsFeatureBlacklisted( | 149 manager->IsFeatureBlacklisted( |
| 150 gpu::GPU_FEATURE_TYPE_ACCELERATED_VPX_DECODE) || | 150 gpu::GPU_FEATURE_TYPE_ACCELERATED_VPX_DECODE) || |
| 151 manager->IsFeatureBlacklisted( | 151 manager->IsFeatureBlacklisted( |
| 152 gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_DECODE), | 152 gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_DECODE), |
| 153 accelerated_vpx_disabled, | 153 accelerated_vpx_disabled, |
| 154 "Accelerated VPx video decode has been disabled, either via blacklist" | 154 "Accelerated VPx video decode has been disabled, either via blacklist" |
| 155 " or the command line.", | 155 " or the command line.", |
| 156 true}, | 156 true}, |
| 157 {kWebGL2FeatureName, | 157 {kWebGL2FeatureName, |
| 158 manager->IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_WEBGL2), | 158 manager->IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_WEBGL2), |
| 159 !command_line.HasSwitch(switches::kEnableUnsafeES3APIs) || | 159 !command_line.HasSwitch(switches::kEnableES3APIs) || |
| 160 command_line.HasSwitch(switches::kDisableES3APIs), | 160 command_line.HasSwitch(switches::kDisableES3APIs), |
| 161 "WebGL2 has been disabled via blacklist or the command line.", | 161 "WebGL2 has been disabled via blacklist or the command line.", |
| 162 false}, | 162 false}, |
| 163 }; | 163 }; |
| 164 DCHECK(index < arraysize(kGpuFeatureInfo)); | 164 DCHECK(index < arraysize(kGpuFeatureInfo)); |
| 165 *eof = (index == arraysize(kGpuFeatureInfo) - 1); | 165 *eof = (index == arraysize(kGpuFeatureInfo) - 1); |
| 166 return kGpuFeatureInfo[index]; | 166 return kGpuFeatureInfo[index]; |
| 167 } | 167 } |
| 168 | 168 |
| 169 } // namespace | 169 } // namespace |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 414 } | 414 } |
| 415 } | 415 } |
| 416 return problem_list; | 416 return problem_list; |
| 417 } | 417 } |
| 418 | 418 |
| 419 std::vector<std::string> GetDriverBugWorkarounds() { | 419 std::vector<std::string> GetDriverBugWorkarounds() { |
| 420 return GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds(); | 420 return GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds(); |
| 421 } | 421 } |
| 422 | 422 |
| 423 } // namespace content | 423 } // namespace content |
| OLD | NEW |