Chromium Code Reviews| 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 ozone_use_vgem_map = false | |
|
spang
2015/08/12 21:40:03
remove ozone_ prefix
dshwang
2015/08/13 11:30:55
Done.
| |
| 11 } | 15 } |
| 12 | 16 |
| 13 pkg_config("libdrm") { | 17 pkg_config("libdrm") { |
| 14 packages = [ "libdrm" ] | 18 packages = [ "libdrm" ] |
| 15 } | 19 } |
| 16 | 20 |
| 17 source_set("drm_common") { | 21 source_set("drm_common") { |
| 18 sources = [ | 22 sources = [ |
| 19 "common/client_native_pixmap_factory_drm.cc", | 23 "common/client_native_pixmap_factory_drm.cc", |
| 20 "common/client_native_pixmap_factory_drm.h", | 24 "common/client_native_pixmap_factory_drm.h", |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 190 ] | 194 ] |
| 191 | 195 |
| 192 public_configs = [ | 196 public_configs = [ |
| 193 ":libgbm", | 197 ":libgbm", |
| 194 "//third_party/khronos:khronos_headers", | 198 "//third_party/khronos:khronos_headers", |
| 195 ] | 199 ] |
| 196 | 200 |
| 197 if (use_mesa_platform_null) { | 201 if (use_mesa_platform_null) { |
| 198 defines += [ "USE_MESA_PLATFORM_NULL" ] | 202 defines += [ "USE_MESA_PLATFORM_NULL" ] |
| 199 } | 203 } |
| 204 | |
| 205 if (ozone_use_vgem_map) { | |
| 206 defines += [ "OZONE_USE_VGEM_MAP" ] | |
|
spang
2015/08/12 21:40:03
remove OZONE_ prefix
dshwang
2015/08/13 11:30:55
Done.
| |
| 207 | |
| 208 sources = [ | |
| 209 "gpu/client_native_pixmap_vgem.cc", | |
| 210 "gpu/client_native_pixmap_vgem.h", | |
| 211 ] | |
| 212 } | |
| 200 } | 213 } |
| 201 } | 214 } |
| OLD | NEW |