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

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

Issue 1619363002: Add compile time checks against longs being used in IPC structs on 32 bit Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: one more per Dmitry Created 4 years, 10 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
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 <stddef.h> 8 #include <stddef.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 context_group_count(0) { 18 context_group_count(0) {
19 } 19 }
20 20
21 // The number of bytes currently allocated. 21 // The number of bytes currently allocated.
22 size_t bytes_allocated_current; 22 uint32_t bytes_allocated_current;
23 23
24 // The maximum number of bytes ever allocated at once. 24 // The maximum number of bytes ever allocated at once.
25 size_t bytes_allocated_max; 25 uint32_t bytes_allocated_max;
26 26
27 // The number of context groups. 27 // The number of context groups.
28 size_t context_group_count; 28 uint32_t context_group_count;
29 }; 29 };
30 30
31 } // namespace content 31 } // namespace content
32 32
33 #endif // CONTENT_COMMON_GPU_GPU_MEMORY_UMA_STATS_H_ 33 #endif // CONTENT_COMMON_GPU_GPU_MEMORY_UMA_STATS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698