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

Unified Diff: content/public/common/gpu_memory_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, 11 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 side-by-side diff with in-line comments
Download patch
Index: content/public/common/gpu_memory_stats.h
diff --git a/content/public/common/gpu_memory_stats.h b/content/public/common/gpu_memory_stats.h
index cb28b23404c8a170db3e9e4c33fabcde42ab9f58..09bda3fe52b9b9a7dd387d42719c60645efe0354 100644
--- a/content/public/common/gpu_memory_stats.h
+++ b/content/public/common/gpu_memory_stats.h
@@ -26,7 +26,7 @@ struct CONTENT_EXPORT GPUVideoMemoryUsageStats {
~ProcessStats();
// The bytes of GPU resources accessible by this process
- size_t video_memory;
+ uint32_t video_memory;
// Set to true if this process' GPU resource count is inflated because
// it is counting other processes' resources (e.g, the GPU process has
@@ -39,10 +39,10 @@ struct CONTENT_EXPORT GPUVideoMemoryUsageStats {
ProcessMap process_map;
// The total amount of GPU memory allocated at the time of the request.
- size_t bytes_allocated;
+ uint32_t bytes_allocated;
// The maximum amount of GPU memory ever allocated at once.
- size_t bytes_allocated_historical_max;
+ uint32_t bytes_allocated_historical_max;
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698