| 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 #ifndef GPU_IPC_COMMON_MEMORY_STATS_H_ | 5 #ifndef GPU_IPC_COMMON_MEMORY_STATS_H_ |
| 6 #define GPU_IPC_COMMON_MEMORY_STATS_H_ | 6 #define GPU_IPC_COMMON_MEMORY_STATS_H_ |
| 7 | 7 |
| 8 // Provides access to the GPU information for the system | 8 // Provides access to the GPU information for the system |
| 9 // on which chrome is currently running. | 9 // on which chrome is currently running. |
| 10 | 10 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 // duplicate set to true because it is the aggregate of all processes) | 36 // duplicate set to true because it is the aggregate of all processes) |
| 37 bool has_duplicates; | 37 bool has_duplicates; |
| 38 }; | 38 }; |
| 39 typedef std::map<base::ProcessId, ProcessStats> ProcessMap; | 39 typedef std::map<base::ProcessId, ProcessStats> ProcessMap; |
| 40 | 40 |
| 41 // A map of processes to their GPU resource consumption | 41 // A map of processes to their GPU resource consumption |
| 42 ProcessMap process_map; | 42 ProcessMap process_map; |
| 43 | 43 |
| 44 // The total amount of GPU memory allocated at the time of the request. | 44 // The total amount of GPU memory allocated at the time of the request. |
| 45 uint64_t bytes_allocated; | 45 uint64_t bytes_allocated; |
| 46 | |
| 47 // The maximum amount of GPU memory ever allocated at once. | |
| 48 uint64_t bytes_allocated_historical_max; | |
| 49 }; | 46 }; |
| 50 | 47 |
| 51 } // namespace gpu | 48 } // namespace gpu |
| 52 | 49 |
| 53 #endif // GPU_IPC_COMMON_MEMORY_STATS_H_ | 50 #endif // GPU_IPC_COMMON_MEMORY_STATS_H_ |
| OLD | NEW |