Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(478)

Side by Side Diff: base/sys_info.h

Issue 2585633004: ozone: Allow ozone evdev/kvm features to be enabled without running on ChromeOS. (Closed)
Patch Set: fix bad rebase Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #ifndef BASE_SYS_INFO_H_ 5 #ifndef BASE_SYS_INFO_H_
6 #define BASE_SYS_INFO_H_ 6 #define BASE_SYS_INFO_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 // Returns the creation time of /etc/lsb-release. (Used to get the date and 123 // Returns the creation time of /etc/lsb-release. (Used to get the date and
124 // time of the Chrome OS build). 124 // time of the Chrome OS build).
125 static Time GetLsbReleaseTime(); 125 static Time GetLsbReleaseTime();
126 126
127 // Returns true when actually running in a Chrome OS environment. 127 // Returns true when actually running in a Chrome OS environment.
128 static bool IsRunningOnChromeOS(); 128 static bool IsRunningOnChromeOS();
129 129
130 // Test method to force re-parsing of lsb-release. 130 // Test method to force re-parsing of lsb-release.
131 static void SetChromeOSVersionInfoForTest(const std::string& lsb_release, 131 static void SetChromeOSVersionInfoForTest(const std::string& lsb_release,
132 const Time& lsb_release_time); 132 const Time& lsb_release_time);
133
134 // Returns true when running as system compositor. Ie. using libudev, kms and
135 // evdev for input and output.
136 static bool IsRunningAsSystemCompositor();
rjkroege 2017/01/02 01:26:27 nitpicking that you can ignore: what you mean here
reveman 2017/01/02 07:11:32 I'm expected that we'll keep having support for ru
133 #endif // defined(OS_CHROMEOS) 137 #endif // defined(OS_CHROMEOS)
134 138
135 #if defined(OS_ANDROID) 139 #if defined(OS_ANDROID)
136 // Returns the Android build's codename. 140 // Returns the Android build's codename.
137 static std::string GetAndroidBuildCodename(); 141 static std::string GetAndroidBuildCodename();
138 142
139 // Returns the Android build ID. 143 // Returns the Android build ID.
140 static std::string GetAndroidBuildID(); 144 static std::string GetAndroidBuildID();
141 145
142 static int DalvikHeapSizeMB(); 146 static int DalvikHeapSizeMB();
143 static int DalvikHeapGrowthLimitMB(); 147 static int DalvikHeapGrowthLimitMB();
144 #endif // defined(OS_ANDROID) 148 #endif // defined(OS_ANDROID)
145 149
146 // Returns true if this is a low-end device. 150 // Returns true if this is a low-end device.
147 // Low-end device refers to devices having less than 512M memory in the 151 // Low-end device refers to devices having less than 512M memory in the
148 // current implementation. 152 // current implementation.
149 static bool IsLowEndDevice(); 153 static bool IsLowEndDevice();
150 }; 154 };
151 155
152 } // namespace base 156 } // namespace base
153 157
154 #endif // BASE_SYS_INFO_H_ 158 #endif // BASE_SYS_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698