| 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 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 | 270 |
| 267 // The default value is platform dependant. | 271 // The default value is platform dependant. |
| 268 #if defined(OS_ANDROID) | 272 #if defined(OS_ANDROID) |
| 269 return switches::autoplay::kUserGestureRequiredPolicy; | 273 return switches::autoplay::kUserGestureRequiredPolicy; |
| 270 #else | 274 #else |
| 271 return switches::autoplay::kNoUserGestureRequiredPolicy; | 275 return switches::autoplay::kNoUserGestureRequiredPolicy; |
| 272 #endif | 276 #endif |
| 273 } | 277 } |
| 274 | 278 |
| 275 } // namespace media | 279 } // namespace media |
| OLD | NEW |