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

41944 Коммитов

Автор SHA1 Сообщение Дата
Jeff Muizelaar b3adb549de Bug 1739542 - Switch a bunch of IntRects to LayerRects. r=mstange
This makes the coordinate space more obvious. They were IntRects to make it
easier during development to be sloppy.

Differential Revision: https://phabricator.services.mozilla.com/D130423
2021-11-05 20:25:23 +00:00
Cristian Tuns cbd178830f Backed out 10 changesets (bug 1732343) for causing coverage build bustages (Bug 1739590).
Backed out changeset bba94c79f3e1 (bug 1732343)
Backed out changeset d30fa1e1f605 (bug 1732343)
Backed out changeset ed0b4f757c4b (bug 1732343)
Backed out changeset a272da134c34 (bug 1732343)
Backed out changeset ccb259d73843 (bug 1732343)
Backed out changeset a292990b62de (bug 1732343)
Backed out changeset 7d1854782ca8 (bug 1732343)
Backed out changeset 29eaabd9ffb3 (bug 1732343)
Backed out changeset 1aa26657a7a6 (bug 1732343)
Backed out changeset 7a6708dc620a (bug 1732343)
2021-11-05 07:21:04 -04:00
Cristian Tuns 1aeac93d23 Backed out 5 changesets (bug 1738627) for causing xpcshell failures on test_ext_geckoProfiler_schema.js CLOSED TREE
Backed out changeset 42d385d7da97 (bug 1738627)
Backed out changeset edeb3a338954 (bug 1738627)
Backed out changeset 98f02e35134d (bug 1738627)
Backed out changeset 711daa6dd24b (bug 1738627)
Backed out changeset 49e12753a40c (bug 1738627)
2021-11-05 05:12:28 -04:00
Gerald Squelart ffc00218c3 Bug 1738627 - profiler_thread_is_being_profiled's ThreadProfilingFeatures is now compulsory - r=canaltinova
Now that most calls to `profiler_thread_is_being_profiled` have been updated, the `ThreadProfilingFeatures` can be made compulsory, to force callers to think about what they really want to know about the current profiling state.

Differential Revision: https://phabricator.services.mozilla.com/D130010
2021-11-05 05:52:29 +00:00
Gerald Squelart 7fa084ae7c Bug 1738627 - profiler_thread_is_being_profiled_for_markers - r=canaltinova
`profiler_thread_is_being_profiled` is used a lot for markers, so it makes sense to have a specialized version, which is a bit shorter, and lives in ProfilerMarkers.h.

Differential Revision: https://phabricator.services.mozilla.com/D130009
2021-11-05 05:52:28 +00:00
Iulian Moraru 04448c5245 Backed out changeset fdfd26e1439d (bug 1738700) for causing reftest failures on 1738700-1.html. CLOSED TREE 2021-11-05 03:20:42 +02:00
Glenn Watson 8af0ab58e4 Bug 1730695 - Fix panic when casting large value to i32 rect r=gfx-reviewers,bradwerth,nical,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D128122
2021-11-04 19:44:32 +00:00
Nika Layzell fc6ef2a44a Bug 1732343 - Part 5: Use attached handles for Windows SharedMemory serialization, r=handyman
Differential Revision: https://phabricator.services.mozilla.com/D126567
2021-11-04 19:20:19 +00:00
Nika Layzell b8279164db Bug 1732343 - Part 2: Migrate all uses of base::FileDescriptor to UniqueFileHandle, r=handyman
This is useful for the following parts, as UniqueFileHandle is a cross-platform
type which can also be used to support transferring HANDLEs between processes.

This change requires fairly sweeping changes to existing callsites, which
previously did not require owning access to the handle types when transferring.
For the most part these changes were straightforward, but manual.

Differential Revision: https://phabricator.services.mozilla.com/D126564
2021-11-04 19:20:17 +00:00
Dan Minor bbe54a9742 Bug 1736017 - Replace MozLocale with Locale in gfxPlatformFontList.cpp; r=platform-i18n-reviewers,gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D129208
2021-11-04 16:36:03 +00:00
Andrew Osmond a39c65797b Bug 1734649 - Part 4. Lift some conditions preventing WebGL OOP. r=jgilbert
Now that WebGL runs on the Renderer thread in the compositor process
when OOP, we can now lift the threadsafe condition on Linux preventing
WebGL OOP. Regardless of webgl.out-of-process's setting, we should
always prefer by default to run worker WebGL contexts OOP to avoid
similar threadsafe conflicts in the content process.

Differential Revision: https://phabricator.services.mozilla.com/D129896
2021-11-04 16:29:45 +00:00
Andrew Osmond 01be1b4367 Bug 1734649 - Part 3. Switch to always allocating PWebGL instances via CanvasManager. r=jgilbert
This patch causes us to move WebGL execution in the compositor process
from the Compositor thread to the Renderer thread. This has the
advantage of keeping all of our GL calls on the same thread, which makes
us work more like a typical application. This makes the drivers happy,
especially on Linux, and may allow us to move forward with OOP WebGL on
Linux.

Differential Revision: https://phabricator.services.mozilla.com/D127903
2021-11-04 16:29:44 +00:00
Andrew Osmond cdc239b74f Bug 1734649 - Part 2. Create PCanvasManager to manage WebGL instances. r=jrmuizel
This patch adds the necessary IPDL plumbing to allow us to create WebGL
instances off the main thread in the content process, and to execute
them on the Renderer thread in the compositor process.

Differential Revision: https://phabricator.services.mozilla.com/D127839
2021-11-04 16:29:44 +00:00
Andrew Osmond bbbb7c2f0e Bug 1734649 - Part 1. Remove checks for WebRender based on RenderThread. r=jgilbert
IsAccelAngleSupported would always indicate ANGLE support on Windows but
we have a specific variant of GLLibraryEGL::CreateDisplay for use with
ANGLE which bypasses this check for the WebRender compositor. It is
otherwise only used for WebGL and non-Windows, so we can skip the
assertions here.

Differential Revision: https://phabricator.services.mozilla.com/D129895
2021-11-04 16:29:44 +00:00
Jonathan Kew 7593e1dd90 Bug 1738700 - Don't use FT_LOAD_COLOR for COLR-format fonts within WebRender, because color-font layers are handled at the Gecko level. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D130271
2021-11-04 13:30:16 +00:00
Jonathan Kew 9e1f1591ed Bug 1739152 - Revert changes to font cache timeouts from bug 1736868, to see effect on perf tests. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D130299
2021-11-04 12:14:54 +00:00
sirri 267e4e597a Bug 1737098 - replace size() with empty() r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D130322
2021-11-04 08:37:00 +00:00
Nicolas Silva 51efadfa3e Bug 1737648 - Don't batch uploads for items larger than a certain size. r=gfx-reviewers,bradwerth
The default size on most platforms is 256*256 which corresponds to the default blob tile size. I didn't check on android so I set it to 512*512 above which we never batch the upload so that the behavior is unchanged, but I suspect that a smaller threshold like 256*256 would also work better there.

On Windows with heavy blob image workloads, not batching gives a 20%-30% improvement to the time spent in update_texture_cache.

Differential Revision: https://phabricator.services.mozilla.com/D129516
2021-11-03 16:42:42 +00:00
Jeff Muizelaar 1cb365fed3 Bug 1738909 - Use upstream CFData::from_arc instead of raw bindings. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D130173
2021-11-03 13:28:59 +00:00
Timothy Nikkel acf4589031 Bug 1739015. Add another, better, reftest for bug 1724901. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D130218
2021-11-03 00:41:36 +00:00
Sandor Molnar b1852a9b5e Backed out changeset ea6696688123 (bug 1738909) for causing build bustages. CLOSED TREE 2021-11-02 21:56:00 +02:00
Jeff Muizelaar 85c2c5cb36 Bug 1738909 - Use upstream CFData::from_arc instead of raw bindings. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D130173
2021-11-02 19:23:36 +00:00
Masayuki Nakano 4341d6fb0c Bug 1455514 - part 1: Add accessors and static helper methods to retrieve `nsINode` or its concrete classes from `EventTarget` r=smaug
Currently, checking whether an `EventTarget` is `nsINode` (or its concrete
classes) or not requires a QI, but it's expensive and used a lot while we
handle each event.  Therefore, it'd be nicer for creating a virtual method,
`EventTarget::IsNode()` and use it for the check.

If trying to convert `EventTarget` to a concrete class, it may require two
virtual method calls.  I'm not sure whether it's cheaper than a QI, but at
least, it won't depend on the UUID check order of `QueryInterface()` when
multiple interfaces are implemented.

Differential Revision: https://phabricator.services.mozilla.com/D129781
2021-11-02 13:03:43 +00:00
Jonathan Kew 1e487abed0 Bug 1738137 - Refactor new_ct_font_with_variations for better clarity. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D129732
2021-11-02 11:46:36 +00:00
Lee Salzman eb7455e935 Bug 1393362 - Make more RecordedEvent implementations fallible. r=bobowen
Differential Revision: https://phabricator.services.mozilla.com/D129879
2021-11-01 19:33:28 +00:00
Ryan VanderMeulen 67a36a1dc6 Bug 1735218 - Update HarfBuzz to 3.0.0. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D128125
2021-11-01 16:19:14 +00:00
Botond Ballo f5de659316 Bug 1738152 - Remove WebRenderScrollDataWrapper methods that are no longer used. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D129769
2021-10-29 22:30:17 +00:00
Botond Ballo 2237232282 Bug 1738152 - Remove HitTestingTreeNode::mEventRegions. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D129768
2021-10-29 22:30:16 +00:00
Botond Ballo 895d9edebf Bug 1738152 - Remove APZCTreeManager::ComputeClipRegion(). r=hiro
Depends on D129767

Differential Revision: https://phabricator.services.mozilla.com/D129770
2021-10-29 22:30:16 +00:00
Botond Ballo 6f49f7645f Bug 1738152 - Remove TreeBuildingState::mParentHasPerspective. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D129767
2021-10-29 22:30:15 +00:00
Botond Ballo cfffffeb35 Bug 1738152 - Remove HitTestingTreeNode::mClipRegion. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D129766
2021-10-29 22:30:15 +00:00
Botond Ballo b032de8ef1 Bug 1738152 - Remove HitTestingTreeNode::mIsBackfaceHidden. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D129765
2021-10-29 22:30:15 +00:00
Botond Ballo fe3b6a1828 Bug 1738152 - Remove HitTestingTreeNode methods that were only used by InternalHitTester. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D129764
2021-10-29 22:30:14 +00:00
Botond Ballo 441e0d7e8c Bug 1738152 - Remove the aOutSourceOfOverscrollTransform parameter of APZCTreeManager::ComputeTransformForNode(). r=hiro
This parameter was only used by InternalHitTester.

Differential Revision: https://phabricator.services.mozilla.com/D129763
2021-10-29 22:30:14 +00:00
Botond Ballo c2ac235ed4 Bug 1738152 - Remove IAPZHitTester methods that were only used by InternalHitTester. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D129762
2021-10-29 22:30:14 +00:00
Emilio Cobos Álvarez 4cfc1d8874 Bug 1738265 - Teach some popup tests to deal with popups having margins by default. r=NeilDeakin
For tests that actually test margin handling I've just removed the default
margin by adding:

  <?xml-stylesheet href="data:text/css,menupopup{margin: 0}" type="text/css"?>

The other tests I've just fixed by accounting for the margins.

Differential Revision: https://phabricator.services.mozilla.com/D129866
2021-10-29 19:26:37 +00:00
Hiroyuki Ikezoe 0713dc0d2f Bug 1738385 - Drop APZSampler::AdvanceAnimations and relevant stuff. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D129885
2021-10-29 02:58:17 +00:00
Botond Ballo c4ac87dc57 Bug 1731700 - Remove InternalHitTester. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D129760
2021-10-29 00:28:15 +00:00
Botond Ballo c8e6aa3f43 Bug 1731700 - Do not use InternalHitTester in TestWRScrollData.cpp. r=hiro
These tests do not actually perform hit testing.

Differential Revision: https://phabricator.services.mozilla.com/D129759
2021-10-29 00:28:15 +00:00
Botond Ballo 768f90d96d Bug 1731700 - Port TestScrollHandoff to use MockHitTester. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D129758
2021-10-29 00:28:14 +00:00
Botond Ballo c36abc16e2 Bug 1731700 - Port TestOverscroll to use MockHitTester. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D129757
2021-10-29 00:28:14 +00:00
Botond Ballo bd7577dfaf Bug 1731700 - Port TestEventResult to use MockHitTester. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D129756
2021-10-29 00:28:13 +00:00
Botond Ballo 0c5b51962e Bug 1731700 - Port TestEventRegions to use MockHitTester. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D129755
2021-10-29 00:28:13 +00:00
Botond Ballo 0f2cef803a Bug 1731700 - Port TestSnappingOnMomentum to use MockHitTester. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D129754
2021-10-29 00:28:13 +00:00
Botond Ballo ba4265ea15 Bug 1731700 - Port TestSnapping to use MockHitTester. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D129753
2021-10-29 00:28:12 +00:00
Botond Ballo af64ff1887 Bug 1731700 - Introduce MockHitTester. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D129752
2021-10-29 00:28:12 +00:00
Brad Werth c2562b0917 Bug 1737998: Prevent macOS 10.12 from using specialized video layers. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D129869
2021-10-28 22:47:10 +00:00
Sandor Molnar f5bbecdcc2 Backed out 13 changesets (bug 1711061) on devs request. CLOSED TREE
Backed out changeset c4f073f7e3a3 (bug 1711061)
Backed out changeset aced4b672fb4 (bug 1711061)
Backed out changeset 3687e798f665 (bug 1711061)
Backed out changeset 7b471990ea86 (bug 1711061)
Backed out changeset 1014a95f540e (bug 1711061)
Backed out changeset a37b3091281d (bug 1711061)
Backed out changeset 96a0ef35881b (bug 1711061)
Backed out changeset 38890cc266fb (bug 1711061)
Backed out changeset be73004c0850 (bug 1711061)
Backed out changeset b964576ae53d (bug 1711061)
Backed out changeset d453c5219255 (bug 1711061)
Backed out changeset 0145b538175b (bug 1711061)
Backed out changeset 41ba2e2a2d13 (bug 1711061)
2021-10-29 00:36:30 +03:00
Florian Quèze 1c3f80fe51 Bug 1738285 - move AUTO_PROFILE_FOLLOWING_RUNNABLE to its own header, r=gerald.
Differential Revision: https://phabricator.services.mozilla.com/D129825
2021-10-28 20:35:06 +00:00
Sandor Molnar 970c07a3b8 Backed out changeset 042a934005b6 (bug 1696842) for causing bug 1738241. CLOSED TREE 2021-10-28 22:54:33 +03:00