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

Unified Diff: gpu/config/gpu_info_collector_win.cc

Issue 660093004: Type conversion fixes, gpu/ edition. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments Created 6 years, 2 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
« no previous file with comments | « gpu/command_buffer/service/texture_manager.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/config/gpu_info_collector_win.cc
diff --git a/gpu/config/gpu_info_collector_win.cc b/gpu/config/gpu_info_collector_win.cc
index 244fd53a3725432252eb4daadd88b38968aaeaa7..53343f6563ad429d3981c9872be336f7b7a7de58 100644
--- a/gpu/config/gpu_info_collector_win.cc
+++ b/gpu/config/gpu_info_collector_win.cc
@@ -154,12 +154,17 @@ GpuPerformanceStats RetrieveGpuPerformanceStatsWithHistograms() {
UMA_HISTOGRAM_TIMES("GPU.WinSAT.ReadResultsFileTime",
base::TimeTicks::Now() - start_time);
- UMA_HISTOGRAM_CUSTOM_COUNTS("GPU.WinSAT.OverallScore2",
- stats.overall * 10, 10, 200, 50);
- UMA_HISTOGRAM_CUSTOM_COUNTS("GPU.WinSAT.GraphicsScore2",
- stats.graphics * 10, 10, 200, 50);
- UMA_HISTOGRAM_CUSTOM_COUNTS("GPU.WinSAT.GamingScore2",
- stats.gaming * 10, 10, 200, 50);
+ UMA_HISTOGRAM_CUSTOM_COUNTS(
+ "GPU.WinSAT.OverallScore2",
+ static_cast<base::HistogramBase::Sample>(stats.overall * 10), 10, 200,
+ 50);
+ UMA_HISTOGRAM_CUSTOM_COUNTS(
+ "GPU.WinSAT.GraphicsScore2",
+ static_cast<base::HistogramBase::Sample>(stats.graphics * 10), 10, 200,
+ 50);
+ UMA_HISTOGRAM_CUSTOM_COUNTS(
+ "GPU.WinSAT.GamingScore2",
+ static_cast<base::HistogramBase::Sample>(stats.gaming * 10), 10, 200, 50);
UMA_HISTOGRAM_BOOLEAN(
"GPU.WinSAT.HasResults",
stats.overall != 0.0 && stats.graphics != 0.0 && stats.gaming != 0.0);
« no previous file with comments | « gpu/command_buffer/service/texture_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698