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

37095 Коммитов

Автор SHA1 Сообщение Дата
Lee Salzman c452d01a0d Bug 1639385 - add memory reporter for NativeFontResource data. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D76259
2020-05-21 20:32:10 +00:00
sotaro 6d4116acb8 Bug 1639874 - Fix YCbCrTextureClientAllocationHelper::IsCompatible() r=jrmuizel
IsCompatible() also needs to check YStride and CbCrStride. They also affect to buffer size.

Differential Revision: https://phabricator.services.mozilla.com/D76323
2020-05-21 18:53:42 +00:00
Cosmin Sabou 3ed243f234 Backed out changeset a2078244558d (bug 1637953) as requested by :gw on slack. 2020-05-21 23:16:25 +03:00
Jamie Nicol a3dd57ee14 Bug 1636085 - Unbind GL_TEXTURE_EXTERNAL_OES before binding GL_TEXTURE_2D. r=gw
The android emulator appears to have a bug in its OpenGL
implementation where it gets confused about whether a texture is bound
to GL_TEXTURE_EXTERNAL_OES or GL_TEXTURE_2D. This was causing spurious
errors when attempting to use a regular 2D texture, due to the fact
that an external texture had previously been bound.

Work around this by explicitly unbinding from GL_TEXTURE_EXTERNAL_OES
immediately before binding to GL_TEXTURE_2D.

Differential Revision: https://phabricator.services.mozilla.com/D76318
2020-05-21 19:46:47 +00:00
Glenn Watson dfbd6e7ef7 Bug 1637953 - Fix picture caching with redundant nested scroll roots r=Bert,jrmuizel
Some pages created nesting levels of scroll roots where the outer
scroll frames are redundant (the scrollable size is zero if the
content rect is the same as the frame rect).

In these cases, it is of no benefit to select these as a scroll
root for picture cache tiles.

Differential Revision: https://phabricator.services.mozilla.com/D75451
2020-05-21 03:41:17 +00:00
Glenn Watson af3ddc2628 Bug 1617524 - Fix crash in get_relative_transform edge case. r=jnicol
Previously, WR would attempt to detect at the start of frame
building if the spatial node of any picture cache contained
a non-axis-aligned transform, and disable picture caching in
that edge case.

However, picture caching can't (currently) be disabled when the
native compositor is active. In this mode, picture caching was
force enabled, causing an assertion failure due to unexpected
coordinate systems when updating pictures.

This patch changes the way the detection of scroll root logic
works such that we don't consider any scroll frame inside a
reference frame to be a valid scroll root for picture caching
purposes. Thus it's not possible to create a picture cache
where the reference spatial node has a non-axis-aligned transform.

Differential Revision: https://phabricator.services.mozilla.com/D75890
2020-05-21 07:42:32 +00:00
Nicolas Silva 8b97fa6457 Bug 1637112 - Add a wrench reftest. r=mstange.
Differential Revision: https://phabricator.services.mozilla.com/D75305
2020-05-14 17:51:47 +00:00
Nicolas Silva 4c56570aa9 Bug 1637112 - Don't draw border-image segments with zero slice size. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D75119
2020-05-13 17:31:25 +00:00
Jeff Gilbert 5c34bc916d Bug 1639062 - Support RGBA in DrawTargetD2D1::OptimizeSourceSurface. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D75882
2020-05-21 18:07:07 +00:00
Jonathan Kew 18c2162d62 Bug 1639813 - Update OTS to upstream commit 6300460f76dbf1554a59dc1f20f52d5c2f5641e6 to clean up weird PSname that makes Core Text fail. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D76343
2020-05-21 17:20:48 +00:00
Jonathan Kew 86391e9948 Bug 1588418 - Ensure font entries for src:local faces are flushed when the fontlist is rebuilt. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D76304
2020-05-21 13:18:06 +00:00
Kartikaya Gupta 29d27f2775 Bug 1639819 - Prevent a local macOS run of mochitests from hanging due to scrollbar settings. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D76296
2020-05-21 09:44:39 +00:00
Bob Owen ffea5a7eed Bug 1639599: Add null check for mRecorder to CanvasChild::ShouldBeCleanedUp. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D76165
2020-05-21 00:04:59 +00:00
Bob Owen 5a1b15d341 Bug 1639626: Hold BackendType in CanvasTranslator to guard against the reference DrawTarget being null. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D76177
2020-05-21 00:05:27 +00:00
Bob Owen 5ee999bc1e Bug 1639634: Add null check for mTranslationTaskQueue to CanvasTranslator::ActorDestroy. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D76183
2020-05-21 00:05:34 +00:00
Bob Owen e4da4b4f82 Bug 1639675: Check that ScopedMap successfully mapped in RecordedPrepareDataForSurface::PlayCanvasEvent. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D76210
2020-05-21 00:05:47 +00:00
Bob Owen 050da5b521 Bug 1638873: Check buffer is good before reading next event after checkpoint in CanvasEventRingBuffer::ReadNextEvent. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D75812
2020-05-20 20:08:20 +00:00
Jeff Muizelaar 881b06790a Bug 1638331 - Expand the conditions for crashing in GetDWriteSystemFonts. r=jfkthame
We're not seeing any crashes so let's look for a null systemFonts
as well.

Differential Revision: https://phabricator.services.mozilla.com/D75546
2020-05-15 17:00:03 +00:00
Glenn Watson 32a56ebf74 Bug 1637963 - Fix clipping of iframes inside a nested stacking context. r=Bert
Ensure that clips from an enclosing stacking context are correctly
propagated to nested iframes, and add a regression test for this.

Differential Revision: https://phabricator.services.mozilla.com/D76075
2020-05-20 17:33:29 +00:00
sefeng 8d288408d9 Bug 1634595 - Move the element out of pendingScrollPayload before recording r=botond
The lock we added in `GetPendingScrollPayload` and
`RemovePendingScrollPayload` are released at the end of the function,
not at when we finish using the underlying data, thus we may still
end up recording a payload that has been deleted.

To fix this, we introduce a new method to move the data from the
hashtable into the array argument while the lock is held, then the
caller can iterate over the array safely.

Differential Revision: https://phabricator.services.mozilla.com/D76052
2020-05-20 19:35:30 +00:00
cbrewster df02aa6efc Bug 1559861: WR - Scale picture tasks based on their surface to parent transform scale factors r=gw,Bert
This patch adjusts the device pixel scale for raster root surfaces so that the surface's content is not
pixelated/blurred when it is composited into its parent surface where a transform scales up the surface.

This only fixes the referenced bug when WebRender is used.

Differential Revision: https://phabricator.services.mozilla.com/D75236
2020-05-20 17:19:06 +00:00
sotaro 0a7f53f77a Bug 1639145 - Add nullptr check to CompositorBridgeParent::NotifyWebRenderContextPurge() r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D76074
2020-05-20 12:37:11 +00:00
Glenn Watson d175aa9dae Bug 1632443 - Fix pinch-zoom rendering when partial present is enabled. r=sotaro
WR currently disables picture caching during a pinch-zoom, if the
native compositor is disabled (since there's no real performance
gain to be had from caching tiles during a pinch-zoom).

However, this code path was not returning a dirty rect to the
caller code. For callers that take advantage of partial present,
this meant the screen was assumed to have no changes, and so
the swapbuffers is skipped incorrectly.

Differential Revision: https://phabricator.services.mozilla.com/D76081
2020-05-20 05:33:06 +00:00
Lee Salzman 9dd235e852 Bug 1637859 - support conditional commands in wrench reftest lists. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D75250
2020-05-20 03:22:22 +00:00
Lee Salzman e6dd2c54f6 Bug 1637859 - support nesting in wrench's reftest function parser. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D75249
2020-05-20 03:22:10 +00:00
Lee Salzman 0d2e7e650f Bug 1637859 - report SWGL as wrench platform if running with it enabled. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D75248
2020-05-20 03:22:02 +00:00
Dorel Luca ab7fdba593 Backed out changeset 41acfa78dae4 (bug 1559861) for Wrench failure in transforms/raster-root-scaling.yaml 2020-05-20 05:58:47 +03:00
Jean-Yves Avenard 4d4f1862d1 Bug 1639388 - Re-instate call to ClearAllCache. r=jrmuizel
The line got mistakenly removed in bug 1634253 due to incorrect rebase with bug 1622360

Differential Revision: https://phabricator.services.mozilla.com/D76064
2020-05-20 00:29:39 +00:00
cbrewster 186c1872b8 Bug 1559861: WR - Scale picture tasks based on their surface to parent transform scale factors r=gw,Bert
This patch adjusts the device pixel scale for raster root surfaces so that the surface's content is not
pixelated/blurred when it is composited into its parent surface where a transform scales up the surface.

This only fixes the referenced bug when WebRender is used.

Differential Revision: https://phabricator.services.mozilla.com/D75236
2020-05-19 22:24:07 +00:00
Gerald Squelart a88e6ae204 Bug 1594268 - profiler_add_marker_for_thread takes payload by const& - r=canaltinova
Instead of accepting a `UniquePtr<ProfilerMarkerPayload>`, `profiler_add_marker_for_thread` now takes it by `const ProfilerMarkerPayload&`.
All callers can now create the payload on the stack, or as a temporary object. This saves a memory alloc+free for each call.

Differential Revision: https://phabricator.services.mozilla.com/D75912
2020-05-19 23:07:54 +00:00
Hiroyuki Ikezoe 13f8bcf3c5 Bug 1639076 - Drop PostTranslate call for transform animations on WebRender. r=kats
On WebRender |transformData.origin()| value is always zero, we don't need to
explicitly call it at all.

[1] https://searchfox.org/mozilla-central/rev/9193635dca8cfdcb68f114306194ffc860456044/gfx/layers/AnimationInfo.cpp#678-680

Differential Revision: https://phabricator.services.mozilla.com/D75883
2020-05-19 21:06:30 +00:00
Nika Layzell 258e226abf Bug 1638124 - Part 3: Cleanup NS_INLINE_DECL_THREADSAFE_REFCOUNTING_WITH_MAIN_THREAD_DESTRUCTION, r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D75609
2020-05-19 18:30:57 +00:00
Nika Layzell 549547126e Bug 1635689 - Part 1: Stop using 'get' method on IPDL unions in gfxVars.h, r=jrmuizel
This code is the only caller of this generated method.

Differential Revision: https://phabricator.services.mozilla.com/D75348
2020-05-15 00:12:58 +00:00
Bob Owen ba603ff7e1 Bug 1607630: Use ScaledFonts to track the recording lifetime of UnscaledFonts. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D73873
2020-05-19 16:09:43 +00:00
cbrewster f56ce0c806 Bug 1637796: Scale down mask render tasks if they exceed the maximum size r=gw
Differential Revision: https://phabricator.services.mozilla.com/D75590
2020-05-19 16:45:59 +00:00
Nicolas Silva c59b80d2ff Bug 1612440 - Move blob and font resources to the RenderApi. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D74301
2020-05-19 15:16:40 +00:00
Jonathan Kew df9f4c005e Bug 1638478 - Try to resolve Script=Common runs to a specific script for shaping purposes based on the ScriptExtensions property. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D75744
2020-05-19 14:30:20 +00:00
Kartikaya Gupta 5d6e4993b0 Bug 1639217 - Disable macOS CI jobs for webrender on github, until the woker machine can be resurrected. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D75954
2020-05-19 14:20:03 +00:00
Nicolas Silva 03436162ac Bug 1612440 - Use a single shared font instance map in various place. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D74299
2020-05-19 12:52:06 +00:00
Nicolas Silva 2440fa9497 Bug 1612440 - Move some types to webrender_api. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D74298
2020-05-19 07:54:25 +00:00
Nicolas Silva 1cc29ae322 Bug 1612440 - Simplify the SetDisplayList message. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D74300
2020-05-19 07:53:16 +00:00
Nicolas Silva 7716ebe2a3 Bug 1612440 - Forward glyph dimension and index requests through the scene builder thread. r=gw
This prevents the request from racing ahead of the AddFontInstance message which follows the transaction through the scene builder thread and silently returning zero-sized glyphs.

Differential Revision: https://phabricator.services.mozilla.com/D72906
2020-05-19 07:52:25 +00:00
sotaro f8ddec1645 Bug 1637873 - Destroy RenderTextureHost in TextureHost::Finalize() r=nical
RenderTextureHost is destroyed in WebRenderTextureHost::~WebRenderTextureHost() on current gecko. But It is better to destroy it by TextureHost that created the RenderTextureHost. GPUVideoTextureHost is an exception for now.

Differential Revision: https://phabricator.services.mozilla.com/D75255
2020-05-19 02:05:20 +00:00
Andrew Osmond 0973fc9056 Bug 1638469 - Disable WebRender on Windows 7/8 without DWM composition enabled. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D75646
2020-05-16 14:05:35 +00:00
Andrew Osmond bc973c5022 Bug 1638413 - Allow WebRender compositor to be used without DirectComposition on non-Windows. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D75638
2020-05-18 17:46:05 +00:00
Brindusan Cristian d85df0c158 Backed out changeset e867d81f9019 (bug 1637953) for wrench bustages. CLOSED TREE 2020-05-19 00:26:26 +03:00
Glenn Watson d3ee00c83e Bug 1637953 - Fix picture caching with redundant nested scroll roots r=Bert,jrmuizel
Some pages created nesting levels of scroll roots where the outer
scroll frames are redundant (the scrollable size is zero if the
content rect is the same as the frame rect).

In these cases, it is of no benefit to select these as a scroll
root for picture cache tiles.

Differential Revision: https://phabricator.services.mozilla.com/D75451
2020-05-18 14:44:24 +00:00
sotaro f098f71977 Bug 1638750 - Remove unnecessary virtual from RenderTextureHost derived classes r=nical
Differential Revision: https://phabricator.services.mozilla.com/D75740
2020-05-18 13:59:44 +00:00
Timothy Nikkel c3fc615ca6 Bug 1636911. Add mochitest. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D75665
2020-05-18 10:26:28 +00:00
Csoregi Natalia 2cafee9690 Backed out changeset 5358bc2ae595 (bug 1637873) for assertion failures on RenderThread.cpp. CLOSED TREE 2020-05-18 13:57:55 +03:00