| 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 "build/build_config.h" | 5 #include "build/build_config.h" |
| 6 #include "media/base/media_switches.h" | 6 #include "media/base/media_switches.h" |
| 7 #include "ppapi/features/features.h" | 7 #include "ppapi/features/features.h" |
| 8 | 8 |
| 9 namespace switches { | 9 namespace switches { |
| 10 | 10 |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 // when in background. | 175 // when in background. |
| 176 const base::Feature kResumeBackgroundVideo { | 176 const base::Feature kResumeBackgroundVideo { |
| 177 "resume-background-video", | 177 "resume-background-video", |
| 178 #if defined(OS_ANDROID) | 178 #if defined(OS_ANDROID) |
| 179 base::FEATURE_ENABLED_BY_DEFAULT | 179 base::FEATURE_ENABLED_BY_DEFAULT |
| 180 #else | 180 #else |
| 181 base::FEATURE_DISABLED_BY_DEFAULT | 181 base::FEATURE_DISABLED_BY_DEFAULT |
| 182 #endif | 182 #endif |
| 183 }; | 183 }; |
| 184 | 184 |
| 185 // Use AndroidOverlay rather than ContentVideoView in clank? |
| 186 const base::Feature kUseAndroidOverlay{"use-android_overlay", |
| 187 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 188 |
| 185 // Let video track be unselected when video is playing in the background. | 189 // Let video track be unselected when video is playing in the background. |
| 186 const base::Feature kBackgroundVideoTrackOptimization{ | 190 const base::Feature kBackgroundVideoTrackOptimization{ |
| 187 "BackgroundVideoTrackOptimization", base::FEATURE_DISABLED_BY_DEFAULT}; | 191 "BackgroundVideoTrackOptimization", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 188 | 192 |
| 189 // Let video without audio be paused when it is playing in the background. | 193 // Let video without audio be paused when it is playing in the background. |
| 190 const base::Feature kBackgroundVideoPauseOptimization{ | 194 const base::Feature kBackgroundVideoPauseOptimization{ |
| 191 "BackgroundVideoPauseOptimization", base::FEATURE_DISABLED_BY_DEFAULT}; | 195 "BackgroundVideoPauseOptimization", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 192 | 196 |
| 193 // Make MSE garbage collection algorithm more aggressive when we are under | 197 // Make MSE garbage collection algorithm more aggressive when we are under |
| 194 // moderate or critical memory pressure. This will relieve memory pressure by | 198 // moderate or critical memory pressure. This will relieve memory pressure by |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 // This is completely insecure - DO NOT USE except for testing. | 248 // This is completely insecure - DO NOT USE except for testing. |
| 245 const base::Feature kD3D11VideoDecoding{"D3D11VideoDecoding", | 249 const base::Feature kD3D11VideoDecoding{"D3D11VideoDecoding", |
| 246 base::FEATURE_DISABLED_BY_DEFAULT}; | 250 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 247 | 251 |
| 248 // Enables H264 HW encode acceleration using Media Foundation for Windows. | 252 // Enables H264 HW encode acceleration using Media Foundation for Windows. |
| 249 const base::Feature kMediaFoundationH264Encoding{ | 253 const base::Feature kMediaFoundationH264Encoding{ |
| 250 "MediaFoundationH264Encoding", base::FEATURE_ENABLED_BY_DEFAULT}; | 254 "MediaFoundationH264Encoding", base::FEATURE_ENABLED_BY_DEFAULT}; |
| 251 #endif // defined(OS_WIN) | 255 #endif // defined(OS_WIN) |
| 252 | 256 |
| 253 } // namespace media | 257 } // namespace media |
| OLD | NEW |