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

Unified Diff: third_party/WebKit/Source/platform/graphics/BitmapImageMetrics.cpp

Issue 2800343004: Add histograms for animated image types
Patch Set: Created 3 years, 8 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: third_party/WebKit/Source/platform/graphics/BitmapImageMetrics.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/BitmapImageMetrics.cpp b/third_party/WebKit/Source/platform/graphics/BitmapImageMetrics.cpp
index 0061d5dcbd8a22f521f8bb7ad8e509726b20da7d..c7c472991d52f0f85154d9134d6d7f09847a1a32 100644
--- a/third_party/WebKit/Source/platform/graphics/BitmapImageMetrics.cpp
+++ b/third_party/WebKit/Source/platform/graphics/BitmapImageMetrics.cpp
@@ -34,6 +34,14 @@ void BitmapImageMetrics::countDecodedImageType(const String& type) {
decodedImageTypeHistogram.count(decodedImageType);
}
+void BitmapImageMetrics::countAnimatedImageType(AnimatedImageType type) {
+ DEFINE_THREAD_SAFE_STATIC_LOCAL(
+ EnumerationHistogram, animatedImageTypeHistogram,
+ new EnumerationHistogram("Blink.AnimatedImageType",
+ AnimatedImageTypeEnumEnd));
+ animatedImageTypeHistogram.count(type);
+}
+
void BitmapImageMetrics::countImageOrientation(
const ImageOrientationEnum orientation) {
DEFINE_THREAD_SAFE_STATIC_LOCAL(

Powered by Google App Engine
This is Rietveld 408576698