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

Unified Diff: third_party/WebKit/Source/platform/graphics/ImageOrientation.h

Issue 1413593012: Record UMA stats for Blink decoded image orientation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix histograms.xml 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/ImageOrientation.h
diff --git a/third_party/WebKit/Source/platform/graphics/ImageOrientation.h b/third_party/WebKit/Source/platform/graphics/ImageOrientation.h
index a73df6d603f25173cf86ddcb9b4e00474c50ded2..98b06db548611f0055fa99176a387b0d08eb9f85 100644
--- a/third_party/WebKit/Source/platform/graphics/ImageOrientation.h
+++ b/third_party/WebKit/Source/platform/graphics/ImageOrientation.h
@@ -47,6 +47,7 @@ enum ImageOrientationEnum {
OriginLeftBottom = 8, // 270 degree CW rotation
// All other values are "reserved" as of EXIF 2.2
DefaultImageOrientation = OriginTopLeft,
+ ImageOrientationEnumEnd = OriginLeftBottom + 1,
};
enum RespectImageOrientationEnum {
@@ -84,6 +85,8 @@ public:
inline bool operator==(const ImageOrientation& other) const { return other.m_orientation == m_orientation; }
inline bool operator!=(const ImageOrientation& other) const { return !(*this == other); }
+ ImageOrientationEnum orientation() const { return m_orientation; }
+
private:
// FIXME: This only needs to be one byte.
ImageOrientationEnum m_orientation;

Powered by Google App Engine
This is Rietveld 408576698