summaryrefslogtreecommitdiffstats
path: root/cc
diff options
context:
space:
mode:
authorjbroman <jbroman@chromium.org>2014-09-15 18:04:24 -0700
committerCommit bot <commit-bot@chromium.org>2014-09-16 01:05:39 +0000
commitcba3d2fec7493eeb9a22d712be62969299750c55 (patch)
tree7033e0f366053d791d3dea72e1d47b99c2e6a60a /cc
parent753f06ff55b91b8ff39352e8bf87cbbbd2d695f4 (diff)
downloadchromium_src-cba3d2fec7493eeb9a22d712be62969299750c55.zip
chromium_src-cba3d2fec7493eeb9a22d712be62969299750c55.tar.gz
chromium_src-cba3d2fec7493eeb9a22d712be62969299750c55.tar.bz2
GN: Create a :gles2_interface target to resolve some check errors in //cc.
gles2_interface.h defines a pure virtual interface; targets which use it should depend on it, but not necessarily on an implementation target. Consequently, a //gpu/command_buffer/client:gles2_interface target was created to reflect the dependency on this interface without linking a particular implementation. This resolves an issue with //cc trying to use this header without having a dependency on a target which includes it. Review URL: https://codereview.chromium.org/464153002 Cr-Commit-Position: refs/heads/master@{#294956}
Diffstat (limited to 'cc')
-rw-r--r--cc/BUILD.gn6
1 files changed, 6 insertions, 0 deletions
diff --git a/cc/BUILD.gn b/cc/BUILD.gn
index e83f173..2a8e3fa 100644
--- a/cc/BUILD.gn
+++ b/cc/BUILD.gn
@@ -478,6 +478,7 @@ component("cc") {
"//base",
"//base/third_party/dynamic_annotations",
"//gpu",
+ "//gpu/command_buffer/client:gles2_interface",
"//media",
"//skia",
"//ui/events:events_base",
@@ -642,6 +643,10 @@ source_set("test_support") {
if (!is_android) { # TODO(GYP) Enable on Android when osmesa links.
deps += [ "//third_party/mesa:osmesa" ]
}
+
+ forward_dependent_configs_from = [
+ "//gpu:test_support",
+ ]
}
test("cc_unittests") {
@@ -775,6 +780,7 @@ test("cc_unittests") {
"//cc/surfaces",
"//gpu",
"//gpu:test_support",
+ "//gpu/command_buffer/client:gles2_interface",
"//gpu/command_buffer/common:gles2_utils",
"//media",
"//testing/gmock",