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

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

Issue 1134993003: ozone: Implement zero/one-copy texture for Ozone GBM. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
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("//build/config/linux/pkg_config.gni")
7 import("//content/common/common.gni") 8 import("//content/common/common.gni")
8 import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni") 9 import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni")
9 10
10 if (is_chromeos && current_cpu != "arm") { 11 if (is_chromeos && current_cpu != "arm") {
11 action("libva_generate_stubs") { 12 action("libva_generate_stubs") {
12 extra_header = "gpu/media/va_stub_header.fragment" 13 extra_header = "gpu/media/va_stub_header.fragment"
13 14
14 script = "../../tools/generate_stubs/generate_stubs.py" 15 script = "../../tools/generate_stubs/generate_stubs.py"
15 sources = [ 16 sources = [
16 "gpu/media/va.sigs", 17 "gpu/media/va.sigs",
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 libs += [ "android" ] 248 libs += [ "android" ]
248 } 249 }
249 250
250 if (is_debug && !is_component_build) { 251 if (is_debug && !is_component_build) {
251 # Content depends on the PPAPI message logging stuff; if this isn't here, 252 # Content depends on the PPAPI message logging stuff; if this isn't here,
252 # some unit test binaries won't compile. This only worked in release mode 253 # some unit test binaries won't compile. This only worked in release mode
253 # because logging is disabled there. 254 # because logging is disabled there.
254 deps += [ "//ppapi/proxy:ipc_sources" ] 255 deps += [ "//ppapi/proxy:ipc_sources" ]
255 } 256 }
256 257
258 if (ozone_platform_gbm) {
259 defines += [ "USE_OZONE_GBM" ]
260 sources += [
261 "gpu/client/gpu_memory_buffer_impl_ozone_gbm.cc",
262 "gpu/client/gpu_memory_buffer_impl_ozone_gbm.h",
263 ]
264 pkg_config("libdrm") {
265 packages = [ "libdrm" ]
266 }
267 public_configs = [ ":libdrm" ]
268 }
269
257 if (is_ios) { 270 if (is_ios) {
258 sources -= [ "user_agent.cc" ] 271 sources -= [ "user_agent.cc" ]
259 assert(false, "Need to add lots of conditions here") 272 assert(false, "Need to add lots of conditions here")
260 } 273 }
261 274
262 if (use_ozone) { 275 if (use_ozone) {
263 deps += [ 276 deps += [
264 "//ui/ozone:ozone", 277 "//ui/ozone:ozone",
265 "//ui/ozone:ozone_base", 278 "//ui/ozone:ozone_base",
266 "//ui/ozone/gpu", 279 "//ui/ozone/gpu",
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 "permission_service.mojom", 500 "permission_service.mojom",
488 "presentation/presentation_service.mojom", 501 "presentation/presentation_service.mojom",
489 "render_frame_setup.mojom", 502 "render_frame_setup.mojom",
490 ] 503 ]
491 504
492 deps = [ 505 deps = [
493 "//content/public/common:mojo_bindings", 506 "//content/public/common:mojo_bindings",
494 "//third_party/mojo/src/mojo/public/interfaces/application:application", 507 "//third_party/mojo/src/mojo/public/interfaces/application:application",
495 ] 508 ]
496 } 509 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698