Index: ui/ozone/platform/drm/gbm.gypi |
diff --git a/ui/ozone/platform/drm/gbm.gypi b/ui/ozone/platform/drm/gbm.gypi |
index 36074bb2fd583725e08e5449e58298b21ade2b9d..8ed890f9ab8d002e28f30d1cafb9e3243956847e 100644 |
--- a/ui/ozone/platform/drm/gbm.gypi |
+++ b/ui/ozone/platform/drm/gbm.gypi |
@@ -11,6 +11,10 @@ |
'gbm', |
], |
'use_mesa_platform_null%': 0, |
+ |
+ # TODO(dshwang): remove this flag when all gbm hardware supports vgem map. |
+ # crbug.com/519587 |
+ 'ozone_use_vgem_map%': 0, |
}, |
'targets': [ |
{ |
@@ -54,6 +58,13 @@ |
['use_mesa_platform_null==1', { |
'defines': ['USE_MESA_PLATFORM_NULL'], |
}], |
+ ['ozone_use_vgem_map==1', { |
+ 'defines': ['OZONE_USE_VGEM_MAP'], |
+ 'sources': [ |
+ 'gpu/client_native_pixmap_vgem.cc', |
+ 'gpu/client_native_pixmap_vgem.h', |
+ ], |
+ }], |
], |
}, |
], |