OLD | NEW |
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 } | 11 } |
11 | 12 |
12 pkg_config("libdrm") { | 13 pkg_config("libdrm") { |
13 packages = [ "libdrm" ] | 14 packages = [ "libdrm" ] |
14 } | 15 } |
15 | 16 |
16 source_set("drm_common") { | 17 source_set("drm_common") { |
17 sources = [ | 18 sources = [ |
18 "drm_surface_factory.cc", | 19 "drm_surface_factory.cc", |
19 "drm_surface_factory.h", | 20 "drm_surface_factory.h", |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 "host/drm_native_display_delegate.cc", | 76 "host/drm_native_display_delegate.cc", |
76 "host/drm_native_display_delegate.h", | 77 "host/drm_native_display_delegate.h", |
77 "host/drm_window_host.cc", | 78 "host/drm_window_host.cc", |
78 "host/drm_window_host.h", | 79 "host/drm_window_host.h", |
79 "host/drm_window_host_manager.cc", | 80 "host/drm_window_host_manager.cc", |
80 "host/drm_window_host_manager.h", | 81 "host/drm_window_host_manager.h", |
81 ] | 82 ] |
82 | 83 |
83 defines = [ "OZONE_IMPLEMENTATION" ] | 84 defines = [ "OZONE_IMPLEMENTATION" ] |
84 | 85 |
| 86 if (use_drm_atomic) { |
| 87 defines += [ "USE_DRM_ATOMIC" ] |
| 88 sources += [ |
| 89 "gpu/hardware_display_plane_atomic.cc", |
| 90 "gpu/hardware_display_plane_atomic.h", |
| 91 "gpu/hardware_display_plane_manager_atomic.cc", |
| 92 "gpu/hardware_display_plane_manager_atomic.h", |
| 93 ] |
| 94 } |
| 95 |
85 deps = [ | 96 deps = [ |
86 "//base", | 97 "//base", |
87 "//skia", | 98 "//skia", |
88 "//ipc", | 99 "//ipc", |
89 "//ui/base", | 100 "//ui/base", |
90 "//ui/display/types", | 101 "//ui/display/types", |
91 "//ui/display/util", | 102 "//ui/display/util", |
92 "//ui/events", | 103 "//ui/events", |
93 "//ui/events/devices", | 104 "//ui/events/devices", |
94 "//ui/events/ozone:events_ozone_evdev", | 105 "//ui/events/ozone:events_ozone_evdev", |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 "//ui/events/ozone:events_ozone_layout", | 181 "//ui/events/ozone:events_ozone_layout", |
171 ] | 182 ] |
172 | 183 |
173 public_configs = [ ":libgbm" ] | 184 public_configs = [ ":libgbm" ] |
174 | 185 |
175 if (use_mesa_platform_null) { | 186 if (use_mesa_platform_null) { |
176 defines += [ "USE_MESA_PLATFORM_NULL" ] | 187 defines += [ "USE_MESA_PLATFORM_NULL" ] |
177 } | 188 } |
178 } | 189 } |
179 } | 190 } |
OLD | NEW |