| 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 true}, | 111 true}, |
| 112 {"video_decode", manager->IsFeatureBlacklisted( | 112 {"video_decode", manager->IsFeatureBlacklisted( |
| 113 gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_DECODE), | 113 gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_DECODE), |
| 114 command_line.HasSwitch(switches::kDisableAcceleratedVideoDecode), | 114 command_line.HasSwitch(switches::kDisableAcceleratedVideoDecode), |
| 115 "Accelerated video decode has been disabled, either via blacklist," | 115 "Accelerated video decode has been disabled, either via blacklist," |
| 116 " about:flags or the command line.", | 116 " about:flags or the command line.", |
| 117 true}, | 117 true}, |
| 118 #if BUILDFLAG(ENABLE_WEBRTC) | 118 #if BUILDFLAG(ENABLE_WEBRTC) |
| 119 {"video_encode", manager->IsFeatureBlacklisted( | 119 {"video_encode", manager->IsFeatureBlacklisted( |
| 120 gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_ENCODE), | 120 gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_ENCODE), |
| 121 command_line.HasSwitch(switches::kDisableWebRtcHWVP8Encoding), | 121 command_line.HasSwitch(switches::kDisableWebRtcHWEncoding), |
| 122 "Accelerated video encode has been disabled, either via blacklist," | 122 "Accelerated video encode has been disabled, either via blacklist," |
| 123 " about:flags or the command line.", | 123 " about:flags or the command line.", |
| 124 true}, | 124 true}, |
| 125 #endif | 125 #endif |
| 126 #if defined(OS_CHROMEOS) | 126 #if defined(OS_CHROMEOS) |
| 127 {"panel_fitting", | 127 {"panel_fitting", |
| 128 manager->IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_PANEL_FITTING), | 128 manager->IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_PANEL_FITTING), |
| 129 command_line.HasSwitch(switches::kDisablePanelFitting), | 129 command_line.HasSwitch(switches::kDisablePanelFitting), |
| 130 "Panel fitting has been disabled, either via blacklist, about:flags or" | 130 "Panel fitting has been disabled, either via blacklist, about:flags or" |
| 131 " the command line.", | 131 " the command line.", |
| (...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 413 } | 413 } |
| 414 } | 414 } |
| 415 return problem_list; | 415 return problem_list; |
| 416 } | 416 } |
| 417 | 417 |
| 418 std::vector<std::string> GetDriverBugWorkarounds() { | 418 std::vector<std::string> GetDriverBugWorkarounds() { |
| 419 return GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds(); | 419 return GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds(); |
| 420 } | 420 } |
| 421 | 421 |
| 422 } // namespace content | 422 } // namespace content |
| OLD | NEW |