OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CONTENT_PUBLIC_COMMON_GPU_MEMORY_STATS_H_ | |
6 #define CONTENT_PUBLIC_COMMON_GPU_MEMORY_STATS_H_ | |
7 | |
8 // Provides access to the GPU information for the system | |
9 // on which chrome is currently running. | |
10 | |
11 #include <map> | |
12 | |
13 #include "base/basictypes.h" | |
14 #include "base/process.h" | |
15 // #include "base/time.h" | |
jam
2012/08/17 22:47:09
get rid of all the commented out include lines
ccameron
2012/08/17 22:52:36
ACK! Sorry! Done.
| |
16 // #include "build/build_config.h" | |
17 #include "content/common/content_export.h" | |
18 // #include "content/public/common/dx_diag_node.h" | |
19 // #include "content/public/common/gpu_performance_stats.h" | |
20 | |
21 | |
jam
2012/08/17 22:47:09
nit: extra line
ccameron
2012/08/17 22:52:36
Done.
| |
22 namespace content { | |
23 | |
24 struct CONTENT_EXPORT GPUVideoMemoryUsageStats { | |
25 GPUVideoMemoryUsageStats(); | |
26 ~GPUVideoMemoryUsageStats(); | |
27 | |
28 struct CONTENT_EXPORT ProcessStats { | |
29 ProcessStats(); | |
30 ~ProcessStats(); | |
31 | |
32 // The bytes of GPU resources accessible by this process | |
33 size_t video_memory; | |
34 | |
35 // Set to true if this process' GPU resource count is inflated because | |
36 // it is counting other processes' resources (e.g, the GPU process has | |
37 // duplicate set to true because it is the aggregate of all processes) | |
38 bool has_duplicates; | |
39 }; | |
40 typedef std::map<base::ProcessId, ProcessStats> ProcessMap; | |
41 | |
42 // A map of processes to their GPU resource consumption | |
43 ProcessMap process_map; | |
44 }; | |
45 | |
46 } // namespace content | |
47 | |
48 #endif // CONTENT_PUBLIC_COMMON_GPU_MEMORY_STATS_H_ | |
OLD | NEW |