Граф коммитов

36403 Коммитов

Автор SHA1 Сообщение Дата
Jeff Muizelaar b5242e1d14 Bug 1617708. Make ClippedDrawTarget use destination DT.
By using the destination DT we will use the correct offset
during playback instead of the offset of the reference target.

Differential Revision: https://phabricator.services.mozilla.com/D68495

--HG--
extra : moz-landing-system : lando
2020-03-27 03:15:05 +00:00
Bert Peers 230b649038 Bug 1625030 - Wrench `perf` fixes and improvements r=gw
Differential Revision: https://phabricator.services.mozilla.com/D68289

--HG--
extra : moz-landing-system : lando
2020-03-26 20:15:59 +00:00
Chris Peterson b994ab8896 Bug 1624789 - Replace MOZ_MUST_USE with [[nodiscard]] in gfx. r=gfx-reviewers,nical
Also move MOZ_MUST_USE before function declarations' specifiers and return type. While clang and gcc's __attribute__((warn_unused_result)) can appear before, between, or after function specifiers and return types, the [[nodiscard]] attribute must precede the function specifiers.

Differential Revision: https://phabricator.services.mozilla.com/D68152

--HG--
extra : moz-landing-system : lando
2020-03-25 10:35:04 +00:00
Nicolas Silva 8c7bb2522e Bug 1616901 - Remove accidental print statements. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D68171

--HG--
extra : moz-landing-system : lando
2020-03-26 16:43:03 +00:00
Lee Salzman e7163f076c Bug 1611467 - unify UnscaledFont::GetFontDescriptor and GetWRFontDescriptor implementations. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D68284

--HG--
extra : moz-landing-system : lando
2020-03-26 16:11:00 +00:00
Jonathan Kew 684a3ccf96 Bug 1624827 - Synthesize a space for U+3000 in preference to relying on font fallback. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D68181

--HG--
extra : moz-landing-system : lando
2020-03-26 00:08:40 +00:00
Razvan Maries dd48ca6c20 Backed out changeset 8b091426bc10 (bug 1540776) for build bustages. CLOSED TREE 2020-03-26 16:25:45 +02:00
Chris Martin 65292a10f3 Bug 1540776 - Have parent send color profile to child during launch r=aosmond,jld,jfkthame
For Win32k lockdown, we need to remove the content processes' ability to
call GetICMProfileW(). Since it needs this to retrieve the output color
profile, a new synchronous call is added that allows it to request the
parent process to read this file on its behalf.

The contents of the file are now being cached as well, as this should help
ease some of the increased parent process I/O caused by the children not
being able to do this in their process anymore.

For performance reasons, during launch this information is passed directly
to the child through the SetXPCOMProcessAttributes call

Differential Revision: https://phabricator.services.mozilla.com/D66126

--HG--
extra : moz-landing-system : lando
2020-03-26 13:44:56 +00:00
sotaro fa3946076f Bug 1624216 - Dirty rect is not valid when Tile's local valid rect is changed r=gw
Differential Revision: https://phabricator.services.mozilla.com/D68298

--HG--
extra : moz-landing-system : lando
2020-03-26 02:37:57 +00:00
cbrewster d80db28397 Bug 1618000: Part 3: Remove accidental dbg macro r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D68305

--HG--
extra : moz-landing-system : lando
2020-03-26 02:52:04 +00:00
cbrewster 5c34d757d0 Bug 1618000: Part 2: Clamp blur radius based on scale factors r=gfx-reviewers,nical
Differential Revision: https://phabricator.services.mozilla.com/D65805

--HG--
extra : moz-landing-system : lando
2020-03-26 00:00:02 +00:00
Andrew Osmond 39137c5f64 Bug 1625002 - Add pref to allow force enabled the WebRender compositor. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D68271

--HG--
extra : moz-landing-system : lando
2020-03-25 22:56:29 +00:00
Botond Ballo 6a4407c26e Bug 1621803 - Fix additional bugs in Matrix4x4Flagged::operator*(Matrix4x4). r=bas
Differential Revision: https://phabricator.services.mozilla.com/D66505

--HG--
extra : moz-landing-system : lando
2020-03-25 15:22:14 +00:00
sotaro 16996a4499 Bug 1624783 - Remove redundant XRE_IsParentProcess() check in gfxPlatform::InitWebRenderConfig() r=nical
Differential Revision: https://phabricator.services.mozilla.com/D68143

--HG--
extra : moz-landing-system : lando
2020-03-25 10:37:25 +00:00
Lee Salzman 0adb330468 Bug 1611467 - disable Skia typeface cache to prevent it from leaking fonts. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D68131

--HG--
extra : moz-landing-system : lando
2020-03-25 00:58:41 +00:00
Nicolas Silva 756d071573 Bug 1624640 - Grow the alpha8 texture array four layers at a time. r=jrmuizel
The texture array is currently grown layer by layer and we typically get to 3 or 4 layers over several frames by the time we are done loading a simple wikipedia page.

Differential Revision: https://phabricator.services.mozilla.com/D68056

--HG--
extra : moz-landing-system : lando
2020-03-24 22:53:21 +00:00
Nicolas Silva 81a8466c6f Bug 1624565 - Avoid clearing the texture cache as often. r=gw
The current heuristic in TextureCache::maybe_reclaim_shared_memory pretty much clears the cache every 5 seconds. Clearing the cache is prtty drastic though, because it causes us to re-upload data and reallocate several textures on the next frame. We really only want to do it when the savings are big, which happens less often now that texture array layer count is capped at 16 and that textures are released as soon as they are empty.

This makes us clear the cache less often by augmenting the threshold to 16 megabytes and only considering texture regions that would not be reallocated right away (since we grow some texture arrays more than one region at a time).

Differential Revision: https://phabricator.services.mozilla.com/D68051

--HG--
extra : moz-landing-system : lando
2020-03-24 22:52:57 +00:00
Nicolas Silva 6f1f372ccf Bug 1624565 - Eagerly deallocate empty texture arrays in the texture cache. r=gw
We already have a cooldown from texture cache items being deallocated a certain amount of time and frames after their last use so we can deallocate texture arrays as soon as they are completely empty. We do this at the end of the frame to avoid deallocating and reallocating within the frame. It's better to reclaim texture memory this way than run into maybe_reclaim_shared_memory which will throw away everything and cause new allocations on the next frame.

Differential Revision: https://phabricator.services.mozilla.com/D68050

--HG--
extra : moz-landing-system : lando
2020-03-24 22:53:21 +00:00
Lee Salzman 5c0bc3a931 Bug 1624396 - update ANGLE shader validation tests to use centralized WR shader list. r=gw
Depends on D67961

Differential Revision: https://phabricator.services.mozilla.com/D67962

--HG--
extra : moz-landing-system : lando
2020-03-24 20:32:29 +00:00
Lee Salzman 234a39ce5e Bug 1624396 - add necessary trigonometry intrinsics for conic gradients in SWGL. r=jrmuizel
Depends on D67960

Differential Revision: https://phabricator.services.mozilla.com/D67961

--HG--
extra : moz-landing-system : lando
2020-03-24 03:41:38 +00:00
Lee Salzman 358c8f7c7c Bug 1624396 - add missing texture rectangle support to SWGL. r=jrmuizel
Depends on D67959

Differential Revision: https://phabricator.services.mozilla.com/D67960

--HG--
extra : moz-landing-system : lando
2020-03-24 03:41:38 +00:00
Lee Salzman 7fe8ae3ba8 Bug 1624396 - update SWGL to use the centralized WR shader list. r=jrmuizel
Depends on D67958

Differential Revision: https://phabricator.services.mozilla.com/D67959

--HG--
extra : moz-landing-system : lando
2020-03-24 19:13:49 +00:00
Lee Salzman 9cb73ab9c6 Bug 1624396 - implement centralized shader features list management for WebRender. r=gw,jrmuizel,jnicol
Differential Revision: https://phabricator.services.mozilla.com/D67958

--HG--
extra : moz-landing-system : lando
2020-03-24 22:21:25 +00:00
Daosheng Mu b4b7fcd011 Bug 1624645 - Make adjustment for undefined OpenVR controllers. r=kip
MozReview-Commit-ID: L3kx4Cqw8hg

Differential Revision: https://phabricator.services.mozilla.com/D68057

--HG--
extra : moz-landing-system : lando
2020-03-24 17:45:53 +00:00
Bert Peers a5e5ccd293 Bug 1605283 - Improve support for invalidation debugging and testing r=gw
Support hiding slices to better understand what's on which layer,
and to hide UI when not relevant.
Requires using a HTTP server due to cross-scripting.

Differential Revision: https://phabricator.services.mozilla.com/D67963

--HG--
extra : moz-landing-system : lando
2020-03-24 16:51:06 +00:00
Kartikaya Gupta d33180ab09 Bug 1622360 - Downgrade WRRootId to LayersId in some of APZCTreeManager. r=botond
Depends on D67868

Differential Revision: https://phabricator.services.mozilla.com/D67869

--HG--
extra : moz-landing-system : lando
2020-03-23 22:05:48 +00:00
Kartikaya Gupta f5680c938b Bug 1622360 - Remove RenderRoot propagation in APZCTreeManager. r=botond
Depends on D67867

Differential Revision: https://phabricator.services.mozilla.com/D67868

--HG--
extra : moz-landing-system : lando
2020-03-24 00:18:20 +00:00
Kartikaya Gupta f6825449bf Bug 1622360 - Remove rest of the RenderRootBoundary stuff. r=botond
Depends on D67866

Differential Revision: https://phabricator.services.mozilla.com/D67867

--HG--
extra : moz-landing-system : lando
2020-03-23 22:05:15 +00:00
Kartikaya Gupta dd636055af Bug 1622360 - Remove WebRenderScrollDataCollection::AppendWrapper and the boundary root setters in WebRenderScrollData. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D67866

--HG--
extra : moz-landing-system : lando
2020-03-23 22:05:13 +00:00
Andrew Osmond 5bef59c8fd Bug 1622254 - Match repeating tile sizes more aggresively to their snapped bounds. r=kvark
When we calculate the repeating tile size, errors can be introduced,
such that there are cases it should be the same as the bounds, but is
slightly different. This can cause a new repetition where we did not
expect one. This patch makes the comparison when may force the tile size
to be the same as the snapped bounds more fuzzy.

Differential Revision: https://phabricator.services.mozilla.com/D67620

--HG--
extra : moz-landing-system : lando
2020-03-23 23:55:25 +00:00
Jonathan Kew e819c27aa8 Bug 1309934 - Apply NFC normalization in preference to falling back to a different font for combining marks. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D67945

--HG--
extra : moz-landing-system : lando
2020-03-23 21:37:12 +00:00
Glenn Watson 18890f8aab Bug 1623791 - Remove segment gridding optimization. r=nical
This is no longer as important, with picture caching. Removing it
will simplify the planned changes to switch to a simpler segment
model based on nine-patch rectangles during scene building.

Differential Revision: https://phabricator.services.mozilla.com/D67792

--HG--
extra : moz-landing-system : lando
2020-03-23 14:58:57 +00:00
Razvan Maries 3389ad3b1f Backed out 2 changesets (bug 1618000) for wrench bustages. CLOSED TREE
Backed out changeset c72b18b22267 (bug 1618000)
Backed out changeset 9bc71e7b317b (bug 1618000)
2020-03-23 21:00:24 +02:00
Dzmitry Malyshau dcf75e7f03 Bug 1622261 - Refactor the ID recycling to always cycle through the GPU process
Previously, we kept the object IDs managed on content side only.
The GPU side would work with given indices.
When an object is destroyed, we'd free the ID on the content side and signal the GPU to delete the object.
Problem is that on the GPU process the object may still be kept alive for as long as any dependants are alive.

What this change is doing - hooking up the callbacks to the *actual* freeing of IDs on the GPU side.
These callbacks end up in messages from WebGPUParent to WebGPUChild, and only then the IDs are freed
on the content side and able to be reused.

Differential Revision: https://phabricator.services.mozilla.com/D67211

--HG--
extra : moz-landing-system : lando
2020-03-23 07:54:08 +00:00
cbrewster 34e8ddc337 Bug 1618000: Part 2: Clamp blur radius based on scale factors r=gfx-reviewers,nical
Differential Revision: https://phabricator.services.mozilla.com/D65805

--HG--
extra : moz-landing-system : lando
2020-03-23 18:22:32 +00:00
Nicolas Silva 4ed1a83e7f Bug 1616901 - Allocate 16 layers for rgba8 linear textures in the cache and allocate new arrays instead of growing it. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D67575

--HG--
extra : moz-landing-system : lando
2020-03-23 15:29:59 +00:00
Nicolas Silva df14fe8f1e Bug 1623777 - Replace fancy right single quotation mark with less fancy one. r=gw,jrmuizel
So that moz-phab stops throwing an encoding error.

Differential Revision: https://phabricator.services.mozilla.com/D67560

--HG--
extra : moz-landing-system : lando
2020-03-23 10:44:33 +00:00
Nicolas Silva 2a16d8411d Bug 1623647 - Allocate one screen's worth of picture cache tiles in each direction instead of three. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D67559

--HG--
extra : moz-landing-system : lando
2020-03-23 10:44:35 +00:00
Sylvestre Ledru 734f79b541 Bug 1624237 - Run misc-unused-using-decls - Remove useless declarations r=andi
$ ./mach static-analysis check --checks="-*, misc-unused-using-decls" --fix <path>

Differential Revision: https://phabricator.services.mozilla.com/D67811

--HG--
extra : moz-landing-system : lando
2020-03-23 13:15:33 +00:00
Mihai Alexandru Michis 532b6f80be Backed out 3 changesets (bug 1623777, bug 1616901, bug 1623647) for causing reftest failures.
CLOSED TREE

Backed out changeset 622591504941 (bug 1616901)
Backed out changeset 034d885d32cb (bug 1623777)
Backed out changeset 610fe9c88f2e (bug 1623647)
2020-03-23 12:40:30 +02:00
Nicolas Silva ca9dc7fccd Bug 1616901 - Allocate 16 layers for rgba8 linear textures in the cache and allocate new arrays instead of growing it. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D67575

--HG--
extra : moz-landing-system : lando
2020-03-20 11:47:05 +00:00
Nicolas Silva 5a20c202f6 Bug 1623777 - Replace fancy right single quotation mark with less fancy one. r=gw,jrmuizel
So that moz-phab stops throwing an encoding error.

Differential Revision: https://phabricator.services.mozilla.com/D67560

--HG--
extra : moz-landing-system : lando
2020-03-20 11:49:54 +00:00
Nicolas Silva d06d7d219c Bug 1623647 - Allocate one screen's worth of picture cache tiles in each direction instead of three. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D67559

--HG--
extra : moz-landing-system : lando
2020-03-23 09:33:28 +00:00
Jonathan Kew d68fbcd645 Bug 1624225 - Don't reject 'fvar' table in a variation font if no instance records are present, as the font is still valid. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D67785

--HG--
extra : moz-landing-system : lando
2020-03-22 21:12:41 +00:00
Brindusan Cristian 4646c1f41f Backed out 2 changesets (bug 1614933) for bc failures at browser_tabicon_after_bg_tab_crash.js.
Backed out changeset 59503d3a702f (bug 1614933)
Backed out changeset 578c8ba9598f (bug 1614933)
2020-03-22 17:30:07 +02:00
Gabriele Svelto 322404bebb Bug 1614933 - Gather content processes' crash annotations at exception time instead of using IPC; r=froydnj
Crash annotations in content processes are currently sent over IPC via
shared memory buffers. To pave the way for the Rust rewrite of the exception
handler we are removing this code and gathering all the crash annotations
within the content processes themselves. This patch causes annotations to be
stored in the global table of each content process. They are then streamed
out to the parent process by the exception handler together with the
exception-time annotations.

This has a number of benefits:

* we have one less channel to exchange data between content processes and
  the parent process
* we save memory because we don't need to allocate the shared memory buffers
* annotations are faster because we don't stream them all out every time one
  changes
* we won't truncate annotations anymore if we run out of space in the shared
  segment.
* we don't need delayed annotations anymore, so we can get rid of the
  associated machinery

As I refactored the code I tried to adjust all the obsolete comments,
consolidate shared code and remove the redundant steps that were sometimes
present. In many places we had two entire crash annotation tables we merged to
change just a couple; that comes from the fact that historically we loaded
them from disk. Now it doesn't matter anymore and we can just go ahead and
change the ones we care about.

Differential Revision: https://phabricator.services.mozilla.com/D62586

--HG--
extra : moz-landing-system : lando
2020-03-21 17:13:08 +00:00
Emilio Cobos Álvarez 575d8d016a Bug 1622113 - Ensure the skip rect end is aligned to a 4-byte boundary. r=mstange
So that accesses that use mSkipRect.XMost() - 4 or - 16 are aligned to a 4-byte
boundary. Not doing so would crash on some architectures due to a SIGBUS.

Differential Revision: https://phabricator.services.mozilla.com/D66748

--HG--
extra : moz-landing-system : lando
2020-03-21 00:19:23 +00:00
Simon Giesecke 58d0171406 Bug 1620632 - Ensure nsTArray_Impl only declares a copy-constructor/assignment operator if E is copy-constructible. r=froydnj
To correctly implement this, it must be known on instantiation whether E is
copy-constructible, which is not the case if only a forward declaration is
available. This can be resolved either by making sure a full definition of E is
available, which is preferable. But in cases where this is not (easily) possible,
the information can be explicitly provided by the MOZ_DECLARE_COPY_CONSTRUCTIBLE
and MOZ_DECLARE_NON_COPY_CONSTRUCTIBLE macros. In particular, declarations for
IPDL-declared types are added to nsTArray.h itself, like it was already done
for MOZ_DECLARE_RELOCATE_USING_MOVE_CONSTRUCTOR.

Differential Revision: https://phabricator.services.mozilla.com/D66244

--HG--
extra : moz-landing-system : lando
2020-03-20 17:13:51 +00:00
Simon Giesecke 7e9a7de895 Bug 1620632 - Rename confusingly named types/macros for relocation handling of nsTArray. r=froydnj
Specifically, this renames
* nsTArray_CopyChooser to nsTArray_RelocationStrategy
* the Copy template argument of nsTArray_base to RelocationStrategy
* nsTArray_CopyWithConstructors to nsTArray_RelocateUsingMoveConstructor
* nsTArray_CopyWithMemutils to nsTArray_RelocateUsingMemutils
* DECLARE_USE_COPY_CONSTRUCTORS to MOZ_DECLARE_RELOCATE_USING_MOVE_CONSTRUCTOR

Differential Revision: https://phabricator.services.mozilla.com/D66243

--HG--
extra : moz-landing-system : lando
2020-03-20 17:04:27 +00:00
Kartikaya Gupta 9166beb15f Bug 1622360 - Remove WebRenderRenderRootData and ScrollDataBoundaryWrapper. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D67617

--HG--
extra : moz-landing-system : lando
2020-03-20 14:05:23 +00:00