| Index: content/public/common/gpu_info.h
|
| diff --git a/content/public/common/gpu_info.h b/content/public/common/gpu_info.h
|
| index 5a01e182482e5c410dc554cd0a86ef670e8b4818..afea3a7b0ea488738e0f30570f9c6ae7e05b0bed 100644
|
| --- a/content/public/common/gpu_info.h
|
| +++ b/content/public/common/gpu_info.h
|
| @@ -8,10 +8,12 @@
|
| // Provides access to the GPU information for the system
|
| // on which chrome is currently running.
|
|
|
| +#include <map>
|
| #include <string>
|
| #include <vector>
|
|
|
| #include "base/basictypes.h"
|
| +#include "base/process.h"
|
| #include "base/time.h"
|
| #include "build/build_config.h"
|
| #include "content/common/content_export.h"
|
| @@ -110,6 +112,27 @@ struct CONTENT_EXPORT GPUInfo {
|
| #endif
|
| };
|
|
|
| +struct CONTENT_EXPORT GPUVidmemUsageStats {
|
| + GPUVidmemUsageStats();
|
| + ~GPUVidmemUsageStats();
|
| + struct CONTENT_EXPORT GPUProcessVidmemUsageStats {
|
| + GPUProcessVidmemUsageStats();
|
| + ~GPUProcessVidmemUsageStats();
|
| +
|
| + // The bytes of GPU resources accessible by this process
|
| + size_t vidmem;
|
| +
|
| + // Set to true if this process' GPU resource count is inflated because
|
| + // it is counting other processes' resources (e.g, the GPU process has
|
| + // duplicate set to true because it is the aggregate of all processes)
|
| + bool has_duplicates;
|
| + };
|
| + typedef std::map<base::ProcessId,GPUProcessVidmemUsageStats> ProcessMap;
|
| +
|
| + // A map of processes to their GPU resource consumption
|
| + ProcessMap process_map;
|
| +};
|
| +
|
| } // namespace content
|
|
|
| #endif // CONTENT_PUBLIC_COMMON_GPU_INFO_H_
|
|
|