| 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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 }; | 183 }; |
| 184 | 184 |
| 185 // Let video track be unselected when video is playing in the background. | 185 // Let video track be unselected when video is playing in the background. |
| 186 const base::Feature kBackgroundVideoTrackOptimization{ | 186 const base::Feature kBackgroundVideoTrackOptimization{ |
| 187 "BackgroundVideoTrackOptimization", base::FEATURE_DISABLED_BY_DEFAULT}; | 187 "BackgroundVideoTrackOptimization", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 188 | 188 |
| 189 // Let video without audio be paused when it is playing in the background. | 189 // Let video without audio be paused when it is playing in the background. |
| 190 const base::Feature kBackgroundVideoPauseOptimization{ | 190 const base::Feature kBackgroundVideoPauseOptimization{ |
| 191 "BackgroundVideoPauseOptimization", base::FEATURE_DISABLED_BY_DEFAULT}; | 191 "BackgroundVideoPauseOptimization", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 192 | 192 |
| 193 // CanPlayThrough issued according to standard. |
| 194 const base::Feature kCanPlayThrough{ |
| 195 "CanPlayThrough", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 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 |
| 195 // releasing stale data from MSE buffers. | 199 // releasing stale data from MSE buffers. |
| 196 const base::Feature kMemoryPressureBasedSourceBufferGC{ | 200 const base::Feature kMemoryPressureBasedSourceBufferGC{ |
| 197 "MemoryPressureBasedSourceBufferGC", base::FEATURE_DISABLED_BY_DEFAULT}; | 201 "MemoryPressureBasedSourceBufferGC", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 198 | 202 |
| 199 // Use the new Remote Playback / media flinging pipeline. | 203 // Use the new Remote Playback / media flinging pipeline. |
| 200 const base::Feature kNewRemotePlaybackPipeline{ | 204 const base::Feature kNewRemotePlaybackPipeline{ |
| 201 "NewRemotePlaybackPipeline", base::FEATURE_DISABLED_BY_DEFAULT}; | 205 "NewRemotePlaybackPipeline", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 202 | 206 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 // This is completely insecure - DO NOT USE except for testing. | 244 // This is completely insecure - DO NOT USE except for testing. |
| 241 const base::Feature kD3D11VideoDecoding{"D3D11VideoDecoding", | 245 const base::Feature kD3D11VideoDecoding{"D3D11VideoDecoding", |
| 242 base::FEATURE_DISABLED_BY_DEFAULT}; | 246 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 243 | 247 |
| 244 // Enables H264 HW encode acceleration using Media Foundation for Windows. | 248 // Enables H264 HW encode acceleration using Media Foundation for Windows. |
| 245 const base::Feature kMediaFoundationH264Encoding{ | 249 const base::Feature kMediaFoundationH264Encoding{ |
| 246 "MediaFoundationH264Encoding", base::FEATURE_ENABLED_BY_DEFAULT}; | 250 "MediaFoundationH264Encoding", base::FEATURE_ENABLED_BY_DEFAULT}; |
| 247 #endif // defined(OS_WIN) | 251 #endif // defined(OS_WIN) |
| 248 | 252 |
| 249 } // namespace media | 253 } // namespace media |
| OLD | NEW |