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

Side by Side Diff: ui/ozone/platform/drm/BUILD.gn

Issue 1253363004: ozone gbm: whitelist 3 DRM ioctl code for native GpuMemoryBuffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix chromeos_daisy_chromium_compile_only_ng build failure Created 5 years, 2 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 unified diff | Download patch
« no previous file with comments | « ui/ozone/ozone.gyp ('k') | ui/ozone/platform/drm/gbm.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/linux/pkg_config.gni") 5 import("//build/config/linux/pkg_config.gni")
6 import("//ui/ozone/ozone.gni") 6 import("//ui/ozone/ozone.gni")
7 7
8 declare_args() { 8 declare_args() {
9 use_mesa_platform_null = false 9 use_mesa_platform_null = false
10 use_drm_atomic = false 10 use_drm_atomic = false
11
12 # TODO(dshwang): remove this flag when all gbm hardware supports vgem map.
13 # crbug.com/519587
14 use_vgem_map = false
15 } 11 }
16 12
17 pkg_config("libdrm") { 13 pkg_config("libdrm") {
18 packages = [ "libdrm" ] 14 packages = [ "libdrm" ]
19 } 15 }
20 16
21 source_set("gbm") { 17 source_set("gbm") {
22 sources = [ 18 sources = [
23 "common/client_native_pixmap_factory_gbm.cc", 19 "common/client_native_pixmap_factory_gbm.cc",
24 "common/client_native_pixmap_factory_gbm.h", 20 "common/client_native_pixmap_factory_gbm.h",
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 defines += [ "USE_DRM_ATOMIC" ] 132 defines += [ "USE_DRM_ATOMIC" ]
137 sources += [ 133 sources += [
138 "gpu/hardware_display_plane_atomic.cc", 134 "gpu/hardware_display_plane_atomic.cc",
139 "gpu/hardware_display_plane_atomic.h", 135 "gpu/hardware_display_plane_atomic.h",
140 "gpu/hardware_display_plane_manager_atomic.cc", 136 "gpu/hardware_display_plane_manager_atomic.cc",
141 "gpu/hardware_display_plane_manager_atomic.h", 137 "gpu/hardware_display_plane_manager_atomic.h",
142 ] 138 ]
143 } 139 }
144 140
145 if (use_vgem_map) { 141 if (use_vgem_map) {
146 defines += [ "USE_VGEM_MAP" ] 142 configs += [ "//ui/ozone:vgem_map" ]
147 143
148 sources += [ 144 sources += [
149 "gpu/client_native_pixmap_vgem.cc", 145 "gpu/client_native_pixmap_vgem.cc",
150 "gpu/client_native_pixmap_vgem.h", 146 "gpu/client_native_pixmap_vgem.h",
151 ] 147 ]
152 } 148 }
153 } 149 }
154 150
155 source_set("gbm_unittests") { 151 source_set("gbm_unittests") {
156 testonly = true 152 testonly = true
157 sources = [ 153 sources = [
158 "gpu/drm_window_unittest.cc", 154 "gpu/drm_window_unittest.cc",
159 "gpu/hardware_display_controller_unittest.cc", 155 "gpu/hardware_display_controller_unittest.cc",
160 "gpu/hardware_display_plane_manager_unittest.cc", 156 "gpu/hardware_display_plane_manager_unittest.cc",
161 "gpu/screen_manager_unittest.cc", 157 "gpu/screen_manager_unittest.cc",
162 "test/mock_drm_device.cc", 158 "test/mock_drm_device.cc",
163 "test/mock_drm_device.h", 159 "test/mock_drm_device.h",
164 ] 160 ]
165 161
166 deps = [ 162 deps = [
167 "//skia", 163 "//skia",
168 "//testing/gtest", 164 "//testing/gtest",
169 "//ui/gfx", 165 "//ui/gfx",
170 "//ui/ozone", 166 "//ui/ozone",
171 ] 167 ]
172 168
173 public_configs = [ ":libdrm" ] 169 public_configs = [ ":libdrm" ]
174 } 170 }
OLDNEW
« no previous file with comments | « ui/ozone/ozone.gyp ('k') | ui/ozone/platform/drm/gbm.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698