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

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

Issue 1845563005: Refactor content/common/gpu into gpu/ipc/service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Drop ref to deleted content_tests_gypi_values.content_unittests_ozone_sources 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",
176 "//gpu/skia_bindings", 180 "//gpu/skia_bindings",
177 "//ipc", 181 "//ipc",
178 "//ipc/mojo", 182 "//ipc/mojo",
179 "//media", 183 "//media",
180 "//media:shared_memory_support", 184 "//media:shared_memory_support",
181 "//media/gpu/ipc/client", 185 "//media/gpu/ipc/client",
182 "//media/gpu/ipc/common", 186 "//media/gpu/ipc/common",
183 "//media/midi", 187 "//media/midi",
184 "//mojo/common:common_base", 188 "//mojo/common:common_base",
185 "//mojo/edk/system", 189 "//mojo/edk/system",
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 set_sources_assignment_filter([]) 223 set_sources_assignment_filter([])
220 sources += [ 224 sources += [
221 "sandbox_linux/sandbox_bpf_base_policy_linux.cc", 225 "sandbox_linux/sandbox_bpf_base_policy_linux.cc",
222 "sandbox_linux/sandbox_bpf_base_policy_linux.h", 226 "sandbox_linux/sandbox_bpf_base_policy_linux.h",
223 ] 227 ]
224 set_sources_assignment_filter(sources_assignment_filter) 228 set_sources_assignment_filter(sources_assignment_filter)
225 } 229 }
226 230
227 if (is_mac) { 231 if (is_mac) {
228 sources += [ 232 sources += [
229 "gpu/gpu_memory_buffer_factory_io_surface.cc",
230 "gpu/gpu_memory_buffer_factory_io_surface.h",
231 "gpu/media/vt_mac.h", 233 "gpu/media/vt_mac.h",
232 "gpu/media/vt_video_decode_accelerator_mac.cc", 234 "gpu/media/vt_video_decode_accelerator_mac.cc",
233 "gpu/media/vt_video_decode_accelerator_mac.h", 235 "gpu/media/vt_video_decode_accelerator_mac.h",
234 "gpu/media/vt_video_encode_accelerator_mac.cc", 236 "gpu/media/vt_video_encode_accelerator_mac.cc",
235 "gpu/media/vt_video_encode_accelerator_mac.h", 237 "gpu/media/vt_video_encode_accelerator_mac.h",
236 ] + get_target_outputs(":libvt_generate_stubs") 238 ] + get_target_outputs(":libvt_generate_stubs")
237 239
238 deps += [ 240 deps += [
239 ":libvt_generate_stubs", 241 ":libvt_generate_stubs",
240 "//content:resources", 242 "//content:resources",
241 "//content/app/resources", 243 "//content/app/resources",
242 "//third_party/WebKit/public:image_resources", 244 "//third_party/WebKit/public:image_resources",
243 "//third_party/WebKit/public:resources", 245 "//third_party/WebKit/public:resources",
244 "//ui/accelerated_widget_mac", 246 "//ui/accelerated_widget_mac",
245 ] 247 ]
246 lib_dirs = [ "$mac_sdk_path/usr/lib" ] 248 lib_dirs = [ "$mac_sdk_path/usr/lib" ]
247 libs += [ 249 libs += [
248 "AVFoundation.framework", 250 "AVFoundation.framework",
249 "CoreMedia.framework", 251 "CoreMedia.framework",
250 "CoreVideo.framework", 252 "CoreVideo.framework",
251 "IOSurface.framework", 253 "IOSurface.framework",
252 "OpenGL.framework", 254 "OpenGL.framework",
253 "QuartzCore.framework", 255 "QuartzCore.framework",
254 "sandbox", 256 "sandbox",
255 ] 257 ]
256 } 258 }
257 259
258 if (is_android) { 260 if (is_android) {
259 sources += [
260 "gpu/gpu_memory_buffer_factory_surface_texture.cc",
261 "gpu/gpu_memory_buffer_factory_surface_texture.h",
262 ]
263
264 deps += [ 261 deps += [
265 "//content/public/android:common_aidl", 262 "//content/public/android:common_aidl",
266 "//content/public/android:jni", 263 "//content/public/android:jni",
267 ] 264 ]
268 265
269 libs += [ "android" ] 266 libs += [ "android" ]
270 } 267 }
271 268
272 if (is_debug && !is_component_build && enable_plugins) { 269 if (is_debug && !is_component_build && enable_plugins) {
273 # Content depends on the PPAPI message logging stuff; if this isn't here, 270 # Content depends on the PPAPI message logging stuff; if this isn't here,
274 # some unit test binaries won't compile. This only worked in release mode 271 # some unit test binaries won't compile. This only worked in release mode
275 # because logging is disabled there. 272 # because logging is disabled there.
276 deps += [ "//ppapi/proxy:ipc_sources" ] 273 deps += [ "//ppapi/proxy:ipc_sources" ]
277 } 274 }
278 275
279 if (use_ozone) { 276 if (use_ozone) {
280 deps += [ "//ui/ozone" ] 277 deps += [ "//ui/ozone" ]
281 } else { 278 } else {
282 sources -= [ 279 sources -= [
283 "cursors/webcursor_ozone.cc", 280 "cursors/webcursor_ozone.cc",
284 "font_list_ozone.cc", 281 "font_list_ozone.cc",
285 "gpu/gpu_memory_buffer_factory_ozone_native_pixmap.cc",
286 "gpu/gpu_memory_buffer_factory_ozone_native_pixmap.h",
287 ] 282 ]
288 } 283 }
289 284
290 if (!use_aura || is_android) { 285 if (!use_aura || is_android) {
291 sources -= [ "cursors/webcursor_aura.cc" ] 286 sources -= [ "cursors/webcursor_aura.cc" ]
292 } 287 }
293 288
294 if (!use_aura || !use_x11) { 289 if (!use_aura || !use_x11) {
295 sources -= [ "cursors/webcursor_aurax11.cc" ] 290 sources -= [ "cursors/webcursor_aurax11.cc" ]
296 } 291 }
297 292
298 if (use_pango) { 293 if (use_pango) {
299 configs += [ "//build/config/linux:pangocairo" ] 294 configs += [ "//build/config/linux:pangocairo" ]
300 if (use_ozone) { 295 if (use_ozone) {
301 # If we're using pango, never use this ozone file (it was removed in all 296 # If we're using pango, never use this ozone file (it was removed in all
302 # non-ozone cases above). 297 # non-ozone cases above).
303 sources -= [ "font_list_ozone.cc" ] 298 sources -= [ "font_list_ozone.cc" ]
304 } 299 }
305 } else { 300 } else {
306 sources -= [ "font_list_pango.cc" ] 301 sources -= [ "font_list_pango.cc" ]
307 } 302 }
308 303
309 if (use_x11) {
310 configs += [
311 "//build/config/linux:xcomposite",
312 "//third_party/khronos:khronos_headers",
313 ]
314
315 if (current_cpu != "arm" || !is_chromeos) {
316 sources += [ "gpu/x_util.h" ]
317 }
318 }
319
320 if (enable_plugins) { 304 if (enable_plugins) {
321 deps += [ "//ppapi/shared_impl" ] 305 deps += [ "//ppapi/shared_impl" ]
322 } else { 306 } else {
323 sources -= [ 307 sources -= [
324 "pepper_file_util.cc", 308 "pepper_file_util.cc",
325 "pepper_file_util.h", 309 "pepper_file_util.h",
326 "pepper_messages.h", 310 "pepper_messages.h",
327 "pepper_plugin_list.cc", 311 "pepper_plugin_list.cc",
328 "pepper_plugin_list.h", 312 "pepper_plugin_list.h",
329 "pepper_renderer_instance_data.cc", 313 "pepper_renderer_instance_data.cc",
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
553 "//components/leveldb/public/interfaces", 537 "//components/leveldb/public/interfaces",
554 "//components/mus/public/interfaces", 538 "//components/mus/public/interfaces",
555 "//content/public/common:mojo_bindings", 539 "//content/public/common:mojo_bindings",
556 "//mojo/shell/public/interfaces", 540 "//mojo/shell/public/interfaces",
557 "//skia/public/interfaces", 541 "//skia/public/interfaces",
558 "//third_party/WebKit/public:mojo_bindings", 542 "//third_party/WebKit/public:mojo_bindings",
559 "//ui/mojo/geometry:interfaces", 543 "//ui/mojo/geometry:interfaces",
560 "//url/mojo:url_mojom_origin", 544 "//url/mojo:url_mojom_origin",
561 ] 545 ]
562 } 546 }
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