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

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

Issue 2567983004: color: Add histograms for gamut (Closed)
Patch Set: add ProPhoto + bugfix 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..c5ac84fef0f672d2d4a1b99585a3fc1dc63b7303 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 = GamutBT2020 + 1,
Ken Russell (switch to Gerrit) 2016/12/13 01:45:52 GamutEnd looks incorrectly computed. Why not just
hubbe 2016/12/13 04:15:18 Done.
+ };
+
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