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

Side by Side 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 unified diff | Download patch
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 hardwares support vgem map.
13 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
11 } 14 }
12 15
13 pkg_config("libdrm") { 16 pkg_config("libdrm") {
14 packages = [ "libdrm" ] 17 packages = [ "libdrm" ]
15 } 18 }
16 19
17 source_set("drm_common") { 20 source_set("drm_common") {
18 sources = [ 21 sources = [
19 "common/client_native_pixmap_factory_drm.cc", 22 "common/client_native_pixmap_factory_drm.cc",
20 "common/client_native_pixmap_factory_drm.h", 23 "common/client_native_pixmap_factory_drm.h",
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 ] 193 ]
191 194
192 public_configs = [ 195 public_configs = [
193 ":libgbm", 196 ":libgbm",
194 "//third_party/khronos:khronos_headers", 197 "//third_party/khronos:khronos_headers",
195 ] 198 ]
196 199
197 if (use_mesa_platform_null) { 200 if (use_mesa_platform_null) {
198 defines += [ "USE_MESA_PLATFORM_NULL" ] 201 defines += [ "USE_MESA_PLATFORM_NULL" ]
199 } 202 }
203
204 if (ozone_use_vgem_map) {
205 defines += [ "OZONE_USE_VGEM_MAP" ]
206
207 sources = [
208 "gpu/client_native_pixmap_vgem.cc",
209 "gpu/client_native_pixmap_vgem.h",
210 ]
211 }
200 } 212 }
201 } 213 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698