| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef CHROMECAST_BASE_CHROMECAST_SWITCHES_H_ | 5 #ifndef CHROMECAST_BASE_CHROMECAST_SWITCHES_H_ |
| 6 #define CHROMECAST_BASE_CHROMECAST_SWITCHES_H_ | 6 #define CHROMECAST_BASE_CHROMECAST_SWITCHES_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 extern const char kAlsaOutputPeriodSize[]; | 43 extern const char kAlsaOutputPeriodSize[]; |
| 44 extern const char kAlsaOutputStartThreshold[]; | 44 extern const char kAlsaOutputStartThreshold[]; |
| 45 extern const char kAlsaOutputAvailMin[]; | 45 extern const char kAlsaOutputAvailMin[]; |
| 46 extern const char kAlsaCheckCloseTimeout[]; | 46 extern const char kAlsaCheckCloseTimeout[]; |
| 47 extern const char kAlsaEnableUpsampling[]; | 47 extern const char kAlsaEnableUpsampling[]; |
| 48 extern const char kAlsaFixedOutputSampleRate[]; | 48 extern const char kAlsaFixedOutputSampleRate[]; |
| 49 | 49 |
| 50 // Memory pressure switches | 50 // Memory pressure switches |
| 51 extern const char kMemPressureSystemReservedKb[]; | 51 extern const char kMemPressureSystemReservedKb[]; |
| 52 | 52 |
| 53 // GPU switches | 53 // GPU process switches |
| 54 extern const char kCastInitialScreenWidth[]; | 54 extern const char kCastInitialScreenWidth[]; |
| 55 extern const char kCastInitialScreenHeight[]; | 55 extern const char kCastInitialScreenHeight[]; |
| 56 | 56 |
| 57 // Graphics switches |
| 58 extern const char kDesktopWindow1080p[]; |
| 59 |
| 57 } // namespace switches | 60 } // namespace switches |
| 58 | 61 |
| 59 namespace chromecast { | 62 namespace chromecast { |
| 60 | 63 |
| 61 // Gets boolean value from switch |switch_string|. | 64 // Gets boolean value from switch |switch_string|. |
| 62 // --|switch_string| -> true | 65 // --|switch_string| -> true |
| 63 // --|switch_string|="true" -> true | 66 // --|switch_string|="true" -> true |
| 64 // --|switch_string|="false" -> false | 67 // --|switch_string|="false" -> false |
| 65 // no switch named |switch_string| -> |default_value| | 68 // no switch named |switch_string| -> |default_value| |
| 66 bool GetSwitchValueBoolean(const std::string& switch_string, | 69 bool GetSwitchValueBoolean(const std::string& switch_string, |
| 67 const bool default_value); | 70 const bool default_value); |
| 68 | 71 |
| 69 } // namespace chromecast | 72 } // namespace chromecast |
| 70 | 73 |
| 71 #endif // CHROMECAST_BASE_CHROMECAST_SWITCHES_H_ | 74 #endif // CHROMECAST_BASE_CHROMECAST_SWITCHES_H_ |
| OLD | NEW |