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

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

Issue 2567983004: color: Add histograms for gamut (Closed)
Patch Set: merged Created 4 years 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 d3f7bd08a260ead1450c7f8fd8a81be8314c0129..32c5f7398f3d1629bb25a43296206ea61728b81a 100644
--- a/third_party/WebKit/Source/platform/graphics/BitmapImageMetrics.h
+++ b/third_party/WebKit/Source/platform/graphics/BitmapImageMetrics.h
@@ -46,13 +46,30 @@ class PLATFORM_EXPORT BitmapImageMetrics {
GammaEnd = GammaNamed + 1,
};
+ enum Gamut {
+ // Values synced with 'Gamut' in src/tools/metrics/histograms/histograms.xml
+ GamutUnknown = 0,
+ GamutLessThanNTSC = 1,
+ GamutNTSC = 2,
+ GamutSRGB = 3,
+ GamutAlmostP3 = 4,
+ GamutP3 = 5,
+ GamutAdobeRGB = 6,
+ GamutWide = 7,
+ GamutBT2020 = 8,
+ GamutProPhoto = 9,
+ GamutUltraWide = 10,
+ GamutEnd
+ };
+
static void countDecodedImageType(const String& type);
static void countImageOrientation(const ImageOrientationEnum);
- static void countImageGamma(SkColorSpace*);
- static void countOutputGamma(SkColorSpace*);
+ static void countImageGammaAndGamut(SkColorSpace*);
+ static void countOutputGammaAndGamut(SkColorSpace*);
private:
static Gamma getColorSpaceGamma(SkColorSpace*);
+ static Gamut getColorSpaceGamut(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