summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/public/public_features.gni
blob: b5cc81d0e05964ce48e833ac73f8ca357d174b39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//build/config/ui.gni")

declare_args() {
  # Enables additional Oilpan heap verification instrumentation.
  enable_blink_heap_verification = false

  # Enables young generation collections in Oilpan.
  enable_blink_heap_young_generation = false

  # Enables Blink's heap to use V8's version of Oilpan.
  enable_blink_heap_use_v8_oilpan = true
}

declare_args() {
  # If enable_additional_blink_object_names is set to true, then blink provides
  # additional debug names of blink-internal (i.e. oilpan) object names at the
  # cost of additional memory. Many of these objects only show up in heap
  # snapshots if the parameter `treatGlobalObjectsAsRoots` of `takeHeapSnapshot`
  # is set.
  enable_additional_blink_object_names = enable_blink_heap_verification
}

declare_args() {
  # If true, adds support for JPEG XL image decoding.
  enable_jxl_decoder = !is_ios
}

# Unhandled Tap enable means Contextual Search aka Touch to Search.
# TODO(donnd): remove all unhandled-tap handling after the Long-press experiment
#              is fully launched.
enable_unhandled_tap = is_android

# Use Minikin hyphenation engine.
use_minikin_hyphenation = !is_mac

# Forward the request for naming to cppgc.
if (enable_additional_blink_object_names) {
  cppgc_enable_object_names = true
}