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

Side by Side Diff: content/common/gpu/gpu_memory_uma_stats.h

Issue 12475002: Delete memory manager dead code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Resolve against CrOS changes Created 7 years, 9 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
« no previous file with comments | « content/common/gpu/gpu_memory_manager_unittest.cc ('k') | content/common/gpu/gpu_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 CONTENT_COMMON_GPU_GPU_MEMORY_UMA_STATS_H_ 5 #ifndef CONTENT_COMMON_GPU_GPU_MEMORY_UMA_STATS_H_
6 #define CONTENT_COMMON_GPU_GPU_MEMORY_UMA_STATS_H_ 6 #define CONTENT_COMMON_GPU_GPU_MEMORY_UMA_STATS_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 9
10 namespace content { 10 namespace content {
11 11
12 // Memory usage statistics send periodically to the browser process to report 12 // Memory usage statistics send periodically to the browser process to report
13 // in UMA histograms if the GPU process crashes. 13 // in UMA histograms if the GPU process crashes.
14 struct GPUMemoryUmaStats { 14 struct GPUMemoryUmaStats {
15 GPUMemoryUmaStats() 15 GPUMemoryUmaStats()
16 : bytes_allocated_current(0), 16 : bytes_allocated_current(0),
17 bytes_allocated_max(0), 17 bytes_allocated_max(0),
18 bytes_limit(0), 18 bytes_limit(0),
19 client_count(0), 19 client_count(0),
20 context_group_count(0), 20 context_group_count(0) {
21 window_count(0) {
22 } 21 }
23 22
24 // The number of bytes currently allocated. 23 // The number of bytes currently allocated.
25 size_t bytes_allocated_current; 24 size_t bytes_allocated_current;
26 25
27 // The maximum number of bytes ever allocated at once. 26 // The maximum number of bytes ever allocated at once.
28 size_t bytes_allocated_max; 27 size_t bytes_allocated_max;
29 28
30 // The memory limit being imposed by the memory manager. 29 // The memory limit being imposed by the memory manager.
31 size_t bytes_limit; 30 size_t bytes_limit;
32 31
33 // The number of managed memory clients. 32 // The number of managed memory clients.
34 size_t client_count; 33 size_t client_count;
35 34
36 // The number of context groups. 35 // The number of context groups.
37 size_t context_group_count; 36 size_t context_group_count;
38 37
39 // The number of visible windows. 38 // The number of visible windows.
40 uint32 window_count; 39 uint32 window_count;
41 }; 40 };
42 41
43 } // namespace content 42 } // namespace content
44 43
45 #endif // CONTENT_COMMON_GPU_GPU_MEMORY_UMA_STATS_H_ 44 #endif // CONTENT_COMMON_GPU_GPU_MEMORY_UMA_STATS_H_
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_memory_manager_unittest.cc ('k') | content/common/gpu/gpu_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698