diff options
author | spang <spang@chromium.org> | 2016-01-18 10:42:22 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-01-18 18:43:51 +0000 |
commit | 1857c60d73f408e8856000de1f3c3c557929d37e (patch) | |
tree | cbdf37f65b4f4c9943bcd641a1fc2b2bca73e25d | |
parent | 9b910ba63af1f664dd538947bf9d67adfe30dae2 (diff) | |
download | chromium_src-1857c60d73f408e8856000de1f3c3c557929d37e.zip chromium_src-1857c60d73f408e8856000de1f3c3c557929d37e.tar.gz chromium_src-1857c60d73f408e8856000de1f3c3c557929d37e.tar.bz2 |
Don't enable ozone_platform_foo when use_ozone==false
This asserts unless we never set the ozone_platform_foo variables when
use_ozone==false.
Review URL: https://codereview.chromium.org/1595483005
Cr-Commit-Position: refs/heads/master@{#370041}
-rw-r--r-- | ui/ozone/ozone.gni | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ui/ozone/ozone.gni b/ui/ozone/ozone.gni index c5855df..7f75f2d 100644 --- a/ui/ozone/ozone.gni +++ b/ui/ozone/ozone.gni @@ -3,10 +3,11 @@ # found in the LICENSE file. import("//build/config/chromecast_build.gni") +import("//build/config/ui.gni") declare_args() { # Select platforms automatically. Turn this off for manual control. - ozone_auto_platforms = true + ozone_auto_platforms = use_ozone # This enables memory-mapped access to accelerated graphics buffers via the # VGEM ("virtual GEM") driver. This is currently only available on Chrome OS @@ -61,3 +62,8 @@ declare_args() { } } } + +assert(use_ozone || !(ozone_platform_caca || ozone_platform_cast || + ozone_platform_egltest || ozone_platform_gbm || + ozone_platform_ozonex || ozone_platform_headless), + "Must set use_ozone to select ozone platforms") |