| 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 " about:flags or the command line.", | 130 " about:flags or the command line.", |
| 131 true}, | 131 true}, |
| 132 {kMultipleRasterThreadsFeatureName, false, | 132 {kMultipleRasterThreadsFeatureName, false, |
| 133 NumberOfRendererRasterThreads() == 1, "Raster is using a single thread.", | 133 NumberOfRendererRasterThreads() == 1, "Raster is using a single thread.", |
| 134 false}, | 134 false}, |
| 135 {kNativeGpuMemoryBuffersFeatureName, false, | 135 {kNativeGpuMemoryBuffersFeatureName, false, |
| 136 !BrowserGpuMemoryBufferManager::IsNativeGpuMemoryBuffersEnabled(), | 136 !BrowserGpuMemoryBufferManager::IsNativeGpuMemoryBuffersEnabled(), |
| 137 "Native GpuMemoryBuffers have been disabled, either via about:flags" | 137 "Native GpuMemoryBuffers have been disabled, either via about:flags" |
| 138 " or command line.", | 138 " or command line.", |
| 139 true}, | 139 true}, |
| 140 {"vpx_decode", manager->IsFeatureBlacklisted( |
| 141 gpu::GPU_FEATURE_TYPE_ACCELERATED_VPX_DECODE) || |
| 142 manager->IsFeatureBlacklisted( |
| 143 gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_DECODE), |
| 144 command_line.HasSwitch(switches::kDisableAcceleratedVideoDecode), |
| 145 "Accelerated VPx video decode has been disabled, either via blacklist," |
| 146 " about:flags or the command line.", |
| 147 true}, |
| 140 }; | 148 }; |
| 141 DCHECK(index < arraysize(kGpuFeatureInfo)); | 149 DCHECK(index < arraysize(kGpuFeatureInfo)); |
| 142 *eof = (index == arraysize(kGpuFeatureInfo) - 1); | 150 *eof = (index == arraysize(kGpuFeatureInfo) - 1); |
| 143 return kGpuFeatureInfo[index]; | 151 return kGpuFeatureInfo[index]; |
| 144 } | 152 } |
| 145 | 153 |
| 146 } // namespace | 154 } // namespace |
| 147 | 155 |
| 148 int NumberOfRendererRasterThreads() { | 156 int NumberOfRendererRasterThreads() { |
| 149 int num_processors = base::SysInfo::NumberOfProcessors(); | 157 int num_processors = base::SysInfo::NumberOfProcessors(); |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 393 } | 401 } |
| 394 } | 402 } |
| 395 return problem_list; | 403 return problem_list; |
| 396 } | 404 } |
| 397 | 405 |
| 398 std::vector<std::string> GetDriverBugWorkarounds() { | 406 std::vector<std::string> GetDriverBugWorkarounds() { |
| 399 return GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds(); | 407 return GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds(); |
| 400 } | 408 } |
| 401 | 409 |
| 402 } // namespace content | 410 } // namespace content |
| OLD | NEW |