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

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

Issue 2177933002: Use UMA to track characteristics of dst color spaces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix include Created 4 years, 5 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 | « no previous file | third_party/WebKit/Source/platform/graphics/BitmapImageMetrics.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/graphics/BitmapImageMetrics.h
diff --git a/third_party/WebKit/Source/platform/graphics/BitmapImageMetrics.h b/third_party/WebKit/Source/platform/graphics/BitmapImageMetrics.h
index 7382fe69718764f09dd5ad325d9ce4a150e2e7f9..42c842a45eb007749c723e65705bddf24c4db558 100644
--- a/third_party/WebKit/Source/platform/graphics/BitmapImageMetrics.h
+++ b/third_party/WebKit/Source/platform/graphics/BitmapImageMetrics.h
@@ -7,6 +7,7 @@
#include "platform/PlatformExport.h"
#include "platform/graphics/ImageOrientation.h"
+#include "third_party/skia/include/core/SkColorSpace.h"
#include "wtf/Allocator.h"
#include "wtf/Forward.h"
@@ -27,8 +28,21 @@ public:
DecodedImageTypeEnumEnd = ImageBMP + 1
};
+ enum Gamma {
+ // Values synced with 'Gamma' in src/tools/metrics/histograms/histograms.xml
+ GammaLinear = 0,
+ GammaSRGB = 1,
+ Gamma2Dot2 = 2,
+ GammaNonStandard = 3,
+ GammaEmpty = 4,
+ GammaNull = 5,
+ GammaFail = 6,
+ GammaEnd = GammaFail + 1,
+ };
+
static void countDecodedImageType(const String& type);
static void countImageOrientation(const ImageOrientationEnum);
+ static void countGamma(SkColorSpace*);
};
} // namespace blink
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/graphics/BitmapImageMetrics.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698