Structuring GpuPreferences dependencies

The mojo type GpuPreferences did not depend on the implementation
classes. Since the implementation classes in turn depends on
the mojo bindings, there is a dependency cycle. This patch
describes that in the build system in a way that is accepted
by gn check --check-generated

An example of an error:

ERROR at //out/Default/gen/gpu/ipc/common/gpu_preferences.mojom-forward.h:40:11: Include not allowed.
#include "gpu/config/gpu_preferences.h"
It is not in any dependency of
The include file is in the target(s):
which should somehow be reachable.

Bug: 938893
Change-Id: I18a9c0c8684ffbbdbe5d47573150434de397061f
Auto-Submit: Daniel Bratell <>
Commit-Queue: Daniel Cheng <>
Reviewed-by: Antoine Labour <>
Reviewed-by: Daniel Cheng <>
Cr-Commit-Position: refs/heads/master@{#644620}
2 files changed