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

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

Issue 2884313002: color: Rename blink::ColorSpace to blink::InterpolationSpace (Closed)
Patch Set: Incorporate review feedback Created 3 years, 7 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/ColorSpaceGamut.h
diff --git a/third_party/WebKit/Source/platform/graphics/ColorSpaceGamut.h b/third_party/WebKit/Source/platform/graphics/ColorSpaceGamut.h
new file mode 100644
index 0000000000000000000000000000000000000000..5cb70a284ea09b22893f03225b5f553847e4eda7
--- /dev/null
+++ b/third_party/WebKit/Source/platform/graphics/ColorSpaceGamut.h
@@ -0,0 +1,41 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ColorSpaceGamut_h
+#define ColorSpaceGamut_h
+
+#include "platform/PlatformExport.h"
+
+class SkColorSpace;
+
+namespace blink {
+
+struct WebScreenInfo;
+
+enum class ColorSpaceGamut {
+ // Values synced with 'Gamut' in src/tools/metrics/histograms/histograms.xml
+ kUnknown = 0,
+ kLessThanNTSC = 1,
+ NTSC = 2,
+ SRGB = 3,
+ kAlmostP3 = 4,
+ P3 = 5,
+ kAdobeRGB = 6,
+ kWide = 7,
+ BT2020 = 8,
+ kProPhoto = 9,
+ kUltraWide = 10,
+ kEnd
+};
+
+namespace ColorSpaceUtilities {
+
+PLATFORM_EXPORT ColorSpaceGamut GetColorSpaceGamut(const WebScreenInfo&);
+ColorSpaceGamut GetColorSpaceGamut(SkColorSpace*);
+
+} // namespace ColorSpaceUtilities
+
+} // namespace blink
+
+#endif // ColorSpaceGamut_h

Powered by Google App Engine
This is Rietveld 408576698