| 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/linux/pkg_config.gni") | 5 import("//build/config/linux/pkg_config.gni") |
| 6 import("//ui/ozone/ozone.gni") | 6 import("//ui/ozone/ozone.gni") |
| 7 | 7 |
| 8 declare_args() { | 8 declare_args() { |
| 9 use_mesa_platform_null = false | 9 use_mesa_platform_null = false |
| 10 use_drm_atomic = false | 10 use_drm_atomic = false |
| 11 | |
| 12 # TODO(dshwang): remove this flag when all gbm hardware supports vgem map. | |
| 13 # crbug.com/519587 | |
| 14 use_vgem_map = false | |
| 15 } | 11 } |
| 16 | 12 |
| 17 pkg_config("libdrm") { | 13 pkg_config("libdrm") { |
| 18 packages = [ "libdrm" ] | 14 packages = [ "libdrm" ] |
| 19 } | 15 } |
| 20 | 16 |
| 21 source_set("drm_common") { | 17 source_set("drm_common") { |
| 22 sources = [ | 18 sources = [ |
| 23 "common/client_native_pixmap_factory_drm.cc", | 19 "common/client_native_pixmap_factory_drm.cc", |
| 24 "common/client_native_pixmap_factory_drm.h", | 20 "common/client_native_pixmap_factory_drm.h", |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 "//third_party/khronos:khronos_headers", | 194 "//third_party/khronos:khronos_headers", |
| 199 ] | 195 ] |
| 200 | 196 |
| 201 defines = [] | 197 defines = [] |
| 202 | 198 |
| 203 if (use_mesa_platform_null) { | 199 if (use_mesa_platform_null) { |
| 204 defines += [ "USE_MESA_PLATFORM_NULL" ] | 200 defines += [ "USE_MESA_PLATFORM_NULL" ] |
| 205 } | 201 } |
| 206 | 202 |
| 207 if (use_vgem_map) { | 203 if (use_vgem_map) { |
| 208 defines += [ "USE_VGEM_MAP" ] | 204 configs += [ "//ui/ozone:vgem_map" ] |
| 209 | 205 |
| 210 sources += [ | 206 sources += [ |
| 211 "gpu/client_native_pixmap_vgem.cc", | 207 "gpu/client_native_pixmap_vgem.cc", |
| 212 "gpu/client_native_pixmap_vgem.h", | 208 "gpu/client_native_pixmap_vgem.h", |
| 213 ] | 209 ] |
| 214 } | 210 } |
| 215 } | 211 } |
| 216 } | 212 } |
| OLD | NEW |