gfx: Add utility functions for zcr color manager

Move EOTF and Chromaticity maps to ui/base/wayland. Add functionality to
convert between chrome-color-management protocol enums and
gfx::ColorSpace enums.

BUG=b:192562912

Change-Id: Ie139ccc6efdf607502a67dde30409060119b7419
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3546535
Reviewed-by: Mitsuru Oshima <[email protected]>
Reviewed-by: Jim Shargo <[email protected]>
Commit-Queue: Femi Adegunloye <[email protected]>
Cr-Commit-Position: refs/heads/main@{#998193}
diff --git a/ui/base/wayland/BUILD.gn b/ui/base/wayland/BUILD.gn
index b2d3f8c..c7763d1 100644
--- a/ui/base/wayland/BUILD.gn
+++ b/ui/base/wayland/BUILD.gn
@@ -25,9 +25,9 @@
   ]
 
   public_deps = [
+    "//third_party/wayland:wayland_client",
     "//third_party/wayland-protocols:text_input_extension_protocol",
     "//third_party/wayland-protocols:text_input_protocol",
-    "//third_party/wayland:wayland_client",
     "//ui/base/ime:text_input_types",
   ]
 
@@ -45,14 +45,25 @@
 
   public_deps = [
     "//third_party/abseil-cpp:absl",
+    "//third_party/wayland:wayland_server",
     "//third_party/wayland-protocols:text_input_extension_protocol",
     "//third_party/wayland-protocols:text_input_protocol",
-    "//third_party/wayland:wayland_server",
     "//ui/base/ime:text_input_types",
   ]
 
-  deps = [
-    ":wayland_input_types_impl",
+  deps = [ ":wayland_input_types_impl" ]
+}
+
+source_set("color_manager_util") {
+  sources = [
+    "color_manager_util.cc",
+    "color_manager_util.h",
+  ]
+  public_deps = [
+    "//base",
+    "//components/exo/wayland/protocol:chrome_color_management_protocol",
+    "//third_party/wayland:wayland_server",
+    "//ui/gfx:color_space",
   ]
 }