| 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 true}, | 110 true}, |
| 111 {"video_decode", manager->IsFeatureBlacklisted( | 111 {"video_decode", manager->IsFeatureBlacklisted( |
| 112 gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_DECODE), | 112 gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_DECODE), |
| 113 command_line.HasSwitch(switches::kDisableAcceleratedVideoDecode), | 113 command_line.HasSwitch(switches::kDisableAcceleratedVideoDecode), |
| 114 "Accelerated video decode has been disabled, either via blacklist," | 114 "Accelerated video decode has been disabled, either via blacklist," |
| 115 " about:flags or the command line.", | 115 " about:flags or the command line.", |
| 116 true}, | 116 true}, |
| 117 #if BUILDFLAG(ENABLE_WEBRTC) | 117 #if BUILDFLAG(ENABLE_WEBRTC) |
| 118 {"video_encode", manager->IsFeatureBlacklisted( | 118 {"video_encode", manager->IsFeatureBlacklisted( |
| 119 gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_ENCODE), | 119 gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_ENCODE), |
| 120 command_line.HasSwitch(switches::kDisableWebRtcHWEncoding), | 120 command_line.HasSwitch(switches::kDisableWebRtcHWVP8Encoding), |
| 121 "Accelerated video encode has been disabled, either via blacklist," | 121 "Accelerated video encode has been disabled, either via blacklist," |
| 122 " about:flags or the command line.", | 122 " about:flags or the command line.", |
| 123 true}, | 123 true}, |
| 124 #endif | 124 #endif |
| 125 #if defined(OS_CHROMEOS) | 125 #if defined(OS_CHROMEOS) |
| 126 {"panel_fitting", | 126 {"panel_fitting", |
| 127 manager->IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_PANEL_FITTING), | 127 manager->IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_PANEL_FITTING), |
| 128 command_line.HasSwitch(switches::kDisablePanelFitting), | 128 command_line.HasSwitch(switches::kDisablePanelFitting), |
| 129 "Panel fitting has been disabled, either via blacklist, about:flags or" | 129 "Panel fitting has been disabled, either via blacklist, about:flags or" |
| 130 " the command line.", | 130 " the command line.", |
| (...skipping 283 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 |