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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 if (use_vgem_map) { | 201 if (use_vgem_map) { |
206 defines += [ "USE_VGEM_MAP" ] | 202 defines += [ "USE_VGEM_MAP" ] |
207 | 203 |
208 sources = [ | 204 sources = [ |
209 "gpu/client_native_pixmap_vgem.cc", | 205 "gpu/client_native_pixmap_vgem.cc", |
210 "gpu/client_native_pixmap_vgem.h", | 206 "gpu/client_native_pixmap_vgem.h", |
211 ] | 207 ] |
212 } | 208 } |
213 } | 209 } |
214 } | 210 } |
OLD | NEW |