Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(150)

Side by Side Diff: content/common/BUILD.gn

Issue 1846253003: Revert of Refactor content/common/gpu into gpu/ipc/service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « BUILD.gn ('k') | content/common/gpu/ca_layer_partial_damage_tree_mac.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/features.gni") 5 import("//build/config/features.gni")
6 import("//build/config/ui.gni") 6 import("//build/config/ui.gni")
7 import("//content/common/common.gni") 7 import("//content/common/common.gni")
8 import("//media/media_options.gni") 8 import("//media/media_options.gni")
9 import("//mojo/public/tools/bindings/mojom.gni") 9 import("//mojo/public/tools/bindings/mojom.gni")
10 if (is_mac) { 10 if (is_mac) {
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 "//gpu/blink", 166 "//gpu/blink",
167 "//gpu/command_buffer/client:gl_in_process_context", 167 "//gpu/command_buffer/client:gl_in_process_context",
168 "//gpu/command_buffer/client:gles2_c_lib", 168 "//gpu/command_buffer/client:gles2_c_lib",
169 "//gpu/command_buffer/client:gles2_cmd_helper", 169 "//gpu/command_buffer/client:gles2_cmd_helper",
170 "//gpu/command_buffer/client:gles2_implementation", 170 "//gpu/command_buffer/client:gles2_implementation",
171 "//gpu/command_buffer/client:gles2_interface", 171 "//gpu/command_buffer/client:gles2_interface",
172 "//gpu/command_buffer/common:gles2_utils", 172 "//gpu/command_buffer/common:gles2_utils",
173 "//gpu/command_buffer/service", 173 "//gpu/command_buffer/service",
174 "//gpu/ipc/client", 174 "//gpu/ipc/client",
175 "//gpu/ipc/common", 175 "//gpu/ipc/common",
176
177 # TODO(markdittmer): This should be removed once content/common/gpu/media
178 # is refactored into media/ipc.
179 "//gpu/ipc/service",
180 "//gpu/skia_bindings", 176 "//gpu/skia_bindings",
181 "//ipc", 177 "//ipc",
182 "//ipc/mojo", 178 "//ipc/mojo",
183 "//media", 179 "//media",
184 "//media:shared_memory_support", 180 "//media:shared_memory_support",
185 "//media/gpu/ipc/common", 181 "//media/gpu/ipc/common",
186 "//media/midi", 182 "//media/midi",
187 "//mojo/common:common_base", 183 "//mojo/common:common_base",
188 "//mojo/converters/network", 184 "//mojo/converters/network",
189 "//mojo/edk/system", 185 "//mojo/edk/system",
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 set_sources_assignment_filter([]) 219 set_sources_assignment_filter([])
224 sources += [ 220 sources += [
225 "sandbox_linux/sandbox_bpf_base_policy_linux.cc", 221 "sandbox_linux/sandbox_bpf_base_policy_linux.cc",
226 "sandbox_linux/sandbox_bpf_base_policy_linux.h", 222 "sandbox_linux/sandbox_bpf_base_policy_linux.h",
227 ] 223 ]
228 set_sources_assignment_filter(sources_assignment_filter) 224 set_sources_assignment_filter(sources_assignment_filter)
229 } 225 }
230 226
231 if (is_mac) { 227 if (is_mac) {
232 sources += [ 228 sources += [
229 "gpu/gpu_memory_buffer_factory_io_surface.cc",
230 "gpu/gpu_memory_buffer_factory_io_surface.h",
233 "gpu/media/vt_mac.h", 231 "gpu/media/vt_mac.h",
234 "gpu/media/vt_video_decode_accelerator_mac.cc", 232 "gpu/media/vt_video_decode_accelerator_mac.cc",
235 "gpu/media/vt_video_decode_accelerator_mac.h", 233 "gpu/media/vt_video_decode_accelerator_mac.h",
236 "gpu/media/vt_video_encode_accelerator_mac.cc", 234 "gpu/media/vt_video_encode_accelerator_mac.cc",
237 "gpu/media/vt_video_encode_accelerator_mac.h", 235 "gpu/media/vt_video_encode_accelerator_mac.h",
238 ] + get_target_outputs(":libvt_generate_stubs") 236 ] + get_target_outputs(":libvt_generate_stubs")
239 237
240 sources -= [ "plugin_list_posix.cc" ] 238 sources -= [ "plugin_list_posix.cc" ]
241 239
242 deps += [ 240 deps += [
(...skipping 10 matching lines...) Expand all
253 "CoreMedia.framework", 251 "CoreMedia.framework",
254 "CoreVideo.framework", 252 "CoreVideo.framework",
255 "IOSurface.framework", 253 "IOSurface.framework",
256 "OpenGL.framework", 254 "OpenGL.framework",
257 "QuartzCore.framework", 255 "QuartzCore.framework",
258 "sandbox", 256 "sandbox",
259 ] 257 ]
260 } 258 }
261 259
262 if (is_android) { 260 if (is_android) {
261 sources += [
262 "gpu/gpu_memory_buffer_factory_surface_texture.cc",
263 "gpu/gpu_memory_buffer_factory_surface_texture.h",
264 ]
265
263 deps += [ 266 deps += [
264 "//content/public/android:common_aidl", 267 "//content/public/android:common_aidl",
265 "//content/public/android:jni", 268 "//content/public/android:jni",
266 ] 269 ]
267 270
268 libs += [ "android" ] 271 libs += [ "android" ]
269 } 272 }
270 273
271 if (is_debug && !is_component_build && enable_plugins) { 274 if (is_debug && !is_component_build && enable_plugins) {
272 # Content depends on the PPAPI message logging stuff; if this isn't here, 275 # Content depends on the PPAPI message logging stuff; if this isn't here,
273 # some unit test binaries won't compile. This only worked in release mode 276 # some unit test binaries won't compile. This only worked in release mode
274 # because logging is disabled there. 277 # because logging is disabled there.
275 deps += [ "//ppapi/proxy:ipc_sources" ] 278 deps += [ "//ppapi/proxy:ipc_sources" ]
276 } 279 }
277 280
278 if (use_ozone) { 281 if (use_ozone) {
279 deps += [ "//ui/ozone" ] 282 deps += [ "//ui/ozone" ]
280 } else { 283 } else {
281 sources -= [ 284 sources -= [
282 "cursors/webcursor_ozone.cc", 285 "cursors/webcursor_ozone.cc",
283 "font_list_ozone.cc", 286 "font_list_ozone.cc",
287 "gpu/gpu_memory_buffer_factory_ozone_native_pixmap.cc",
288 "gpu/gpu_memory_buffer_factory_ozone_native_pixmap.h",
284 ] 289 ]
285 } 290 }
286 291
287 if (!use_aura || is_android) { 292 if (!use_aura || is_android) {
288 sources -= [ "cursors/webcursor_aura.cc" ] 293 sources -= [ "cursors/webcursor_aura.cc" ]
289 } 294 }
290 295
291 if (!use_aura || !use_x11) { 296 if (!use_aura || !use_x11) {
292 sources -= [ "cursors/webcursor_aurax11.cc" ] 297 sources -= [ "cursors/webcursor_aurax11.cc" ]
293 } 298 }
294 299
295 if (use_pango) { 300 if (use_pango) {
296 configs += [ "//build/config/linux:pangocairo" ] 301 configs += [ "//build/config/linux:pangocairo" ]
297 if (use_ozone) { 302 if (use_ozone) {
298 # If we're using pango, never use this ozone file (it was removed in all 303 # If we're using pango, never use this ozone file (it was removed in all
299 # non-ozone cases above). 304 # non-ozone cases above).
300 sources -= [ "font_list_ozone.cc" ] 305 sources -= [ "font_list_ozone.cc" ]
301 } 306 }
302 } else { 307 } else {
303 sources -= [ "font_list_pango.cc" ] 308 sources -= [ "font_list_pango.cc" ]
304 } 309 }
305 310
311 if (use_x11) {
312 configs += [
313 "//build/config/linux:xcomposite",
314 "//third_party/khronos:khronos_headers",
315 ]
316
317 if (current_cpu != "arm" || !is_chromeos) {
318 sources += [ "gpu/x_util.h" ]
319 }
320 }
321
306 if (enable_plugins) { 322 if (enable_plugins) {
307 deps += [ "//ppapi/shared_impl" ] 323 deps += [ "//ppapi/shared_impl" ]
308 } else { 324 } else {
309 sources -= [ 325 sources -= [
310 "pepper_file_util.cc", 326 "pepper_file_util.cc",
311 "pepper_file_util.h", 327 "pepper_file_util.h",
312 "pepper_messages.h", 328 "pepper_messages.h",
313 "pepper_plugin_list.cc", 329 "pepper_plugin_list.cc",
314 "pepper_plugin_list.h", 330 "pepper_plugin_list.h",
315 "pepper_renderer_instance_data.cc", 331 "pepper_renderer_instance_data.cc",
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 "//components/leveldb/public/interfaces", 557 "//components/leveldb/public/interfaces",
542 "//components/mus/public/interfaces", 558 "//components/mus/public/interfaces",
543 "//content/public/common:mojo_bindings", 559 "//content/public/common:mojo_bindings",
544 "//mojo/shell/public/interfaces", 560 "//mojo/shell/public/interfaces",
545 "//skia/public/interfaces", 561 "//skia/public/interfaces",
546 "//third_party/WebKit/public:mojo_bindings", 562 "//third_party/WebKit/public:mojo_bindings",
547 "//ui/mojo/geometry:interfaces", 563 "//ui/mojo/geometry:interfaces",
548 "//url/mojo:url_mojom_origin", 564 "//url/mojo:url_mojom_origin",
549 ] 565 ]
550 } 566 }
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | content/common/gpu/ca_layer_partial_damage_tree_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698