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

Side by Side Diff: content/public/common/gpu_memory_stats.h

Issue 10854076: Add GPU memory tab to the task manager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Incorporate review feedback Created 8 years, 4 months 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 | Annotate | Revision Log
OLDNEW
(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 "content/common/content_export.h"
16
17 namespace content {
18
19 struct CONTENT_EXPORT GPUVideoMemoryUsageStats {
20 GPUVideoMemoryUsageStats();
21 ~GPUVideoMemoryUsageStats();
22
23 struct CONTENT_EXPORT ProcessStats {
24 ProcessStats();
25 ~ProcessStats();
26
27 // The bytes of GPU resources accessible by this process
28 size_t video_memory;
29
30 // Set to true if this process' GPU resource count is inflated because
31 // it is counting other processes' resources (e.g, the GPU process has
32 // duplicate set to true because it is the aggregate of all processes)
33 bool has_duplicates;
34 };
35 typedef std::map<base::ProcessId, ProcessStats> ProcessMap;
36
37 // A map of processes to their GPU resource consumption
38 ProcessMap process_map;
39 };
40
41 } // namespace content
42
43 #endif // CONTENT_PUBLIC_COMMON_GPU_MEMORY_STATS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698