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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 }, | 126 }, |
127 { | 127 { |
128 "video_decode", | 128 "video_decode", |
129 manager->IsFeatureBlacklisted( | 129 manager->IsFeatureBlacklisted( |
130 gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_DECODE), | 130 gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_DECODE), |
131 command_line.HasSwitch(switches::kDisableAcceleratedVideoDecode), | 131 command_line.HasSwitch(switches::kDisableAcceleratedVideoDecode), |
132 "Accelerated video decode has been disabled, either via about:flags" | 132 "Accelerated video decode has been disabled, either via about:flags" |
133 " or command line.", | 133 " or command line.", |
134 true | 134 true |
135 }, | 135 }, |
| 136 #if defined(ENABLE_WEBRTC) |
| 137 { |
| 138 "video_encode", |
| 139 manager->IsFeatureBlacklisted( |
| 140 gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_ENCODE), |
| 141 command_line.HasSwitch(switches::kDisableWebRtcHWEncoding), |
| 142 "Accelerated video encode has been disabled, either via about:flags" |
| 143 " or command line.", |
| 144 true |
| 145 }, |
| 146 #endif |
136 { | 147 { |
137 "video", | 148 "video", |
138 manager->IsFeatureBlacklisted( | 149 manager->IsFeatureBlacklisted( |
139 gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO), | 150 gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO), |
140 command_line.HasSwitch(switches::kDisableAcceleratedVideo) || | 151 command_line.HasSwitch(switches::kDisableAcceleratedVideo) || |
141 command_line.HasSwitch(switches::kDisableAcceleratedCompositing), | 152 command_line.HasSwitch(switches::kDisableAcceleratedCompositing), |
142 "Accelerated video presentation has been disabled, either via" | 153 "Accelerated video presentation has been disabled, either via" |
143 " about:flags or command line.", | 154 " about:flags or command line.", |
144 true | 155 true |
145 }, | 156 }, |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
394 return problem_list; | 405 return problem_list; |
395 } | 406 } |
396 | 407 |
397 base::Value* GetDriverBugWorkarounds() { | 408 base::Value* GetDriverBugWorkarounds() { |
398 base::ListValue* workaround_list = new base::ListValue(); | 409 base::ListValue* workaround_list = new base::ListValue(); |
399 GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds(workaround_list); | 410 GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds(workaround_list); |
400 return workaround_list; | 411 return workaround_list; |
401 } | 412 } |
402 | 413 |
403 } // namespace content | 414 } // namespace content |
OLD | NEW |