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

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: rebase to ToT 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..53c9be530a5b1ba04de38c0c0dbc6471920fde7a 100644
--- a/ui/ozone/platform/drm/BUILD.gn
+++ b/ui/ozone/platform/drm/BUILD.gn
@@ -8,6 +8,10 @@ import("//ui/ozone/ozone.gni")
declare_args() {
use_mesa_platform_null = false
use_drm_atomic = false
+
+ # TODO(dshwang): remove this flag when all gbm hardware supports vgem map.
+ # crbug.com/519587
+ use_vgem_map = false
}
pkg_config("libdrm") {
@@ -197,5 +201,14 @@ if (ozone_platform_gbm) {
if (use_mesa_platform_null) {
defines += [ "USE_MESA_PLATFORM_NULL" ]
}
+
+ if (use_vgem_map) {
+ defines += [ "USE_VGEM_MAP" ]
+
+ sources = [
+ "gpu/client_native_pixmap_vgem.cc",
+ "gpu/client_native_pixmap_vgem.h",
+ ]
+ }
}
}
« no previous file with comments | « ui/ozone/common/stub_client_native_pixmap_factory.cc ('k') | ui/ozone/platform/drm/common/client_native_pixmap_factory_gbm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698