Commit Graph

32833 Commits

Author SHA1 Message Date
arthur.iakab
77aa564189 Merge mozilla-central to autoland 2019-03-08 06:41:04 +02:00
arthur.iakab
013bbfceb8 Merge inbound to mozilla-central a=merge 2019-03-08 06:39:50 +02:00
arthur.iakab
eba6cadac2 Merge mozilla-central to mozilla-inbound 2019-03-08 00:19:35 +02:00
Ciure Andrei
5b0d4e70f1 Backed out changeset 664fd8f4cc02 (bug 1533282) for causing a wrench bustage CLOSED TREE 2019-03-07 19:17:34 +02:00
Miko Mynttinen
2ab05c6458 Bug 1526941 - Part 4: Remove mStoredList from nsDisplayTransform r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D21187

--HG--
extra : moz-landing-system : lando
2019-03-07 17:13:17 +00:00
Ciure Andrei
07a1cbed27 Backed out changeset da9a99c4896c (bug 1531975) for causing PersistentBufferProvider build bustages CLOSED TREE 2019-03-07 18:44:24 +02:00
Nicolas Silva
a9c6312e6e Bug 1533282 - Restore the debugging options in wrench/script/headless.py. r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D22458

--HG--
extra : moz-landing-system : lando
2019-03-07 14:16:44 +00:00
Lee Salzman
3e26da96a3 Bug 1531975 - just do a gfxCriticalNote on buffer-provider over-production instead of an error r=nical
Differential Revision: https://phabricator.services.mozilla.com/D22518

--HG--
extra : moz-landing-system : lando
2019-03-07 16:08:34 +00:00
Jamie Nicol
b112738bcb Bug 1528820 - Work around Adreno bug when blitting to texture array. r=kvark
There is a bug on Adreno GPUs where glBlitFramebuffers always writes
to the 0th layer of a texture array, regardless of which layer is
actually attached to the draw framebuffer.

With picture caching enabled on webrender, the cached pictures were
all being drawn to the 0th layer of the picture cache texture array,
leaving the other layers blank. This was resulting in the wrong
content being drawn on one tile of the screen, and the rest being
black.

This works around this by blitting to an intermediate renderbuffer,
then using glCopyTexSubImage3D to copy from the renderbuffer to the
correct texture layer.

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

--HG--
extra : moz-landing-system : lando
2019-03-07 14:02:50 +00:00
Jamie Nicol
783cdd7d41 Bug 1528820 - Make Device::blit_render_target() require read and draw targets as arguments. r=kvark
Same for blit_render_target_invert_y(). Make them wrappers around the
private function blit_render_target_impl(), which uses the currently
bound read and draw targets as before.

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

--HG--
extra : moz-landing-system : lando
2019-03-07 14:02:46 +00:00
Brian Birtles
b956fdbf9f Bug 1532568 - Don't pass the display item types to FrameLayerBuilder::EnumerateGenerationForDedicatedLayers; r=hiro
We always pass the same set of types so it seems simpler to just look it up
within the function itself.

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

--HG--
extra : moz-landing-system : lando
2019-03-07 05:40:24 +00:00
Brian Birtles
46f45a965b Bug 1532568 - Look up the animation generation on the primary frame for transform display items; r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D22443

--HG--
extra : moz-landing-system : lando
2019-03-07 05:40:51 +00:00
Coroiu Cristina
d234f2549a Merge mozilla-central to autoland a=merge on a CLOSED TREE 2019-03-07 06:39:14 +02:00
Coroiu Cristina
24aacfe9a4 Merge inbound to mozilla-central a=merge 2019-03-07 06:34:11 +02:00
Lee Salzman
3abe8f0cf3 Bug 1531975 - just do a gfxCriticalNote on buffer-provider over-production instead of an error r=nical
Differential Revision: https://phabricator.services.mozilla.com/D22518
2019-03-07 10:51:17 -05:00
sotaro
81c5f1f2b3 Bug 1532942 - Use EGLConfig as argument of CreateEGLSurfaceForCompositorWidget() r=jgilbert
EGLConfig could be get from GLContextEGL. It is better to use it than re-creating EGLConfig.

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

--HG--
extra : moz-landing-system : lando
2019-03-06 19:00:38 +00:00
Lee Salzman
91d9a90e20 Bug 1533139 - pass in raster scale to text run shader without inverting r=gw
Differential Revision: https://phabricator.services.mozilla.com/D22379

--HG--
extra : moz-landing-system : lando
2019-03-06 21:39:04 +00:00
Lee Salzman
f4c05292a1 Bug 1527531 - calculate glyph subpixel positions using the precise font transform r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D22349

--HG--
extra : moz-landing-system : lando
2019-03-06 20:40:53 +00:00
Bobby Holley
ec2f81db57 Bug 1531196 - Add a "small-screen" debug pref to shrink the overlay a bit. r=gw
Adaptive sizing would be better, but this is the simplest path to
victory.

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

--HG--
extra : moz-landing-system : lando
2019-03-06 20:32:32 +00:00
Glenn Watson
e920cc3f6a Bug 1533236 - Add a fast path to WR for common gradient types. r=kvark
The existing linear gradient shader is quite slow, especially
on very large gradients on integrated GPUs.

The vast majority of gradients in real content are very simple
(typically < 4 stops, no angle, no repeat). For these, we can
run a fast path to persist a small gradient in the texture cache
and draw the gradient via the image shader.

This is _much_ faster than the catch-all gradient shader, and also
results in better batching while drawing the main scene.

In future, we can expand the fast path to handle more cases, such
as angled gradients. For now, it takes a conservative approach,
but still seems to hit the fast path on most real content.

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

--HG--
extra : moz-landing-system : lando
2019-03-07 21:20:40 +00:00
sotaro
d5c91bd359 Bug 1532457 - Gracefully handle non WebRenderTextureHost case r=nical
Differential Revision: https://phabricator.services.mozilla.com/D22256

--HG--
extra : moz-landing-system : lando
2019-03-07 16:15:17 +00:00
Emilio Cobos Álvarez
cd9ccbbe42 Bug 1533142 - followup: Fix Windows MinGW bustage. r=me 2019-03-07 00:34:19 +01:00
Emilio Cobos Álvarez
cb19991fd7 Bug 1533142 - Use more cbindgen features. r=kats
We can get back the fancy flag syntax as soon as we get C++17 inline variables,
which I sent an email to dev-platform@ about, with no reply.

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

--HG--
extra : moz-landing-system : lando
2019-03-06 23:01:11 +00:00
Csoregi Natalia
fb77726639 Merge mozilla-central to autoland. CLOSED TREE 2019-03-06 18:14:27 +02:00
Csoregi Natalia
5916c8397a Merge inbound to mozilla-central. a=merge 2019-03-06 18:11:32 +02:00
Kartikaya Gupta
b038cea28b Bug 1532917 - Remove dead codepath. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D22268

--HG--
extra : moz-landing-system : lando
2019-03-06 11:25:10 +00:00
sotaro
ec92048ab6 Bug 1532510 - Add a check by IsDestroyed() to WebRenderLayerManager::DidComposite() r=nical
Differential Revision: https://phabricator.services.mozilla.com/D22044

--HG--
extra : moz-landing-system : lando
2019-03-06 10:25:01 +00:00
Csoregi Natalia
fbb251448f Merge inbound to mozilla-central. a=merge 2019-03-06 11:56:17 +02:00
Kearwood "Kip" Gilbert
cbc8b87365 Bug 1530663 - Avoid running remaining VRManager tasks after mTaskTimer has been stopped r=daoshengmu
Differential Revision: https://phabricator.services.mozilla.com/D22188

--HG--
extra : moz-landing-system : lando
2019-03-05 22:32:58 +00:00
Sebastian Hengst
806a60c6af Bug 1532992 - Set 'Core :: WebVR' as default bugzilla product and component for gfx/vr/ r=kats
Differential Revision: https://phabricator.services.mozilla.com/D22298

--HG--
extra : moz-landing-system : lando
2019-03-06 14:45:43 +00:00
Bas Schouten
027d1994fb Bug 1526045 - Part 3: Ensure DrawTarget validity inside gfxBlur::InitDrawTarget. r=rhunt
Differential Revision: https://phabricator.services.mozilla.com/D21900

--HG--
extra : rebase_source : 3bba335a9582d706a8c537358ad37b6d1be0e7fc
2019-03-04 10:49:02 +01:00
Bas Schouten
ef0300b3f8 Bug 1521774 - Part 2: Ensure a device is available when attempting to create a device context. r=rhunt
Differential Revision: https://phabricator.services.mozilla.com/D21899

--HG--
extra : rebase_source : e193dac57302af15820bfaa774540797cde2a0c3
2019-03-04 10:33:19 +01:00
Kartikaya Gupta
0e6edbd173 Bug 1532647 - Re-enable test_group_zoom on webrender. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D22093

--HG--
extra : moz-landing-system : lando
2019-03-05 18:19:48 +00:00
Ciure Andrei
698d0759ec Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2019-03-05 06:24:16 +02:00
Ciure Andrei
253bf420a1 Merge inbound to mozilla-central. a=merge 2019-03-05 06:20:52 +02:00
Jeff Muizelaar
4febae72fc Bug 1495170. Use CreateClippedDrawTarget more. r=mstange
This lets us restrict the size of the mask surface that we allocate
to the destination tile size. This gives a large performance
improvement.

It also includes some miscelanous fixes to the CreateClippedDrawTarget
code path.

Differential Revision: https://phabricator.services.mozilla.com/D21750
2019-03-04 22:30:09 -05:00
Jeff Muizelaar
acbf363d37 Bug 1495170. Handle mask offsets.
Differential Revision: https://phabricator.services.mozilla.com/D21749
2019-03-04 22:30:08 -05:00
Jeff Muizelaar
967d03ef66 Bug 1531532. Use preTranslate instead of postTranslate when correcting for the mask offset. r=mattwoodrow
DTO = DrawTargetOffset = (-Origin.x, -Origin.y)
CTM = CurrentTransform
MASKT = MaskTransform = Inv(CurrentTransform)
MASKO = MaskOffset = (GetRect().x, GetRect().y)

The transform to device space is:

MASKT * CTM * DTO

Currently we do:
MASKT = MASKT * MASKO

Which gives us MASKT * MASKO * CTM * DTO. This works fine if there's no scale but
will not properly cancel out if there is.

I believe we want:
MASKO * MASKT * CTM * DTO

To get this we need to preTranslate instead of postTranslate.

Differential Revision: https://phabricator.services.mozilla.com/D21604
2019-03-04 22:30:06 -05:00
Ciure Andrei
5ebab45abd Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2019-03-04 23:54:12 +02:00
Alex Gaynor
38a2064d1e Bug 1441651 - Part 2 - pass Shmem and ByteBuf by rvalref to Send* IPC methods; r=nika,jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D19954

--HG--
extra : moz-landing-system : lando
2019-03-04 16:35:30 +00:00
Alex Gaynor
82df5a3cd4 Bug 1441651 - Part 1 - pass Shmem and ByteBuf by rvalref to ParamTraits; r=nika
Differential Revision: https://phabricator.services.mozilla.com/D19953

--HG--
extra : moz-landing-system : lando
2019-03-04 16:07:37 +00:00
Andreea Pavel
059caa6443 Backed out changeset adf5830d08b5 (bug 1532171) for build bustages on a CLOSED TREE 2019-03-04 23:07:02 +02:00
Ryan Hunt
36f945fb89 Bug 1531528 - Rename CrossProcessCompositorBridgeParent to ContentCompositorBridgeParent. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D21714

--HG--
rename : gfx/layers/ipc/CrossProcessCompositorBridgeParent.cpp => gfx/layers/ipc/ContentCompositorBridgeParent.cpp
rename : gfx/layers/ipc/CrossProcessCompositorBridgeParent.h => gfx/layers/ipc/ContentCompositorBridgeParent.h
extra : moz-landing-system : lando
2019-03-03 21:02:25 +00:00
Kartikaya Gupta
fecd1d365c Bug 1511740 - Use nsDisplayAsyncZoom items to insert zooming animations in WR. r=jrmuizel,botond
The way we control APZ zooming in WebRender is by inserting an animation
property placeholder on a WR stacking context, and then having APZ
update the animation transform value with the proper matrix at composite
time.

Previously, the stacking context being used was the rootmost
stacking context in the content process. However this doesn't work for
zoomable content in the UI process (e.g. about:support), and after
recent changes, also wraps display items that should not be affected by
zoom (e.g. scrollbars or the background color item).

This patch moves the animation property placeholder so that it
corresponds to the newly added nsDisplayAsyncZoom display item, which
corrects both of the above problems and is conceptually in line with the
desired behaviour.

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

--HG--
extra : moz-landing-system : lando
2019-03-04 20:55:46 +00:00
Lee Salzman
f4063ee685 Bug 1532171 - don't use light-on-dark mask when font smoothing is disabled on macOS r=rhunt
Differential Revision: https://phabricator.services.mozilla.com/D22006

--HG--
extra : moz-landing-system : lando
2019-03-04 20:49:28 +00:00
Glenn Watson
31fb2275a2 Bug 1531524 - Support running wrench on Android. r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D21881

--HG--
extra : moz-landing-system : lando
2019-03-04 18:49:52 +00:00
Dzmitry Malyshau
fbd7d832eb Bug 1531930 - Interneration refactoring r=gw
Remove the intern_types module in favor of the associated Internable types that we already have.
The only bit of magic I had to do is around serialization bounds, and it's nicely isolated.

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

--HG--
extra : moz-landing-system : lando
2019-03-04 16:48:40 +00:00
Lee Salzman
dd8353d50b Bug 1532171 - don't use light-on-dark mask when font smoothing is disabled on macOS r=rhunt
Differential Revision: https://phabricator.services.mozilla.com/D22006
2019-03-04 15:45:04 -05:00
Andrew Osmond
8e407b7327 Bug 1526756 - Snap brushes for pictures to the primitive instead of visible rect. r=kvark
A picture can have its own unique clip which was not considered by its
children when calculating their visible rects. As a result, if a picture
clips its primitive rect for snapping purposes, it may produce a
different snapping offset than expected. We should instead just snap to
the primitive rect itself for the picture, since it is the union of the
visible rects that we snapped to for the children.

Differential Revision: https://phabricator.services.mozilla.com/D21778
2019-03-04 14:21:18 -05:00
Bogdan Tara
f516b0e3b5 Backed out changeset 458edf3460d4 (bug 1531930) for tidy bustage CLOSED TREE 2019-03-04 05:58:40 +02:00