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

36418 Коммитов

Автор SHA1 Сообщение Дата
Jeff Muizelaar 44a1d84d88 Bug 1617708. Make ClippedDrawTarget use destination DT. a=reland
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 : rebase_source : cff20f1a467138e0d9fe3e22772bb3edbb409318
extra : source : 0e08a1d7fb078cc36882b737f00da2f48f9349a6
2020-03-27 03:15:05 +00:00
Sebastian Hengst 4a470594ac Backed out changeset 0e08a1d7fb07 (bug 1617708) for likely causing performance regression bug 1625071.
--HG--
extra : rebase_source : f912c901608e5783abb93607f963d29b035e5c84
2020-03-30 17:30:44 +02:00
André Bargull 14ca007916 Bug 1625138 - Part 41: Remove no longer needed includes for mozilla/TypeTraits. r=froydnj
Also adds missing includes in some files, these were previously only transivitely
included through mozilla/TypeTraits.h.

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

--HG--
extra : moz-landing-system : lando
2020-03-28 16:00:09 +00:00
André Bargull 62ab594247 Bug 1625138 - Part 39: Replace mozilla::IsSame with std::is_same in gfx/. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D68558

--HG--
extra : moz-landing-system : lando
2020-03-28 13:57:21 +00:00
André Bargull 2712714d84 Bug 1625138 - Part 35: Replace mozilla::TrueType with std::true_type. r=froydnj,jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D68554

--HG--
extra : moz-landing-system : lando
2020-03-28 13:57:20 +00:00
André Bargull cae4e1fdbc Bug 1606962: Replace mozilla::EnableIf with std::enable_if. r=froydnj,jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D68401

--HG--
extra : moz-landing-system : lando
2020-03-28 13:35:31 +00:00
André Bargull 1be056677a Bug 1625138 - Part 26: Replace mozilla::Conditional with std::conditional. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D68381

--HG--
extra : moz-landing-system : lando
2020-03-28 13:57:18 +00:00
Kartikaya Gupta 8a3b6cb1a4 Bug 1622360 - Remove the render root properties in FocusState. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D68493

--HG--
extra : moz-landing-system : lando
2020-03-27 17:44:53 +00:00
Kartikaya Gupta 7d2c8af30b Bug 1622360 - Remove SLGuidAndRenderRoot and convert remaining uses to ScrollableLayerGuid. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D68400

--HG--
extra : moz-landing-system : lando
2020-03-27 17:44:21 +00:00
Kartikaya Gupta dda847f4e7 Bug 1622360 - Remove WRRootId and convert remaining uses to LayersId. r=botond
Depends on D68396

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

--HG--
extra : moz-landing-system : lando
2020-03-27 17:40:40 +00:00
Kartikaya Gupta 6fed4c94d9 Bug 1622360 - Remove UpdaterQueueSelector and update stuff that uses it. r=botond
This also downgrades a bunch of WRRootId parameters back down to LayersId
in APZUpdater since APZUpdater doesn't need the render root information any
more.

Changes to comments generally restore the text that was there prior to the
document-splitting patch landing.

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

--HG--
extra : moz-landing-system : lando
2020-03-27 17:57:18 +00:00
Kartikaya Gupta 1330a33340 Bug 1622360 - Remove mWrRootId from WebRenderScrollDataWrapper. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D68395

--HG--
extra : moz-landing-system : lando
2020-03-27 15:24:54 +00:00
Miko Mynttinen 9b727b1e0b Bug 1624125 - Track display list changes in DisplayItemCache r=jrmuizel
This is needed because display lists and DisplayItemCache have different lifetimes. For example, display lists can outlive WebRenderLayerManager when device reset occurs.

A slightly nicer way of fixing this would be to couple DisplayItemCache with nsDisplayList or nsDisplayListBuilder. This is would currently require a lot of refactoring to look nice, because the painting code still supports non-retained display lists and non-WR code paths.

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

--HG--
extra : moz-landing-system : lando
2020-03-27 16:49:37 +00:00
Simon Giesecke d3deabac64 Bug 1613363 - Maybe<T> should preserve trivial copy-constructability and destructability of T. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D68173

--HG--
extra : moz-landing-system : lando
2020-03-27 14:22:51 +00:00
Simon Giesecke 0cc5c6e63f Bug 1052940 - Make Maybe<T> only declare copy/move operations if T is copyable/movable. r=froydnj,jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D68172

--HG--
extra : moz-landing-system : lando
2020-03-27 14:10:45 +00:00
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