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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 { | 134 { |
135 "video_decode", | 135 "video_decode", |
136 manager->IsFeatureBlacklisted( | 136 manager->IsFeatureBlacklisted( |
137 gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_DECODE), | 137 gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_DECODE), |
138 command_line.HasSwitch(switches::kDisableAcceleratedVideoDecode), | 138 command_line.HasSwitch(switches::kDisableAcceleratedVideoDecode), |
139 "Accelerated video decode has been disabled, either via about:flags" | 139 "Accelerated video decode has been disabled, either via about:flags" |
140 " or command line.", | 140 " or command line.", |
141 true | 141 true |
142 }, | 142 }, |
143 { | 143 { |
| 144 "video_encode", |
| 145 manager->IsFeatureBlacklisted( |
| 146 gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_ENCODE), |
| 147 command_line.HasSwitch(switches::kDisableWebRtcHWEncoding), |
| 148 "Accelerated video encode has been disabled, either via about:flags" |
| 149 " or command line.", |
| 150 true |
| 151 }, |
| 152 { |
144 "video", | 153 "video", |
145 manager->IsFeatureBlacklisted( | 154 manager->IsFeatureBlacklisted( |
146 gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO), | 155 gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO), |
147 command_line.HasSwitch(switches::kDisableAcceleratedVideo) || | 156 command_line.HasSwitch(switches::kDisableAcceleratedVideo) || |
148 command_line.HasSwitch(switches::kDisableAcceleratedCompositing), | 157 command_line.HasSwitch(switches::kDisableAcceleratedCompositing), |
149 "Accelerated video presentation has been disabled, either via" | 158 "Accelerated video presentation has been disabled, either via" |
150 " about:flags or command line.", | 159 " about:flags or command line.", |
151 true | 160 true |
152 }, | 161 }, |
153 #if defined(OS_CHROMEOS) | 162 #if defined(OS_CHROMEOS) |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 return problem_list; | 410 return problem_list; |
402 } | 411 } |
403 | 412 |
404 base::Value* GetDriverBugWorkarounds() { | 413 base::Value* GetDriverBugWorkarounds() { |
405 base::ListValue* workaround_list = new base::ListValue(); | 414 base::ListValue* workaround_list = new base::ListValue(); |
406 GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds(workaround_list); | 415 GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds(workaround_list); |
407 return workaround_list; | 416 return workaround_list; |
408 } | 417 } |
409 | 418 |
410 } // namespace content | 419 } // namespace content |
OLD | NEW |