Make a ColorSpace dep public to avoid include errors

Since mojom will put headers from ui/gfx/ipc/color into
code in other targets, the dependency need to be public so
that other code get the right dependency.

Without the fix gn check --check-generated reports this:

ERROR at //out/Default/gen/services/viz/public/interfaces/compositing/ Can't include this header from here.
#include "ui/gfx/ipc/color/gfx_param_traits.h"
The target:
is including a file from the target:

It's usually best to depend directly on the destination target.
In some cases, the destination target is considered a subcomponent
of an intermediate target. In this case, the intermediate target
should depend publicly on the destination to forward the ability
to include headers.

Dependency chain (there may also be others):
  //services/viz/public/interfaces:interfaces -->
  //ui/gfx/mojo:mojo --[private]-->

Bug: 938893
Change-Id: I5ab887bc137223c74e7b84ffc75a9fee0b3c01cb
Commit-Queue: Daniel Cheng <>
Auto-Submit: Daniel Bratell <>
Reviewed-by: Daniel Cheng <>
Cr-Commit-Position: refs/heads/master@{#644370}
diff --git a/ui/gfx/mojo/color_space.typemap b/ui/gfx/mojo/color_space.typemap
index 36ebf09..408ac7c 100644
--- a/ui/gfx/mojo/color_space.typemap
+++ b/ui/gfx/mojo/color_space.typemap
@@ -8,8 +8,6 @@
 public_deps = [
-deps = [
 type_mappings = [ "gfx.mojom.ColorSpace=gfx::ColorSpace" ]