OLD | NEW |
1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2008 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 "base/sys_info.h" | 5 #include "base/sys_info.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 | 93 |
94 if (height) | 94 if (height) |
95 *height = GetSystemMetrics(SM_CYSCREEN); | 95 *height = GetSystemMetrics(SM_CYSCREEN); |
96 } | 96 } |
97 | 97 |
98 // static | 98 // static |
99 int SysInfo::DisplayCount() { | 99 int SysInfo::DisplayCount() { |
100 return GetSystemMetrics(SM_CMONITORS); | 100 return GetSystemMetrics(SM_CMONITORS); |
101 } | 101 } |
102 | 102 |
| 103 // static |
| 104 size_t SysInfo::VMAllocationGranularity() { |
| 105 SYSTEM_INFO sysinfo; |
| 106 GetSystemInfo(&info); |
| 107 |
| 108 return info.dwAllocationGranularity; |
| 109 } |
| 110 |
103 } // namespace base | 111 } // namespace base |
OLD | NEW |