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 |
| 54 extern const char kCastInitialScreenWidth[]; |
| 55 extern const char kCastInitialScreenHeight[]; |
| 56 |
53 } // namespace switches | 57 } // namespace switches |
54 | 58 |
55 namespace chromecast { | 59 namespace chromecast { |
56 | 60 |
57 // Gets boolean value from switch |switch_string|. | 61 // Gets boolean value from switch |switch_string|. |
58 // --|switch_string| -> true | 62 // --|switch_string| -> true |
59 // --|switch_string|="true" -> true | 63 // --|switch_string|="true" -> true |
60 // --|switch_string|="false" -> false | 64 // --|switch_string|="false" -> false |
61 // no switch named |switch_string| -> |default_value| | 65 // no switch named |switch_string| -> |default_value| |
62 bool GetSwitchValueBoolean(const std::string& switch_string, | 66 bool GetSwitchValueBoolean(const std::string& switch_string, |
63 const bool default_value); | 67 const bool default_value); |
64 | 68 |
65 } // namespace chromecast | 69 } // namespace chromecast |
66 | 70 |
67 #endif // CHROMECAST_BASE_CHROMECAST_SWITCHES_H_ | 71 #endif // CHROMECAST_BASE_CHROMECAST_SWITCHES_H_ |
OLD | NEW |