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

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: Refactor 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
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..18471d73dd4ca725800cd321365720bfede89908 100644
--- a/third_party/WebKit/Source/platform/graphics/BitmapImageMetrics.h
+++ b/third_party/WebKit/Source/platform/graphics/BitmapImageMetrics.h
@@ -5,6 +5,7 @@
#ifndef BitmapImageMetrics_h
#define BitmapImageMetrics_h
+#include "SkColorSpace.h"
f(malita) 2016/07/25 16:13:54 third_party/skia/include/core/SkColorSpace.h
msarett 2016/07/25 16:50:51 Done.
#include "platform/PlatformExport.h"
#include "platform/graphics/ImageOrientation.h"
#include "wtf/Allocator.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

Powered by Google App Engine
This is Rietveld 408576698