blob: f4d0526dc93e043dd27d0c96962a937fccbc9c0a [file] [log] [blame]
Avi Drissman4e1b7bc32022-09-15 14:03:501# Copyright 2017 The Chromium Authors
thakis18e426412017-03-15 12:06:372# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
mark a. foltze185ab2fa2023-11-06 21:21:205import("//build/config/cast.gni")
Hyowon Kim338fa272023-04-07 01:52:176import("//build/config/features.gni")
Dave Tapuskad83fc382023-12-08 14:36:597import("//ppapi/buildflags/buildflags.gni")
Luke Halliwell16136de2017-07-05 21:15:568
thakis18e426412017-03-15 12:06:379declare_args() {
10 # Whether or not to use external popup menu.
Hyowon Kim338fa272023-04-07 01:52:1711 use_external_popup_menu = is_android || (is_apple && use_blink)
Luke Halliwell16136de2017-07-05 21:15:5612
13 # Whether to perform critical memory pressure handling when in foreground (if
14 # false, critical memory pressure is treated like moderate pressure in foreground).
Ryan Keane190beb32022-06-16 01:08:1015 allow_critical_memory_pressure_handling_in_foreground =
16 is_castos || is_cast_android
Dominic Farolino2bcc0b5a2020-12-08 20:32:4117
18 # Whether or not MBI mode (Multiple Blink Isolates) should be enabled,
19 # depending on the build argument.
20 mbi_mode = is_linux || is_chromeos || is_mac || is_win || is_android
Dave Tapuskad83fc382023-12-08 14:36:5921
Dave Tapuska21a12c12025-04-03 17:49:2422 # We allow legacy IPC to be enabled for Pepper usage.
23 content_enable_legacy_ipc = enable_ppapi
thakis18e426412017-03-15 12:06:3724}