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

Side by Side Diff: ui/ozone/ozone.gni

Issue 2730733002: Change default Ozone platform to Ozone X11. (Closed)
Patch Set: More comments. Created 3 years, 9 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 | « no previous file | no next file » | 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/chromecast_build.gni") 5 import("//build/config/chromecast_build.gni")
6 import("//build/config/ui.gni") 6 import("//build/config/ui.gni")
7 7
8 declare_args() { 8 declare_args() {
9 # Select platforms automatically. Turn this off for manual control. 9 # Select platforms automatically. Turn this off for manual control.
10 ozone_auto_platforms = use_ozone 10 ozone_auto_platforms = use_ozone
11 11
12 # This enables memory-mapped access to accelerated graphics buffers via the 12 # This enables memory-mapped access to accelerated graphics buffers via the
13 # VGEM ("virtual GEM") driver. This is currently only available on Chrome OS 13 # VGEM ("virtual GEM") driver. This is currently only available on Chrome OS
14 # kernels and affects code in the GBM ozone platform. 14 # kernels and affects code in the GBM ozone platform.
15 # TODO(dshwang): remove this flag when all gbm hardware supports vgem map. 15 # TODO(dshwang): remove this flag when all gbm hardware supports vgem map.
16 # crbug.com/519587 16 # crbug.com/519587
17 use_vgem_map = false 17 use_vgem_map = false
18 } 18 }
19 19
20 declare_args() { 20 declare_args() {
21 # The platform that will be active by default. 21 # The platform that will used at runtime by default. This can be overridden
22 # with the command line flag --ozone-platform=<platform>.
22 ozone_platform = "" 23 ozone_platform = ""
23 24
24 # Enable individual platforms. 25 # Compile the 'cast' platform.
25 ozone_platform_cast = false 26 ozone_platform_cast = false
27
28 # Compile the 'gbm' platform.
26 ozone_platform_gbm = false 29 ozone_platform_gbm = false
30
31 # Compile the 'headless' platform.
27 ozone_platform_headless = false 32 ozone_platform_headless = false
33
34 # Compile the 'x11' platform.
28 ozone_platform_x11 = false 35 ozone_platform_x11 = false
36
37 # Compile the 'wayland' platform.
29 ozone_platform_wayland = false 38 ozone_platform_wayland = false
30 39
31 if (ozone_auto_platforms) { 40 if (ozone_auto_platforms) {
32 # Use headless as the default platform. 41 # Use headless as the default platform unless modified below.
33 ozone_platform = "headless" 42 ozone_platform = "headless"
34 ozone_platform_headless = true 43 ozone_platform_headless = true
35 44
36 if (is_cast_audio_only) { 45 if (is_cast_audio_only) {
37 # Just use headless for audio-only Cast platforms. 46 # Just use headless for audio-only Cast platforms.
38 } else if (is_chromecast) { 47 } else if (is_chromecast) {
39 # Enable the Cast ozone platform on all A/V Cast builds. 48 # Enable the Cast ozone platform on all A/V Cast builds.
40 ozone_platform_cast = true 49 ozone_platform_cast = true
41 50
42 # For visual desktop Chromecast builds, override the default "headless" 51 # For visual desktop Chromecast builds, override the default "headless"
43 # platform with --ozone-platform=x11. 52 # platform with --ozone-platform=x11.
44 # TODO(halliwell): Create a libcast_graphics implementation for desktop 53 # TODO(halliwell): Create a libcast_graphics implementation for desktop
45 # using X11, and disable this platform. 54 # using X11, and disable this platform.
46 if (is_cast_desktop_build && !is_cast_audio_only) { 55 if (is_cast_desktop_build && !is_cast_audio_only) {
47 ozone_platform_x11 = true 56 ozone_platform_x11 = true
48 } else { 57 } else {
49 ozone_platform = "cast" 58 ozone_platform = "cast"
50 } 59 }
51 } else if (is_chromeos) { 60 } else if (is_chromeos) {
61 ozone_platform = "x11"
52 ozone_platform_gbm = true 62 ozone_platform_gbm = true
53 ozone_platform_x11 = true 63 ozone_platform_x11 = true
54 ozone_platform_wayland = true 64 ozone_platform_wayland = true
55 } else if (is_desktop_linux) { 65 } else if (is_desktop_linux) {
66 ozone_platform = "x11"
56 ozone_platform_wayland = true 67 ozone_platform_wayland = true
57 ozone_platform_x11 = true 68 ozone_platform_x11 = true
58 } 69 }
59 } 70 }
60 } 71 }
61 72
62 assert(use_ozone || !(ozone_platform_cast || ozone_platform_gbm || 73 assert(use_ozone || !(ozone_platform_cast || ozone_platform_gbm ||
63 ozone_platform_headless || ozone_platform_x11 || 74 ozone_platform_headless || ozone_platform_x11 ||
64 ozone_platform_wayland), 75 ozone_platform_wayland),
65 "Must set use_ozone to select ozone platforms") 76 "Must set use_ozone to select ozone platforms")
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698