OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/ui.gni") | 5 import("//build/config/ui.gni") |
6 import("//content/content.gni") | 6 import("//content/content.gni") |
7 import("//media/media_options.gni") | 7 import("//media/media_options.gni") |
8 | 8 |
9 # See //content/BUILD.gn for how this works. | 9 # See //content/BUILD.gn for how this works. |
10 group("gpu") { | 10 group("gpu") { |
11 visibility = [ "//content/*" ] | 11 visibility = [ "//content/*" ] |
12 | 12 |
13 if (is_component_build) { | 13 if (is_component_build) { |
14 public_deps = [ | 14 public_deps = [ |
15 "//content", | 15 "//content", |
16 ] | 16 ] |
17 } else { | 17 } else { |
18 public_deps = [ | 18 public_deps = [ |
19 ":gpu_sources", | 19 ":gpu_sources", |
20 ] | 20 ] |
21 } | 21 } |
22 } | 22 } |
23 | 23 |
24 source_set("gpu_sources") { | 24 source_set("gpu_sources") { |
25 visibility = [ "//content/*" ] | 25 visibility = [ "//content/*" ] |
26 | 26 |
27 sources = [ | 27 sources = [ |
| 28 "content_gpu_message_generator.cc", |
| 29 "content_gpu_message_generator.h", |
28 "gpu_child_thread.cc", | 30 "gpu_child_thread.cc", |
29 "gpu_child_thread.h", | 31 "gpu_child_thread.h", |
| 32 "gpu_host_messages.h", |
30 "gpu_main.cc", | 33 "gpu_main.cc", |
31 "gpu_process.cc", | 34 "gpu_process.cc", |
32 "gpu_process.h", | 35 "gpu_process.h", |
33 "gpu_process_control_impl.cc", | 36 "gpu_process_control_impl.cc", |
34 "gpu_process_control_impl.h", | 37 "gpu_process_control_impl.h", |
35 "gpu_watchdog_thread.cc", | 38 "gpu_watchdog_thread.cc", |
36 "gpu_watchdog_thread.h", | 39 "gpu_watchdog_thread.h", |
37 "in_process_gpu_thread.cc", | 40 "in_process_gpu_thread.cc", |
38 "in_process_gpu_thread.h", | 41 "in_process_gpu_thread.h", |
39 ] | 42 ] |
40 | 43 |
41 configs += [ "//content:content_implementation" ] | 44 configs += [ "//content:content_implementation" ] |
42 | 45 |
43 deps = [ | 46 deps = [ |
44 "//base", | 47 "//base", |
45 "//content:export", | 48 "//content:export", |
46 "//content/public/child:child_sources", | 49 "//content/public/child:child_sources", |
| 50 "//content/public/common:common_sources", |
47 "//gpu:gpu", | 51 "//gpu:gpu", |
| 52 "//gpu/ipc/common", |
| 53 "//ipc", |
48 "//mojo/shell/public/interfaces", | 54 "//mojo/shell/public/interfaces", |
49 "//skia", | 55 "//skia", |
50 "//ui/gl", | 56 "//ui/gl", |
51 ] | 57 ] |
52 | 58 |
53 public_deps = [ | 59 public_deps = [ |
54 "//content/common:mojo_bindings", | 60 "//content/common:mojo_bindings", |
55 ] | 61 ] |
56 | 62 |
57 if (mojo_media_host == "gpu") { | 63 if (mojo_media_host == "gpu") { |
(...skipping 17 matching lines...) Expand all Loading... |
75 } | 81 } |
76 | 82 |
77 if (use_x11) { | 83 if (use_x11) { |
78 deps += [ "//ui/events/platform/x11" ] | 84 deps += [ "//ui/events/platform/x11" ] |
79 } | 85 } |
80 | 86 |
81 if (enable_vulkan) { | 87 if (enable_vulkan) { |
82 deps += [ "//gpu/vulkan" ] | 88 deps += [ "//gpu/vulkan" ] |
83 } | 89 } |
84 } | 90 } |
OLD | NEW |