Chromium Code Reviews| 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 |