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

Unified Diff: ui/gl/angle_platform_impl.cc

Issue 1141263004: Add ANGLE platform methods for boolean histograms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Alexei's comments Created 5 years, 7 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 | « ui/gl/angle_platform_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/angle_platform_impl.cc
diff --git a/ui/gl/angle_platform_impl.cc b/ui/gl/angle_platform_impl.cc
index 732f0882ac76258c5479f52d343690539c4283b9..5ad8b51d54436259377f70390252bf9d49ec3906 100644
--- a/ui/gl/angle_platform_impl.cc
+++ b/ui/gl/angle_platform_impl.cc
@@ -95,4 +95,8 @@ void ANGLEPlatformImpl::histogramSparse(const char* name, int sample) {
UMA_HISTOGRAM_SPARSE_SLOWLY(name, sample);
}
+void ANGLEPlatformImpl::histogramBoolean(const char* name, bool sample) {
+ histogramEnumeration(name, sample ? 1 : 0, 2);
+}
+
} // namespace gfx
« no previous file with comments | « ui/gl/angle_platform_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698