Chromium Code Reviews| Index: ui/ozone/platform/drm/BUILD.gn |
| diff --git a/ui/ozone/platform/drm/BUILD.gn b/ui/ozone/platform/drm/BUILD.gn |
| index 801b02146f47ef5f826cd22e5e25df558cb89ea7..3cd34a05fa77cbe842004dcdfc1e43910ebfdfc6 100644 |
| --- a/ui/ozone/platform/drm/BUILD.gn |
| +++ b/ui/ozone/platform/drm/BUILD.gn |
| @@ -8,6 +8,9 @@ import("//ui/ozone/ozone.gni") |
| declare_args() { |
| use_mesa_platform_null = false |
| use_drm_atomic = false |
| + |
| + # TODO(dshwang): remove this flag when all gbm hardwares support vgem map. |
| + ozone_use_vgem_map = false |
|
reveman
2015/08/07 17:59:44
nit: s/hardwares/hardware/
can you create a bug?
dshwang
2015/08/11 17:44:56
good concern. I remove run time checking. It's dec
|
| } |
| pkg_config("libdrm") { |
| @@ -197,5 +200,14 @@ if (ozone_platform_gbm) { |
| if (use_mesa_platform_null) { |
| defines += [ "USE_MESA_PLATFORM_NULL" ] |
| } |
| + |
| + if (ozone_use_vgem_map) { |
| + defines += [ "OZONE_USE_VGEM_MAP" ] |
| + |
| + sources = [ |
| + "gpu/client_native_pixmap_vgem.cc", |
| + "gpu/client_native_pixmap_vgem.h", |
| + ] |
| + } |
| } |
| } |