Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1294)

Unified Diff: ui/ozone/platform/drm/BUILD.gn

Issue 1134993003: ozone: Implement zero/one-copy texture for Ozone GBM. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: make content_unittests (GpuMemoryBuffer*) pass Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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",
+ ]
+ }
}
}

Powered by Google App Engine
This is Rietveld 408576698