| 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 "media/base/media_switches.h" | 5 #include "media/base/media_switches.h" |
| 6 #include "base/command_line.h" | 6 #include "base/command_line.h" |
| 7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
| 8 #include "ppapi/features/features.h" | 8 #include "ppapi/features/features.h" |
| 9 | 9 |
| 10 namespace switches { | 10 namespace switches { |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 // when in background. | 187 // when in background. |
| 188 const base::Feature kResumeBackgroundVideo { | 188 const base::Feature kResumeBackgroundVideo { |
| 189 "resume-background-video", | 189 "resume-background-video", |
| 190 #if defined(OS_ANDROID) | 190 #if defined(OS_ANDROID) |
| 191 base::FEATURE_ENABLED_BY_DEFAULT | 191 base::FEATURE_ENABLED_BY_DEFAULT |
| 192 #else | 192 #else |
| 193 base::FEATURE_DISABLED_BY_DEFAULT | 193 base::FEATURE_DISABLED_BY_DEFAULT |
| 194 #endif | 194 #endif |
| 195 }; | 195 }; |
| 196 | 196 |
| 197 // Use AndroidOverlay rather than ContentVideoView in clank? |
| 198 const base::Feature kUseAndroidOverlay{"use-android_overlay", |
| 199 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 200 |
| 197 // Let video track be unselected when video is playing in the background. | 201 // Let video track be unselected when video is playing in the background. |
| 198 const base::Feature kBackgroundVideoTrackOptimization{ | 202 const base::Feature kBackgroundVideoTrackOptimization{ |
| 199 "BackgroundVideoTrackOptimization", base::FEATURE_DISABLED_BY_DEFAULT}; | 203 "BackgroundVideoTrackOptimization", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 200 | 204 |
| 201 // Let video without audio be paused when it is playing in the background. | 205 // Let video without audio be paused when it is playing in the background. |
| 202 const base::Feature kBackgroundVideoPauseOptimization{ | 206 const base::Feature kBackgroundVideoPauseOptimization{ |
| 203 "BackgroundVideoPauseOptimization", base::FEATURE_DISABLED_BY_DEFAULT}; | 207 "BackgroundVideoPauseOptimization", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 204 | 208 |
| 205 // Make MSE garbage collection algorithm more aggressive when we are under | 209 // Make MSE garbage collection algorithm more aggressive when we are under |
| 206 // moderate or critical memory pressure. This will relieve memory pressure by | 210 // moderate or critical memory pressure. This will relieve memory pressure by |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 | 282 |
| 279 // The default value is platform dependant. | 283 // The default value is platform dependant. |
| 280 #if defined(OS_ANDROID) | 284 #if defined(OS_ANDROID) |
| 281 return switches::autoplay::kUserGestureRequiredPolicy; | 285 return switches::autoplay::kUserGestureRequiredPolicy; |
| 282 #else | 286 #else |
| 283 return switches::autoplay::kNoUserGestureRequiredPolicy; | 287 return switches::autoplay::kNoUserGestureRequiredPolicy; |
| 284 #endif | 288 #endif |
| 285 } | 289 } |
| 286 | 290 |
| 287 } // namespace media | 291 } // namespace media |
| OLD | NEW |