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

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

Issue 1413593012: Record UMA stats for Blink decoded image orientation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase patch Created 5 years, 1 month 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/BitmapImage.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/BitmapImage.cpp b/third_party/WebKit/Source/platform/graphics/BitmapImage.cpp
index 2eb04ee146c4b639b00126f061ddef858ea2b9e4..390a232786d63b411e43c806481ca4c76fb9dc2f 100644
--- a/third_party/WebKit/Source/platform/graphics/BitmapImage.cpp
+++ b/third_party/WebKit/Source/platform/graphics/BitmapImage.cpp
@@ -368,6 +368,7 @@ bool BitmapImage::isSizeAvailable()
fileExtention == "bmp" ? ImageBMP :
ImageUnknown;
Platform::current()->histogramEnumeration("Blink.DecodedImageType", type, LastDecodedImageType + 1);
+ Platform::current()->histogramEnumeration("Blink.DecodedImageOrientation", m_source.orientationAtIndex(0).orientation(), OriginLeftBottom + 1);
Alexei Svitkine (slow) 2015/11/17 22:00:25 Nit: Can you add an entry to the enum with OriginL
}
return m_sizeAvailable;

Powered by Google App Engine
This is Rietveld 408576698