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

Unified Diff: content/common/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: Created 5 years, 7 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: content/common/BUILD.gn
diff --git a/content/common/BUILD.gn b/content/common/BUILD.gn
index 25627f1d1cc6b2652f9a9981cf34228e34236f4e..d9b77616f1fb4725db870a35274d3cc7eef9a160 100644
--- a/content/common/BUILD.gn
+++ b/content/common/BUILD.gn
@@ -4,6 +4,7 @@
import("//build/config/features.gni")
import("//build/config/ui.gni")
+import("//build/config/linux/pkg_config.gni")
import("//content/common/common.gni")
import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni")
@@ -254,6 +255,18 @@ source_set("common") {
deps += [ "//ppapi/proxy:ipc_sources" ]
}
+ if (ozone_platform_gbm) {
+ defines += [ "USE_OZONE_GBM" ]
+ sources += [
+ "gpu/client/gpu_memory_buffer_impl_ozone_gbm.cc",
+ "gpu/client/gpu_memory_buffer_impl_ozone_gbm.h",
+ ]
+ pkg_config("libdrm") {
+ packages = [ "libdrm" ]
+ }
+ public_configs = [ ":libdrm" ]
+ }
+
if (is_ios) {
sources -= [ "user_agent.cc" ]
assert(false, "Need to add lots of conditions here")

Powered by Google App Engine
This is Rietveld 408576698