| 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 "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
| 10 #include "cc/base/switches.h" | 10 #include "cc/base/switches.h" |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 { | 95 { |
| 96 "video_encode", | 96 "video_encode", |
| 97 manager->IsFeatureBlacklisted( | 97 manager->IsFeatureBlacklisted( |
| 98 gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_ENCODE), | 98 gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_ENCODE), |
| 99 command_line.HasSwitch(switches::kDisableWebRtcHWEncoding), | 99 command_line.HasSwitch(switches::kDisableWebRtcHWEncoding), |
| 100 "Accelerated video encode has been disabled, either via about:flags" | 100 "Accelerated video encode has been disabled, either via about:flags" |
| 101 " or command line.", | 101 " or command line.", |
| 102 true | 102 true |
| 103 }, | 103 }, |
| 104 #endif | 104 #endif |
| 105 { | |
| 106 "video", | |
| 107 manager->IsFeatureBlacklisted( | |
| 108 gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO), | |
| 109 command_line.HasSwitch(switches::kDisableAcceleratedVideo), | |
| 110 "Accelerated video presentation has been disabled, either via" | |
| 111 " about:flags or command line.", | |
| 112 true | |
| 113 }, | |
| 114 #if defined(OS_CHROMEOS) | 105 #if defined(OS_CHROMEOS) |
| 115 { | 106 { |
| 116 "panel_fitting", | 107 "panel_fitting", |
| 117 manager->IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_PANEL_FITTING), | 108 manager->IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_PANEL_FITTING), |
| 118 command_line.HasSwitch(switches::kDisablePanelFitting), | 109 command_line.HasSwitch(switches::kDisablePanelFitting), |
| 119 "Panel fitting has been disabled, either via about:flags or command" | 110 "Panel fitting has been disabled, either via about:flags or command" |
| 120 " line.", | 111 " line.", |
| 121 false | 112 false |
| 122 }, | 113 }, |
| 123 #endif | 114 #endif |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 return problem_list; | 311 return problem_list; |
| 321 } | 312 } |
| 322 | 313 |
| 323 base::Value* GetDriverBugWorkarounds() { | 314 base::Value* GetDriverBugWorkarounds() { |
| 324 base::ListValue* workaround_list = new base::ListValue(); | 315 base::ListValue* workaround_list = new base::ListValue(); |
| 325 GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds(workaround_list); | 316 GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds(workaround_list); |
| 326 return workaround_list; | 317 return workaround_list; |
| 327 } | 318 } |
| 328 | 319 |
| 329 } // namespace content | 320 } // namespace content |
| OLD | NEW |