1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef THIRD_PARTY_BLINK_RENDERER_PLATFORM_GRAPHICS_COLOR_SPACE_GAMUT_H_
6 #define THIRD_PARTY_BLINK_RENDERER_PLATFORM_GRAPHICS_COLOR_SPACE_GAMUT_H_
7 
8 #include "third_party/blink/renderer/platform/platform_export.h"
9 
10 struct skcms_ICCProfile;
11 
12 namespace blink {
13 
14 struct ScreenInfo;
15 
16 enum class ColorSpaceGamut {
17   // Values synced with 'Gamut' in src/tools/metrics/histograms/histograms.xml
18   kUnknown = 0,
19   kLessThanNTSC = 1,
20   NTSC = 2,
21   SRGB = 3,
22   kAlmostP3 = 4,
23   P3 = 5,
24   kAdobeRGB = 6,
25   kWide = 7,
26   BT2020 = 8,
27   kProPhoto = 9,
28   kUltraWide = 10,
29   kEnd
30 };
31 
32 namespace color_space_utilities {
33 
34 PLATFORM_EXPORT ColorSpaceGamut GetColorSpaceGamut(const ScreenInfo&);
35 ColorSpaceGamut GetColorSpaceGamut(const skcms_ICCProfile*);
36 
37 }  // namespace color_space_utilities
38 
39 }  // namespace blink
40 
41 #endif  // THIRD_PARTY_BLINK_RENDERER_PLATFORM_GRAPHICS_COLOR_SPACE_GAMUT_H_
42