| 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 | 7 |
| 8 namespace switches { | 8 namespace switches { |
| 9 | 9 |
| 10 // Allow users to specify a custom buffer size for debugging purpose. | 10 // Allow users to specify a custom buffer size for debugging purpose. |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 const char kEnableVp9InMp4[] = "enable-vp9-in-mp4"; | 124 const char kEnableVp9InMp4[] = "enable-vp9-in-mp4"; |
| 125 | 125 |
| 126 // Switches which method is used to compute the encoder utilization metric | 126 // Switches which method is used to compute the encoder utilization metric |
| 127 // (e.g., --cast-encoder-util-heuristic=backlog). | 127 // (e.g., --cast-encoder-util-heuristic=backlog). |
| 128 // | 128 // |
| 129 // TODO(miu): This is temporary, for lab performance testing, until a | 129 // TODO(miu): This is temporary, for lab performance testing, until a |
| 130 // good "works for all" solution is confirmed. | 130 // good "works for all" solution is confirmed. |
| 131 // https://code.google.com/p/chrome-os-partner/issues/detail?id=54806 | 131 // https://code.google.com/p/chrome-os-partner/issues/detail?id=54806 |
| 132 const char kCastEncoderUtilHeuristic[] = "cast-encoder-util-heuristic"; | 132 const char kCastEncoderUtilHeuristic[] = "cast-encoder-util-heuristic"; |
| 133 | 133 |
| 134 // Force media player starting in fullscreen mode, which would use SurfaceView |
| 135 // instead of SurfaceTexture on Android. |
| 136 const char kForceMediaPlayerStartingInFullscreenMode[] = |
| 137 "force-media-player-starting-in-fullscreen-mode"; |
| 138 |
| 134 } // namespace switches | 139 } // namespace switches |
| 135 | 140 |
| 136 namespace media { | 141 namespace media { |
| 137 | 142 |
| 138 #if defined(ENABLE_PLUGINS) | 143 #if defined(ENABLE_PLUGINS) |
| 139 // Let flash join and be controlled by media session, only valid when | 144 // Let flash join and be controlled by media session, only valid when |
| 140 // |kEnableDefaultMediaSession| is on. | 145 // |kEnableDefaultMediaSession| is on. |
| 141 const base::Feature kFlashJoinsMediaSession{"flash-join-media-session", | 146 const base::Feature kFlashJoinsMediaSession{"flash-join-media-session", |
| 142 base::FEATURE_DISABLED_BY_DEFAULT}; | 147 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 143 #endif // defined(ENABLE_PLUGINS) | 148 #endif // defined(ENABLE_PLUGINS) |
| 144 | 149 |
| 145 // Use new audio rendering mixer. | 150 // Use new audio rendering mixer. |
| 146 const base::Feature kNewAudioRenderingMixingStrategy{ | 151 const base::Feature kNewAudioRenderingMixingStrategy{ |
| 147 "NewAudioRenderingMixingStrategy", base::FEATURE_DISABLED_BY_DEFAULT}; | 152 "NewAudioRenderingMixingStrategy", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 148 | 153 |
| 149 // Use shared block-based buffering for media. | 154 // Use shared block-based buffering for media. |
| 150 const base::Feature kUseNewMediaCache{"use-new-media-cache", | 155 const base::Feature kUseNewMediaCache{"use-new-media-cache", |
| 151 base::FEATURE_ENABLED_BY_DEFAULT}; | 156 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 152 | 157 |
| 153 } // namespace media | 158 } // namespace media |
| OLD | NEW |