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

Unified Diff: ui/gl/BUILD.gn

Issue 2052543004: gl: Test YV12 buffer drm import. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@yv12-pixmap-support
Patch Set: Change patch dependency Created 4 years, 6 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
« no previous file with comments | « no previous file | ui/gl/gl_image_ozone_native_pixmap_drm_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/BUILD.gn
diff --git a/ui/gl/BUILD.gn b/ui/gl/BUILD.gn
index 159a5b75463ea017eb2616d5acf222b56f87e667..0ebc68167d9f54aaafb01b0bb9f74ffef7a22b9e 100644
--- a/ui/gl/BUILD.gn
+++ b/ui/gl/BUILD.gn
@@ -2,6 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import("//build/config/linux/pkg_config.gni")
import("//build/config/ui.gni")
import("//testing/test.gni")
@@ -13,6 +14,12 @@ if (is_android) {
import("//build/config/android/rules.gni")
}
+if (is_chromeos) {
+ pkg_config("libdrm") {
+ packages = [ "libdrm" ]
+ }
+}
+
config("gl_config") {
defines = []
if (use_glx) {
@@ -350,6 +357,9 @@ test("gl_unittests") {
if (use_ozone) {
sources += [ "gl_image_ozone_native_pixmap_unittest.cc" ]
+ if (is_chromeos && target_cpu != "arm") {
+ sources += [ "gl_image_ozone_native_pixmap_drm_unittest.cc" ]
+ }
}
if (is_mac) {
@@ -376,6 +386,10 @@ test("gl_unittests") {
"//ui/gl/init",
]
+ if (is_chromeos) {
+ configs += [ ":libdrm" ]
+ }
+
data_deps = [
"//third_party/mesa:osmesa",
]
« no previous file with comments | « no previous file | ui/gl/gl_image_ozone_native_pixmap_drm_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698