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

Unified Diff: tools/metrics/histograms/histograms.xml

Side-by-side diff isn't available for this file because of its large size.
Issue 1820813004: Add UMA to HTMLCanvasElement to track image formats usage of toDataURL/toBlob (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Matching name of histogram Created 4 years, 9 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:
Download patch
Index: tools/metrics/histograms/histograms.xml
diff --git a/tools/metrics/histograms/histograms.xml b/tools/metrics/histograms/histograms.xml
index ba8aa2e7d974703b9e82056b9b0ae5905c399184..d8acd83e967176334aa526071a96652bb27f0aed 100644
--- a/tools/metrics/histograms/histograms.xml
+++ b/tools/metrics/histograms/histograms.xml
@@ -3903,6 +3903,14 @@ http://cs/file:chrome/histograms.xml - but prefer this file for new entries.
</summary>
</histogram>
+<histogram name="Canvas.ReturnImageFormats" enum="CanvasReturnImageFormat">
+ <owner>xlai@chromium.org</owner>
+ <summary>
+ Records the occurence of image file formats passed into toDataURL and toBlob
+ functions in canvas.
+ </summary>
+</histogram>
+
<histogram name="CAPSUpdater.Step" enum="CAPSUpdaterStep">
<owner>cpu@chromium.org</owner>
<summary>
@@ -60838,6 +60846,16 @@ http://cs/file:chrome/histograms.xml - but prefer this file for new entries.
<int value="11" label="HibernationAbortedBecauseNoSurface"/>
</enum>
+<enum name="CanvasReturnImageFormat" type="int">
+ <int value="0" label="PNG"/>
+ <int value="1" label="JPEG"/>
+ <int value="2" label="WEBP"/>
+ <int value="3" label="GIF"/>
+ <int value="4" label="BMP"/>
+ <int value="5" label="ICO"/>
+ <int value="6" label="TIFF"/>
+</enum>
+
<enum name="CAPSUpdaterStep" type="int">
<int value="0" label="CAPS component ready"/>
<int value="1" label="CAPS component missing"/>
@@ -84783,6 +84801,13 @@ To add a new entry, add it with any value and run test to compute valid value.
<affected-histogram name="PLT.BeginToFinish_Reload"/>
</histogram_suffixes>
+<histogram_suffixes name="CanvasReturnImageFormatFunctions">
+ <suffix name="toDataURL" label="Image formats passed to canvas.toDataURL"/>
+ <suffix name="toBlobCallback"
+ label="Image formats passed to canvas.toBlob(callback)"/>
+ <affected-histogram name="Canvas.ReturnImageFormats"/>
+</histogram_suffixes>
+
<histogram_suffixes name="CertificateTypeAlgorithms" separator=".">
<owner>rsleevi@chromium.org</owner>
<suffix name="DH" label="DH"/>

Powered by Google App Engine
This is Rietveld 408576698