Gentoo Archives: gentoo-commits

From: Ian Stakenvicius <axs@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/mozilla:master commit in: eclass/
Date: Mon, 25 Jul 2016 20:12:59
Message-Id: 1469477453.1f8ecb453394246af0a2e20a3dd6086fabd8fbd1.axs@gentoo
1 commit: 1f8ecb453394246af0a2e20a3dd6086fabd8fbd1
2 Author: Ian Stakenvicius <axs <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jul 25 20:10:50 2016 +0000
4 Commit: Ian Stakenvicius <axs <AT> gentoo <DOT> org>
5 CommitDate: Mon Jul 25 20:10:53 2016 +0000
6 URL: https://gitweb.gentoo.org/proj/mozilla.git/commit/?id=1f8ecb45
7
8 firefox-48 - use skia by default
9
10 Skia is the default upstream 2D canvas renderer, and it is highly recommended
11 though not yet fully required to use it. This commit enables it as a USE flag
12 (default-enabled), and in order to circumvent a bug, forces a pref to the
13 value 'cairo' (instead of the erroneous default value 'skia') when the flag
14 is disabled.
15
16 eclass/mozconfig-v6.48.eclass | 10 ++++++++--
17 1 file changed, 8 insertions(+), 2 deletions(-)
18
19 diff --git a/eclass/mozconfig-v6.48.eclass b/eclass/mozconfig-v6.48.eclass
20 index 266b13b..d5040e0 100644
21 --- a/eclass/mozconfig-v6.48.eclass
22 +++ b/eclass/mozconfig-v6.48.eclass
23 @@ -83,7 +83,7 @@ inherit flag-o-matic toolchain-funcs mozcoreconf-v4
24 # Set the variable to any value if the use flag should exist but not be default-enabled.
25
26 # use-flags common among all mozilla ebuilds
27 -IUSE="${IUSE} dbus debug +jemalloc3 neon pulseaudio selinux startup-notification system-cairo
28 +IUSE="${IUSE} dbus debug +jemalloc3 neon pulseaudio selinux +skia startup-notification system-cairo
29 system-harfbuzz system-icu system-jpeg system-libevent system-sqlite system-libvpx"
30
31 # some notes on deps:
32 @@ -280,7 +280,7 @@ mozconfig_config() {
33 mozconfig_annotate 'Gentoo default' --with-system-png
34 mozconfig_annotate '' --enable-system-ffi
35 mozconfig_annotate 'Gentoo default to honor system linker' --disable-gold
36 - mozconfig_annotate 'Gentoo default' --disable-skia
37 + mozconfig_use_enable skia
38 mozconfig_annotate '' --disable-gconf
39 mozconfig_annotate '' --with-intl-api
40
41 @@ -401,4 +401,10 @@ mozconfig_install_prefs() {
42 echo "sticky_pref(\"gfx.font_rendering.graphite.enabled\",true);" \
43 >>"${prefs_file}" || die
44 fi
45 +
46 + # force cairo as the canvas renderer if USE=skia is disabled
47 + if ! use skia ; then
48 + echo "lockPref(\"gfx.canvas.azure.backends\",\"cairo\");" \
49 + >>"${prefs_file}" || die
50 + fi
51 }