Commit graph

264 commits

Author SHA1 Message Date
Moonchild
b2a716b2f1 Issue #457 - Silence some superfluous compiler warnings in cairo 2020-05-16 06:49:22 +08:00
Roy Tam
bd1e07b203 Merge remote-tracking branch 'origin/master' into custom 2020-05-09 07:01:19 +08:00
Moonchild
c61d3aa365 Issue #1450 - Remove NVidia 3D-Vision utils
Legacy, unmaintained and untested D3D9 stereo
output behind a hidden pref that nobody ever uses... :P
'nuf said. Resolves #1450
2020-05-09 06:55:14 +08:00
wolfbeast
62a46687d6 [gfx] Put Skia-specific CTOR init behind Skia-conditional. 2020-02-22 07:05:25 +08:00
Roy Tam
3a29482353 Merge remote-tracking branch 'origin/master' into custom 2020-02-14 22:49:37 +08:00
sotaro
088c5a329d [Layers] Clear WrappingTextureSourceYCbCrBasic::mTexture correctly 2020-02-14 22:46:03 +08:00
Roy Tam
c7bc87cff9 Merge remote-tracking branch 'origin/master' into custom 2020-01-31 07:59:13 +08:00
wolfbeast
9896dd74fb Issue #1360 - Enable acceleration by default on all known-good platforms. 2020-01-31 07:42:30 +08:00
wolfbeast
a085fa5430 Issue #1360 - Part 1: Simplify layers acceleration prefs.
This gets rid of platform-dependent hard-coded defaults, but keeps
build-time blocking if there is no GL provider (in which case layers
acceleration almost certainly won't work because it needs a GL
compositor and would likely crash without)

New prefs are
- layers.acceleration.enabled to enable HWA
- layers.acceleration.force to force it enabled (requires .enabled to be
  set as well)

This is the platform part of this issue. The rest will be front-end work
(Preference UI integration and pref migration)
2020-01-31 07:42:02 +08:00
Roy Tam
678ad26488 Merge remote-tracking branch 'origin/master' into custom 2020-01-24 09:39:16 +08:00
wolfbeast
305537e8d6 Issue #1354 - Fix typo 2020-01-24 09:29:06 +08:00
wolfbeast
9d76eb5791 Issue #1354 - Clear the current context when MakeCurrent() fails. 2020-01-24 09:29:04 +08:00
Roy Tam
969d239b65 Merge remote-tracking branch 'origin/master' into custom 2020-01-17 09:24:31 +08:00
wolfbeast
9f7f1d457f Issue #1354 - Don't allow glsl[130,400] unless we have gpu_shader5
- Teach GLContext about gpu_shader5
- Downgrade shader language version if gpu_shader5 support isn't found.
2020-01-17 09:19:01 +08:00
wolfbeast
5b8610f989 Issue #1354 - Cherry-pick ANGLE update for broken drivers that support
required indexing but not the extensions.
2020-01-17 09:18:59 +08:00
Roy Tam
04671d8d62 patch from Sami<samiwieciekto at gmail.com>: Lowered mMaxTextureSize from 4096 to 2048 to allow older graphic cards 2019-12-30 23:57:31 +08:00
Roy Tam
bd793d6099 Merge remote-tracking branch 'origin/master' into custom 2019-12-21 07:13:32 +08:00
wolfbeast
f24dcfdaa4 Enable layers acceleration by default on GTK platforms.
"Why is this still `blocked by default for platform`.. Everyone on Linux
forces it on anyway once they are aware of it." -- Tobin

Tag #1319
2019-12-21 07:12:55 +08:00
Roy Tam
d2b5ffafc2 Merge remote-tracking branch 'origin/master' into custom 2019-11-15 15:03:49 +08:00
wolfbeast
e266a1fc59 Issue #1288 - Part 5: Pass graphite fonts through OTS.
Since the updated OTS supports proper checking of graphite fonts we no
longer need to rely of harfbuzz for them.
2019-11-15 14:24:02 +08:00
wolfbeast
207b043e1c Issue #1288 - Part 4: Update the OpenType Sanitizer component to 8.0.0 2019-11-15 14:24:00 +08:00
Roy Tam
27884ac351 Merge remote-tracking branch 'origin/master' into custom 2019-11-08 20:30:31 +08:00
wolfbeast
82d70c6ae2 Issue #1274 - Part 5: Misc fixes and version update. 2019-11-08 20:26:28 +08:00
wolfbeast
fd38014a63 Issue #1274 - Part 3: Update libpixman licensing 2019-11-08 20:25:17 +08:00
wolfbeast
bc89f33a85 Issue #1274 - Part 1: Adopt the cairo version as our own.
- Move header licensing from tri-license to MPL 2.0. MPL-compatible
  other licensing has been retained where originally present.
- Remove individual superseded licensing terms.
- Remove patches, outdated readmes & incomplete patch summaries.
- Remove incomplete cairo release notes (only went up to 1.6.4 anyway).
- Rewrite COPYING to indicate the current state of the library in tree.
2019-11-08 20:24:51 +08:00
Roy Tam
6d191b58d4 Merge remote-tracking branch 'origin/master' into custom 2019-09-06 23:57:22 +08:00
Markus Stange
cb6b60ce61 Correctly return zero vertices if clipping plane 0 or 2 clip away the
entire polygon.

This fixes a bug that was introduced three years ago in BZ bug 1268854.
What happened was that the final pass over the polygon assumed that the
current polygon was living in plane[0]. But due to the double buffering,
the "current" polygon alternates between plane[0] and plane[1].
The bug had also introduced an early exit so that we could hit the final
pass at a time where the current, now empty, polygon was in plane[1]. So
we would incorrectly treat all 32 points in plane[0] as part of the
final polygon.

This bug was responsible for intermittently unreasonable numbers in
CompositorOGL's fill rate / overdraw overlay.

This fixes a regression caused by the fix for CVE-2016-5252.
2019-09-06 23:49:19 +08:00
wolfbeast
d6ceb39e25 Revert "Correctly return zero vertices if clipping plane 0 or 2 clip away the"
This reverts commit 09a8b2f19689b679b1268a3004ec5e3f37b9732a.
2019-09-06 23:49:17 +08:00
wolfbeast
de215d77fc Correctly return zero vertices if clipping plane 0 or 2 clip away the
entire polygon.

This fixes a regression caused by the fix for CVE-2016-5252
2019-09-06 23:48:46 +08:00
Roy Tam
18869d3807 Merge remote-tracking branch 'origin/master' into custom 2019-08-17 13:34:39 +08:00
wolfbeast
0343460b3a Issue #438: Add an IsRectilinear helper method to gfxMatrix. 2019-08-17 13:32:12 +08:00
Roy Tam
4ad03e727f Merge remote-tracking branch 'origin/master' into custom 2019-07-25 21:47:07 +08:00
adeshkp
1459c396a3 Fix call to macro MOZ_ASSERT_UNREACHABLE
Fallout from 227b23606b0401245c9f0b15effd45b876b90260
2019-07-25 21:42:26 +08:00
Roy Tam
6431b85501 Merge remote-tracking branch 'origin/master' into custom 2019-05-31 07:28:33 +08:00
wolfbeast
706ac5f0a4 Make extra sure Compositables don't refer back to layers after reassignment. 2019-05-31 07:21:39 +08:00
wolfbeast
21eef2bff9 Port an upstream Skia fix. 2019-05-31 07:21:05 +08:00
Roy Tam
8495414910 Merge remote-tracking branch 'origin/master' into custom 2019-05-24 21:59:29 +08:00
Gaming4JC
838eb9a504 Issue #1101 - Support gzip-compressed SVGs in OpenType+SVG fonts 2019-05-24 21:57:15 +08:00
Mihai Moldovan
28fbea676a Enable double buffering when using XRENDER.
This fixes flickering/bars/stripes showing up during quickly-updating
operations on Intel hardware when using XRENDER.

For more information, refer to the code comment.

See #1061
2019-05-24 21:57:13 +08:00
Roy Tam
ec217d91d9 Merge remote-tracking branch 'origin/master' into custom 2019-05-17 22:18:17 +08:00
Mihai Moldovan
75971a4c80 When using XRENDER, create Xlib-based offscreen image surfaces.
Mozilla tried to enable XRENDER support with backends other than Cairo
in 286348:e13aaaaf1962 /
https://hg.mozilla.org/mozilla-central/rev/e13aaaaf1962 - at least until
they decided to completely remove XRENDER support.

The change looked innocent enough, but actually turned out to do exactly
the opposite: it forcefully enabled image offscreen surfaces with GTK2
when it was previously disabled (since
gfxPrefs::UseImageOffscreenSurfaces() will always return true) and, by
extension, disabled the XRENDER-based functionality by creating a
non-Xlib surface.

Interestingly, a previously enabled double buffering check was also
disabled by this, but since the comment for this was diverging with the
code, that behavior just sounds like yet another bug.

Instead of disabling image offscreen surfaces (at least when using the
GTK2 backend), let's force the creation of Xlib-based image surfaces
when XRENDER support is enabled. This will let UXP use the more
common/modern code paths, but also make scrolling much faster again. Too
fast scrolling may induce tearing (if not smoothed), but on the other
hand performs much better in remote computing contexts.

As an added benefit, GTK3-based builds should roughly behave the same
way. Further tests with the GTK3-backend enabled will be required in the
future.
2019-05-17 22:16:26 +08:00
Roy Tam
51fa1b8bdb Merge remote-tracking branch 'origin/master' into custom 2019-04-04 20:32:53 +08:00
cku
f9ae2860ab Bug 1360343 - ensure maskSurface is not null before dereference, since it can be null because of OOM or gfx device reset. r=dvander
MozReview-Commit-ID: HX2qsWLZpMg

--HG--
extra : rebase_source : 046befc11151461a682842c31e2ce39247a5e1d8
2019-04-04 20:30:32 +08:00
wolfbeast
905323d092 Remove crashreporter toolkit files.
Resolves #20
2019-04-04 20:29:55 +08:00
wolfbeast
8ec2b1b1b5 Unhook CR exception handler.
Tag #20
2019-04-04 20:26:49 +08:00
wolfbeast
09ad6f03c9 Remove AIX 1st party code OS checks, part 2
Issue #186
2019-04-04 20:26:46 +08:00
wolfbeast
78d61fd2b1 Issue #187: Remove solaris conditional code. 2019-04-04 20:26:26 +08:00
Roy Tam
3dea264e2b Merge remote-tracking branch 'origin/master' into custom 2019-03-09 10:25:10 +08:00
wolfbeast
d68b5ee06d Remove texture layout endian-ness check for Moz2D.
This resolves #986.

This removes endian-based inversion of texture layout aliases when
represented as uint32. This inversion was incorrect and would cause
unknown texture formats as a result on big-endian machines (PPC64).
2019-03-09 10:21:33 +08:00
Roy Tam
26d0be66f3 harfbuzz: update harfbuzz to 1.5.1 2019-02-22 22:05:34 +08:00