We started redesigning GpuMemoryBuffer interface to handle multiple buffers [0].
[chromium-blink-merge.git] / content / common / gpu / gpu_memory_uma_stats.h
blob467619d35b8e1751db703ce4a447b54f0597cf51
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.
5 #ifndef CONTENT_COMMON_GPU_GPU_MEMORY_UMA_STATS_H_
6 #define CONTENT_COMMON_GPU_GPU_MEMORY_UMA_STATS_H_
8 #include "base/basictypes.h"
10 namespace content {
12 // Memory usage statistics send periodically to the browser process to report
13 // in UMA histograms if the GPU process crashes.
14 struct GPUMemoryUmaStats {
15 GPUMemoryUmaStats()
16 : bytes_allocated_current(0),
17 bytes_allocated_max(0),
18 bytes_limit(0),
19 client_count(0),
20 context_group_count(0) {
23 // The number of bytes currently allocated.
24 size_t bytes_allocated_current;
26 // The maximum number of bytes ever allocated at once.
27 size_t bytes_allocated_max;
29 // The memory limit being imposed by the memory manager.
30 size_t bytes_limit;
32 // The number of managed memory clients.
33 size_t client_count;
35 // The number of context groups.
36 size_t context_group_count;
38 // The number of visible windows.
39 uint32 window_count;
42 } // namespace content
44 #endif // CONTENT_COMMON_GPU_GPU_MEMORY_UMA_STATS_H_