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

36131 Коммитов

Автор SHA1 Сообщение Дата
Tim Nguyen 08ab9ceb1e Bug 1616587 - Implement conic-gradient for Skia graphics backend. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D63415

--HG--
extra : moz-landing-system : lando
2020-02-21 00:12:47 +00:00
Mike Shal c8abdd68c2 Bug 1616630 - Use py3_action for GENERATED_FILES that already support it; r=firefox-build-system-reviewers,kvark,rstewart
Differential Revision: https://phabricator.services.mozilla.com/D63438

--HG--
extra : moz-landing-system : lando
2020-02-21 00:05:17 +00:00
Csoregi Natalia ff5e1dafb1 Backed out changeset bf981458da0c (bug 1616587) for bustage on DrawTargetCairo.cpp. CLOSED TREE 2020-02-21 02:07:11 +02:00
Tim Nguyen edf9be08c3 Bug 1616587 - Implement conic-gradient for Skia graphics backend. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D63415

--HG--
extra : moz-landing-system : lando
2020-02-20 23:50:06 +00:00
Csoregi Natalia a15f9174ec Backed out changeset 3a8d5795c985 (bug 1616335) for tidy bustage on display_list.rs. CLOSED TREE 2020-02-21 01:31:33 +02:00
Csoregi Natalia 30fc2949d8 Backed out changeset 2d804daeaccb (bug 1616587) for bustages on DrawTargetCairo.cpp. CLOSED TREE 2020-02-21 01:19:36 +02:00
Miko Mynttinen 94dc6ffded Bug 1616335 - Add a pref to dump the serialized WebRender display list r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D63227

--HG--
extra : moz-landing-system : lando
2020-02-20 23:13:13 +00:00
Tim Nguyen 41df136301 Bug 1616587 - Implement conic-gradient for Skia graphics backend. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D63415

--HG--
extra : moz-landing-system : lando
2020-02-20 22:58:59 +00:00
Csoregi Natalia 6360b24e80 Backed out 2 changesets (bug 1616630) for Android bustage. CLOSED TREE
Backed out changeset 15016546c954 (bug 1616630)
Backed out changeset dcb7dc51633b (bug 1616630)
2020-02-20 21:24:11 +02:00
Mike Shal 39492660f4 Bug 1616630 - Use py3_action for GENERATED_FILES that already support it; r=firefox-build-system-reviewers,kvark,rstewart
Depends on D63437

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

--HG--
extra : moz-landing-system : lando
2020-02-20 16:21:55 +00:00
Nicolas Silva b41ff8b834 Bug 1581475 - Check that the D2D DrawTarget always has a layer. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D63484

--HG--
extra : moz-landing-system : lando
2020-02-20 17:26:21 +00:00
Miko Mynttinen 17685a756d Bug 1614652 - Wrap BuiltDisplayList and DisplayItemCache in DisplayListWithCache, and unify serialization/deserialization with BuiltDisplayList r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D63229

--HG--
extra : moz-landing-system : lando
2020-02-20 17:19:07 +00:00
Razvan Maries 0f94fbf52d Backed out changeset e177c04d03e0 (bug 1614652) for build bustages. CLOSED TREE 2020-02-20 18:50:03 +02:00
Miko Mynttinen cf256a1958 Bug 1614652 - Wrap BuiltDisplayList and DisplayItemCache in DisplayListWithCache, and unify serialization/deserialization with BuiltDisplayList r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D63229

--HG--
extra : moz-landing-system : lando
2020-02-20 16:36:55 +00:00
Tim Nguyen 0afd3695fa Bug 1616803 - Fix copy-paste error in DrawTargetRecording.cpp. r=gfx-reviewers,jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D63489

--HG--
extra : moz-landing-system : lando
2020-02-20 16:02:13 +00:00
Martin Stransky 2d00d46613 Bug 1616590 [Wayland] Fix GL compositor to composite correctly NV12 textures generated by ffmpeg, r=sotaro
- Enable GL_TEXTURE_RECTANGLE_ARB only when the extension is supported
- Switch Green and Alpha colors in NV12 shader when compositing on Wayland. Is's because vaExportSurfaceHandle() exports UV plane in DRM_FORMAT_GR88 format so we have to use R and G channels and not R and A as we have now.

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

--HG--
extra : moz-landing-system : lando
2020-02-20 14:08:25 +00:00
Nicolas Silva e4cabee633 Bug 1615613 - Make the text fragment shader compatible with the brush infrastructure. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D63093

--HG--
extra : moz-landing-system : lando
2020-02-18 13:32:24 +00:00
Simon Giesecke 9350e6b741 Bug 1613985 - Use MOZ_COUNTED_DEFAULT_CTOR_*/MOZ_COUNTED_DTOR_* macros. r=froydnj
This removes the need for explicit #ifdef NS_BUILD_REFCNT_LOGGING without
introducing user-defined destructors when it is not defined.

Also, some uses of virtual for declaring destructors are replaced by the
appropriate override declaration through these changes.

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

--HG--
extra : moz-landing-system : lando
2020-02-20 11:40:14 +00:00
sotaro cecac7d080 Bug 1611886 - Add VRManagerParent::Shutdown() r=nical
Differential Revision: https://phabricator.services.mozilla.com/D61144

--HG--
extra : moz-landing-system : lando
2020-02-20 06:46:11 +00:00
Jonathan Kew bbb6c04d13 Bug 1616268 - Back out changeset 780285749c80 (bug 1611617) for cold-start regressions on various sites. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D63376

--HG--
extra : moz-landing-system : lando
2020-02-20 02:33:41 +00:00
Nicolas Silva dddad2c070 Bug 1616594 - Use the scene's frame builder config during frame building. r=gw
The render backend's frame builder config is kept only in order to send updates to the scene builder's frame builder config which will update the scene's in the next transaction. If need be the scene configs can be updated right away by looping over the documents. This avoids confusing bugs where only updating the backend's config affects the visibility pass but not the rest.

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

--HG--
extra : moz-landing-system : lando
2020-02-20 09:06:47 +00:00
Nicolas Silva 8d2152543a Bug 1616592 - Control the batching lookback count via a pref. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D63336

--HG--
extra : moz-landing-system : lando
2020-02-20 03:45:17 +00:00
sotaro 35d7986d92 Bug 1595014 - Make dirty rects are invalid when all tiles of retained_tiles are not re-used r=gw
Differential Revision: https://phabricator.services.mozilla.com/D63315

--HG--
extra : moz-landing-system : lando
2020-02-19 22:01:00 +00:00
Dzmitry Malyshau 199a362906 Bug 1602131 - WebGPU render passes r=jgilbert,webidl,smaug
Adds support for recording render passes in WebGPU.
The `wgpu` logo is also added to the repository ("gfx/wgpu/logo.png") under [CC-BY-SA](https://creativecommons.org/licenses/by-sa/3.0/) license.

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

--HG--
extra : moz-landing-system : lando
2020-02-19 19:25:30 +00:00
Dorel Luca d5f9df8ee1 Backed out 2 changesets (bug 1613985) for Build bustage on Windows2012. CLOSED TREE
Backed out changeset fd177b40b561 (bug 1613985)
Backed out changeset fb6d62b7f28d (bug 1613985)
2020-02-19 22:22:41 +02:00
Emilio Cobos Álvarez 5b006d907b Bug 1616395 - Unbust windows build in a CLOSED TREE.
MANUAL PUSH: minor bustage fix.
2020-02-19 20:36:27 +01:00
Simon Giesecke 59b23375c0 Bug 1613985 - Use MOZ_COUNTED_DEFAULT_CTOR_*/MOZ_COUNTED_DTOR_* macros. r=froydnj
This removes the need for explicit #ifdef NS_BUILD_REFCNT_LOGGING without
introducing user-defined destructors when it is not defined.

Also, some uses of virtual for declaring destructors are replaced by the
appropriate override declaration through these changes.

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

--HG--
extra : moz-landing-system : lando
2020-02-19 18:05:38 +00:00
Emilio Cobos Álvarez d18caaa054 Bug 1616395 - Remove FfiVec. r=jrmuizel
Use ThinVec instead, which is compatible with nsTArray, and makes stuff much
harder to misuse.

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

--HG--
extra : moz-landing-system : lando
2020-02-19 18:34:51 +00:00
Martin Stransky 905e0e97e8 Bug 1614568 [Wayland] Implement fence sync to dmabuf surfaces for WebGL rendering, r=jgilbert
Use ANDROID_native_fence_sync to synchronize WebGL renderin. It's similar to KHR_fence_sync
but it the fence can be exported to file descriptor and shared among processes so we can create
the fence by WebGL producer and then wait in renderer.

Use glFinish() as a fallback when ANDROID_native_fence_sync is not available.

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

--HG--
extra : moz-landing-system : lando
2020-02-19 15:13:28 +00:00
Pavel Sergeev 81d3bc78a1 Bug 1616364 - initailize thread profiler on Compositor thread only once r=gw
[import_pr] From https://github.com/servo/webrender/pull/3864

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

--HG--
extra : moz-landing-system : lando
2020-02-18 20:22:47 +00:00
Nicolas Silva 86c7dccc83 Bug 1615613 - Encode glyph instance attributes in gpu_types.rs. r=gw
Continuing on the trend of having all of the gpu data encoding in gpu_types.rs so that it is easy to find and to avoid repeating it in batch.rs.

Depends on D62928

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

--HG--
extra : moz-landing-system : lando
2020-02-18 20:24:12 +00:00
Nicolas Silva d131835edf Bug 1615613 - Wrap image brush user data in a struct. r=gw
A quality-of-life improvement that will make it easier to change the encoding of the user data without having to repeat the correct casting, bit shifting and masking in many places. It also makes it harder to encode the data incorrectly by mistake or forget information.

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

--HG--
extra : moz-landing-system : lando
2020-02-19 12:58:11 +00:00
Nicolas Silva 4942c75d01 Bug 1615613 - Move text snap bias in its own function. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D62926

--HG--
extra : moz-landing-system : lando
2020-02-19 12:58:11 +00:00
Nicolas Silva 2d252c6548 Bug 1615613 - Use write_vertex in the text run shader. r=gw
Baby step towards making text and brush shaders more similar.

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

--HG--
extra : moz-landing-system : lando
2020-02-18 13:23:57 +00:00
Jonathan Kew bc43d9263d Bug 1616193 - If Face::SetCharacterMap is called from a stylo thread, make it post a runnable instead of attempting to do IPC itself. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D63210

--HG--
extra : moz-landing-system : lando
2020-02-19 11:28:07 +00:00
Tim Nguyen 8ba933913f Bug 1616106 - Add more tests and reference images for conic-gradient wrench test suite. r=nical
Differential Revision: https://phabricator.services.mozilla.com/D63213

--HG--
rename : gfx/wr/wrench/reftests/gradient/conic-start-angle.yaml => gfx/wr/wrench/reftests/gradient/conic-angle.yaml
extra : moz-landing-system : lando
2020-02-19 11:26:19 +00:00
Imanol Fernandez a980785958 Bug 1616386 - Fix Quaternion copy constructor r=lsalzman
Fix Quaternion copy constructor

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

--HG--
extra : moz-landing-system : lando
2020-02-18 21:37:21 +00:00
Mike Shal d8e4653d19 Bug 1611326 - Default to py3_action, and add a py2 attribute to GENERATED_FILES; r=firefox-build-system-reviewers,rstewart
GENERATED_FILES now defaults to python3 unless py2=True is specified as
an argument. All existing GENERATED_FILES scripts and GeneratedFile
templates have the py2=True attribute added, so this patch should
effectively be a no-op.

Going forward, individual scripts can be converted to python3 and their
corresponding py2=True attribute can be deleted. In effect, this patch
will be backed out in pieces until all scripts run in python3, at which
point the py2 attribute itself can be removed.

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

--HG--
extra : moz-landing-system : lando
2020-02-14 13:22:46 +00:00
Jeff Muizelaar efa59f1e9f Bug 1615694. Declare our render targets up front to ANGLE. r=kvark
This should remove the allocation and copy in
TextureD3D::ensureRenderTarget() in some situations.

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

--HG--
extra : moz-landing-system : lando
2020-02-18 18:33:48 +00:00
Kris Taeleman 45d52aa2d7 Bug 1612620 - Fixing dashed/dotted border issue Android devices with Adreno. r=jnicol
On GLES, the default shader behaviour is to use highp(32bit) integers
in the vertex shader and mediump(16bit) integers in the fragment shader. This
causes issues in the border shader due to bitshifting with 16 bits. The
fix here is to only shift by 8 bits as the data can be represented in a
16bit integer and forcing mediump in the vertex shader as well.

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

--HG--
extra : moz-landing-system : lando
2020-02-18 18:17:27 +00:00
Nicolas Silva 1ff2e87bb4 Bug 1581475 - Add missing null-check in CreateBrudhForPattern. r=jrmuizel
The crash reports all have allocation failures in their gfx critical log indicating that the best we can do is bail out without crashing and hope that enough memory will be freed before we run into an infallible allocation.

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

--HG--
extra : moz-landing-system : lando
2020-02-18 13:52:42 +00:00
Arthur Iakab e352a29c70 Backed out changeset 106776ac6c20 (bug 1615694) for tidy build bustages.
CLOSED TREE
2020-02-18 18:27:23 +02:00
Haik Aftandilian 72680ad529 Bug 1595420 - OOM in GPUProcessManager::OnPreferenceChange and RDDProcessManager::OnPreferenceChange on macOS r=mjf,jya
Change GPUProcessManager::OnPreferenceChange() and
RDDProcessManager::OnPreferenceChange() to only queue preference changes when
the child process is in the act of launching. And don't start observing
preference changes until we launch the child process rather that at startup.

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

--HG--
extra : moz-landing-system : lando
2020-02-18 15:57:14 +00:00
Jeff Muizelaar 260a5680ee Bug 1615694. Declare our render targets up front to ANGLE. r=kvark
This should remove the allocation and copy in
TextureD3D::ensureRenderTarget() in some situations.

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

--HG--
extra : moz-landing-system : lando
2020-02-18 14:59:03 +00:00
Andrew Osmond 759c48f75e Bug 1614377 - Switch the WebRender rollout to use allowlist rules. r=jrmuizel
Now that GfxInfo supports allowlisting, we can port our existing
configuration in gfxPlatform to using allowlist rules. This will
greatly increase maintainability and certainty that the expected
devices are getting WebRender.

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

--HG--
extra : moz-landing-system : lando
2020-02-18 13:56:10 +00:00
sotaro 03286b57aa Bug 1616174 - Do not create unnecessary compositor window r=nical
compositor window is not necessary for BasicCompositor.

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

--HG--
extra : moz-landing-system : lando
2020-02-18 09:39:23 +00:00
Glenn Watson ef367b4472 Bug 1579235 - Part 3 - Abstract some parts of yuv shader logic. r=nical
Factor some parts of the YUV brush shader out into a shared
yuv.glsl shader include.

In future, this shader code will also be referenced by the
composite.glsl shader when using the simple (Draw) compositing
mode, to composite video surfaces directly into the framebuffer
where possible.

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

--HG--
extra : moz-landing-system : lando
2020-02-18 08:21:16 +00:00
Tim Nguyen f4e89947b9 Bug 1615614 - Make brush_conic_gradient.glsl compile on GLES. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D63118

--HG--
extra : moz-landing-system : lando
2020-02-18 02:55:46 +00:00
Hiroyuki Ikezoe 9af75ef401 Bug 1616140 - Rename append_dynamic_properties to append_dynamic_transform_properties. r=gw
It's only for transforms by APZC.

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

--HG--
extra : moz-landing-system : lando
2020-02-17 23:41:52 +00:00
Hiroyuki Ikezoe 83f0515688 Bug 1616140 - Use Vec::with_capacity() instead of Vec::new(). r=gw
Differential Revision: https://phabricator.services.mozilla.com/D63114

--HG--
extra : moz-landing-system : lando
2020-02-17 23:41:35 +00:00
sotaro fd1ef47bde Bug 1615946 - Log error when RenderCompositorANGLE::MaybeReadback() takes long time r=nical
Differential Revision: https://phabricator.services.mozilla.com/D63039

--HG--
extra : moz-landing-system : lando
2020-02-17 14:39:31 +00:00
sotaro d29a629eb9 Bug 1615980 - Add more logs to RenderBufferTextureHost::Lock() r=nical
Differential Revision: https://phabricator.services.mozilla.com/D63044

--HG--
extra : moz-landing-system : lando
2020-02-17 14:38:27 +00:00
Glenn Watson 10c752a7ab Bug 1615091 - Fix panic in resolve_split_planes with invalid transform. r=nical
Differential Revision: https://phabricator.services.mozilla.com/D63033

--HG--
extra : moz-landing-system : lando
2020-02-17 14:37:34 +00:00
Jonathan Kew 5c0973b9b0 Bug 1611617 - Don't let gfxFontGroup::GetFirstValidFont return a font from the font-family list that doesn't support the given character (prefer to fall back to the default font). r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D61068

--HG--
extra : moz-landing-system : lando
2020-02-17 09:29:21 +00:00
Bogdan Tara e7e4a237f0 Backed out changeset de247892d14a (bug 1614377) for gfxPlatform.cpp related failures CLOSED TREE 2020-02-17 03:24:12 +02:00
Andrew Osmond 56e9347749 Bug 1614377 - Switch the WebRender rollout to use allowlist rules. r=jrmuizel
Now that GfxInfo supports allowlisting, we can port our existing
configuration in gfxPlatform to using allowlist rules. This will
greatly increase maintainability and certainty that the expected
devices are getting WebRender.

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

--HG--
extra : moz-landing-system : lando
2020-02-14 19:26:17 +00:00
Jeff Gilbert b8111d92ec Bug 1615751 - Prune unused parts of GLScreenBuffer. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D62979

--HG--
extra : moz-landing-system : lando
2020-02-15 22:48:36 +00:00
Arthur Iakab fa5241b0f1 Backed out changeset 57fa22ef0461 (bug 1615751) for multiple build bustages.
DONTBUILD
CLOSED TREE
2020-02-15 22:19:55 +02:00
Jeff Gilbert 739ec46d60 Bug 1615751 - Prune unused parts of GLScreenBuffer. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D62979

--HG--
extra : moz-landing-system : lando
2020-02-15 04:15:21 +00:00
sotaro 385addd8c7 Bug 1614570 - Make VRManagerChild life time handling more like CompositorManagerChild r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D62710

--HG--
extra : moz-landing-system : lando
2020-02-14 15:10:40 +00:00
Mihai Alexandru Michis 2951da7110 Backed out changeset 6550b62f1fe7 (bug 1555356) for causing reftest failures in SVG files.
CLOSED TREE
2020-02-14 23:59:09 +02:00
Olli Pettay 7c5324c60e Bug 1506376, remove useless private: from VsyncEvent struct r=mattwoodrow
Depends on D61083

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

--HG--
extra : moz-landing-system : lando
2020-02-14 16:28:08 +00:00
Olli Pettay 67bc11ab14 Bug 1506376, make DidComposite to use mediumhigh priority message r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D61083

--HG--
extra : moz-landing-system : lando
2020-02-14 16:27:50 +00:00
Jonathan Kew a6920a844b Bug 1612610 - Use the bounding box of the full textrun range, not just an individual glyph run, when double-buffering for color/bold drawing. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D62900

--HG--
extra : moz-landing-system : lando
2020-02-14 16:16:57 +00:00
Bogdan Tara fa8d9b047d Backed out changeset 80c254f460f5 (bug 1600793) for bustages complaining about webrender_ffi.h CLOSED TREE 2020-02-14 17:54:44 +02:00
Boris Zbarsky 6c66fa85a4 Bug 1615022 part 2. Require an rvalue reference to reject a Promise with an ErrorResult. r=farre,kvark
The rejection process consumes the ErrorResult, so an rvalue reference is the honest thing here.

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

--HG--
extra : moz-landing-system : lando
2020-02-14 15:42:30 +00:00
Sean Feng 3564b8e803 Bug 1600793 - Make the scrolling input telemetry work for WebRender r=botond,jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D60046

--HG--
extra : moz-landing-system : lando
2020-02-14 15:26:35 +00:00
Bogdan Tara 74db09d838 Backed out 3 changesets (bug 1506376) for xpcshell failures CLOSED TREE
Backed out changeset fe7215eefa28 (bug 1506376)
Backed out changeset 621ec02db41c (bug 1506376)
Backed out changeset adbd602610a3 (bug 1506376)
2020-02-14 17:07:49 +02:00
Alexis Beingessner 6b442a22a5 Bug 1555356 - Make images inside of SVGs active. r=aosmond
This is done using a similar approach to CreateWebRenderCommands
but slightly modified. In particular the active layer check needs
to be done before we're ready to CreateWebRenderCommands, but once
we decide to activate an item, we can't let CreateWebRenderCommands
fail. Unfortunately, the need to query ImageLib for support means
we need to do basically ~all of the work of CreateWebRenderCommands
to do this check.

As such, this introduces a modified version of CreateWebRenderCommands
that SVGGeometryFrames implement with a "dry run" flag. When true,
it runs the same code but stops short of mutating the WR DL/state.

ImageLib may be encouraged to do some extra work that could be thrown
away, but I'm not sure there's any way to avoid that.

For now, only SVGImageFrame actually provides an implementation. The
bulk of the implementation is handling the on-by-default
preserveAspectRatio feature of SVG images. It was cleaner to just
reimplement that logic than reuse the existing preserveAspectRatio
code, as it was too tangled up in the particulars of how the PaintSVG
path is designed.

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

--HG--
extra : moz-landing-system : lando
2020-02-14 14:50:36 +00:00
Olli Pettay 0d9b7960a2 Bug 1506376, remove useless private: from VsyncEvent struct r=mattwoodrow
Depends on D61083

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

--HG--
extra : moz-landing-system : lando
2020-02-14 13:55:02 +00:00
Olli Pettay 6e2d5cc4ae Bug 1506376, make DidComposite to use mediumhigh priority message r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D61083

--HG--
extra : moz-landing-system : lando
2020-02-14 13:54:30 +00:00
Cosmin Sabou 8b4eabd7c2 Merge mozilla-central to autoland. 2020-02-14 15:17:39 +02:00
Cosmin Sabou ff39f9206d Backed out 2 changesets (bug 1613263, bug 1611326) for presummably causing l10n langpack bustages. a=backout
Backed out changeset 77e54e76848a (bug 1611326)
Backed out changeset 36ba18ac3a68 (bug 1613263)
2020-02-14 15:02:21 +02:00
Glenn Watson 1b40eb8660 Bug 1615141 - Fix panic in picture cache dependency building. r=Bert
Differential Revision: https://phabricator.services.mozilla.com/D62851

--HG--
extra : moz-landing-system : lando
2020-02-14 00:30:02 +00:00
Greg V e5dcb46da9 Bug 1615465 - fix missing nsString include in GLContext r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D62843

--HG--
extra : moz-landing-system : lando
2020-02-14 00:25:19 +00:00
Mike Shal ad0c283ab2 Bug 1611326 - Default to py3_action, and add a py2 attribute to GENERATED_FILES; r=firefox-build-system-reviewers,rstewart
GENERATED_FILES now defaults to python3 unless py2=True is specified as
an argument. All existing GENERATED_FILES scripts and GeneratedFile
templates have the py2=True attribute added, so this patch should
effectively be a no-op.

Going forward, individual scripts can be converted to python3 and their
corresponding py2=True attribute can be deleted. In effect, this patch
will be backed out in pieces until all scripts run in python3, at which
point the py2 attribute itself can be removed.

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

--HG--
extra : moz-landing-system : lando
2020-02-13 23:07:04 +00:00
Brindusan Cristian e2fb6b8344 Backed out changeset 7fefed11f117 (bug 1611326) for build bustages at update-1.xpi.stub. CLOSED TREE 2020-02-13 23:33:34 +02:00
Brindusan Cristian 73ca873fdb Backed out changeset 3a8a36e50541 (bug 1555356) for reftest failures at pattern-big-image.html. CLOSED TREE 2020-02-13 23:16:11 +02:00
Andrew Osmond 6e53ff1703 Bug 1529260 - Match shader and CPU glyph rasterization logic for glyphs in local space. r=lsalzman
This patch makes the CPU side incorporate the raster scale when
calculating the subpixel position of a glyph. It also makes the shader
side not include the glyph scale factor when recalculating the glyph
position (since it was not known/used when determining the subpixel
position in the first place). This makes the subpixel position stable
when we transition between Screen and Local(raster_scale) spaces.

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

--HG--
extra : moz-landing-system : lando
2020-02-13 20:40:11 +00:00
Mike Shal e6464dd404 Bug 1611326 - Default to py3_action, and add a py2 attribute to GENERATED_FILES; r=firefox-build-system-reviewers,rstewart
GENERATED_FILES now defaults to python3 unless py2=True is specified as
an argument. All existing GENERATED_FILES scripts and GeneratedFile
templates have the py2=True attribute added, so this patch should
effectively be a no-op.

Going forward, individual scripts can be converted to python3 and their
corresponding py2=True attribute can be deleted. In effect, this patch
will be backed out in pieces until all scripts run in python3, at which
point the py2 attribute itself can be removed.

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

--HG--
extra : moz-landing-system : lando
2020-02-13 20:31:50 +00:00
Glenn Watson bc6823edf8 Bug 1579235 - Part 2 - Refactor some of the tile map handling code. r=nical,Bert
Simplify some of the logic related to handling multiple
compositor surfaces in future, specifically:

* Only rebuild the tiles map when the tile rect changes.
* Remove need for tiles_to_draw array.

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

--HG--
extra : moz-landing-system : lando
2020-02-13 18:08:16 +00:00
Alexis Beingessner 33d729a0f1 Bug 1555356 - Make images inside of SVGs active. r=aosmond
This is done using a similar approach to CreateWebRenderCommands
but slightly modified. In particular the active layer check needs
to be done before we're ready to CreateWebRenderCommands, but once
we decide to activate an item, we can't let CreateWebRenderCommands
fail. Unfortunately, the need to query ImageLib for support means
we need to do basically ~all of the work of CreateWebRenderCommands
to do this check.

As such, this introduces a modified version of CreateWebRenderCommands
that SVGGeometryFrames implement with a "dry run" flag. When true,
it runs the same code but stops short of mutating the WR DL/state.

ImageLib may be encouraged to do some extra work that could be thrown
away, but I'm not sure there's any way to avoid that.

For now, only SVGImageFrame actually provides an implementation. The
bulk of the implementation is handling the on-by-default
preserveAspectRatio feature of SVG images. It was cleaner to just
reimplement that logic than reuse the existing preserveAspectRatio
code, as it was too tangled up in the particulars of how the PaintSVG
path is designed.

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

--HG--
extra : moz-landing-system : lando
2020-02-13 18:39:27 +00:00
Andrew Osmond 9d0dcc23af Bug 1614376 - Part 1. Add support for an allowlist to GfxInfo. r=jrmuizel
The blocklist currently works by checking the current configuration
against a set of GfxDriverInfo rules. We stop searching as soon as we
find the first match, and return whatever status code that has.

This patch adds a second pass for features marked for allowing. The
current blocklisting rules will still apply as normal. However it will
then review the allowlist rules using the same logic. If we don't get
a match, then we block the feature otherwise we use the allow status
code given in the rule.

New status codes introduced as part of this patch are as follows:

DENIED - Did not match any rules on the allowlist.

ALLOW_ALWAYS - Same as STATUS_OK but passed the allowlist.

ALLOW_QUALIFIED - Same as ALLOW_ALWAYS but should be controlled by
our qualified preference for experimentation purposes.

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

--HG--
extra : moz-landing-system : lando
2020-02-13 16:06:41 +00:00
Simon Giesecke b50347f917 Bug 1611415 - Prefer using std::move over forget. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D60980

--HG--
extra : moz-landing-system : lando
2020-02-13 14:38:48 +00:00
Markus Stange ac0687ac8b Back out bug 1592739 due to multiple regressions (bug 1599366, bug 1601183, bug 1602193). a=backout
Differential Revision: https://phabricator.services.mozilla.com/D62753

--HG--
extra : moz-landing-system : lando
2020-02-13 14:26:51 +00:00
Masatoshi Kimura aedbf36959 Bug 1614814 - Stop using fopen in ipc/chromium/src/base/process_util.h on Windows. r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D62507

--HG--
extra : moz-landing-system : lando
2020-02-13 12:35:40 +00:00
Csoregi Natalia 743b1f8b4b Backed out 3 changesets (bug 1614376) for assertion failures on GfxInfoBase.cpp. CLOSED TREE
Backed out changeset b239f4b49722 (bug 1614376)
Backed out changeset c5ac550f4966 (bug 1614376)
Backed out changeset e11c62eba5f1 (bug 1614376)
2020-02-13 14:35:26 +02:00
Andrew Osmond 7ae72bfac0 Bug 1614376 - Part 1. Add support for an allowlist to GfxInfo. r=jrmuizel
The blocklist currently works by checking the current configuration
against a set of GfxDriverInfo rules. We stop searching as soon as we
find the first match, and return whatever status code that has.

This patch adds a second pass for features marked for allowing. The
current blocklisting rules will still apply as normal. However it will
then review the allowlist rules using the same logic. If we don't get
a match, then we block the feature otherwise we use the allow status
code given in the rule.

New status codes introduced as part of this patch are as follows:

DENIED - Did not match any rules on the allowlist.

ALLOW_ALWAYS - Same as STATUS_OK but passed the allowlist.

ALLOW_QUALIFIED - Same as ALLOW_ALWAYS but should be controlled by
our qualified preference for experimentation purposes.

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

--HG--
extra : moz-landing-system : lando
2020-02-11 22:55:50 +00:00
Glenn Watson 27c1daea33 Bug 1579235 - Part 1 - Support prefer compositor flag in wrench. r=nical
Add support to the yaml reader and writer to be able to specify
that a primitive should set the PREFER_COMPOSITOR_SURFACE flag.

This flag is not currently used, but in future will signal the
picture caching code to promote a primitive to draw on a native
compositor surface where possible.

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

--HG--
extra : moz-landing-system : lando
2020-02-13 10:12:41 +00:00
Martin Stransky 0c0169aabe Bug 1613364 [Wayland] Update gfx code to derived WaylandDMABufSurfaceRGBA class, r=sotaro
WaylandDMABufSurface/WaylandDMABufSurfaceRGBA uses textures interface instead of EGLImages so we need
to update gfx code accordingly:

- rename CreateEGLImage() -> CreateTexture()
- rename ReleaseEGLImage() -> ReleaseTextures()
- rename GetGLTexture() -> GetTexture()
- rename WaylandDMABufSurface::CreateDMABufSurface() to WaylandDMABufSurfaceRGBA::CreateDMABufSurface()

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

--HG--
extra : moz-landing-system : lando
2020-02-12 22:35:02 +00:00
Martin Stransky 5cef4a77a7 Bug 1613364 [Wayland] Update WaylandDMABUFTextureHostOGL and WaylandDMABUFTextureClientOGL to work with NV12 format, r=sotaro
- Update WaylandDMABUFTextureClientOGL to work with WaylandDMABufSurfaceRGBA which is used for GL/WebRender compositor
  with dmabuf texture backend.
- Update WaylandDMABUFTextureHostOGL to work with both RGBA and NV12 surface formats.
- Use GLTextureSource instead of EGLImageTextureSource as we need to store more than one texture there with NV12
  and pass the textures there by CreateTextureSourceForPlane().
- Implement NV12 related function by WaylandDMABUFTextureHostOGL (color space, color range, sub-textures num).
- Add NV12 implementation to PushResourceUpdates()/PushDisplayItems() for WebRender.

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

--HG--
extra : moz-landing-system : lando
2020-02-12 22:34:59 +00:00
Martin Stransky d0648020ef Bug 1613364 [Wayland] Update RenderWaylandDMABUFTextureHostOGL to work with NV12 texture format, r=sotaro
Differential Revision: https://phabricator.services.mozilla.com/D62003

--HG--
extra : moz-landing-system : lando
2020-02-12 22:34:42 +00:00
Martin Stransky 66d3858441 Bug 1613364 [Wayland] Update SurfaceDescriptorDMABuf to export YUV surfaces, r=sotaro
We need to export more planes in SurfaceDescriptorDMABuf and also YUV color space.

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

--HG--
extra : moz-landing-system : lando
2020-02-12 22:34:20 +00:00
Jonathan Kew 74210dcbe1 Bug 1614600 - Avoid instantiating an FT_Face for each font just to read properties during font-list initialization. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D62441

--HG--
extra : moz-landing-system : lando
2020-02-12 18:34:33 +00:00
Tim Nguyen d0a5c12f8e Bug 1614890 - Implement conic-gradient for WebRender graphics backend. r=gw,nical,emilio
Differential Revision: https://phabricator.services.mozilla.com/D61599

--HG--
extra : moz-landing-system : lando
2020-02-12 18:08:32 +00:00
shindli 91aa0518dd Backed out changeset 0c982bc69cb3 (bug 1611415) for causing build bustages in /builds/worker/workspace/build/src/obj-firefox/dist/include/nsCOMPtr CLOSED TREE 2020-02-12 20:13:29 +02:00
Simon Giesecke f604a47fa5 Bug 1611415 - Applied FixItHints from mozilla-non-std-move. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D60980

--HG--
extra : moz-landing-system : lando
2020-02-12 17:24:41 +00:00
Mihai Alexandru Michis 2edd3953d8 Backed out changeset 8f55490fb539 (bug 1614890) for causing awsy failures. 2020-02-12 16:40:22 +02:00
Timothy Nikkel 96274c2281 Bug 1614232. Make sure to call RenderMaskLayers in ClientRefLayer::RenderLayer. r=mattwoodrow
ClientReadbackLayer::RenderLayer is the only other RenderLayer implementation that doesn't have a RenderMaskLayers calls, does it need it?

Depends on D62180

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

--HG--
extra : moz-landing-system : lando
2020-02-11 19:00:59 +00:00
Tim Nguyen 91f7b5200e Bug 1614890 - Implement conic-gradient for WebRender graphics backend. r=gw,nical
Differential Revision: https://phabricator.services.mozilla.com/D61599

--HG--
extra : moz-landing-system : lando
2020-02-12 10:21:51 +00:00
Mihai Alexandru Michis 9e905bd7db Backed out changeset 53650b8686a6 (bug 1614890) for causing webrender failures.
CLOSED TREE
2020-02-12 11:24:25 +02:00
Tim Nguyen 02ff3004d9 Bug 1614890 - Implement conic-gradient for WebRender graphics backend. r=gw,nical
Differential Revision: https://phabricator.services.mozilla.com/D61599

--HG--
extra : moz-landing-system : lando
2020-02-12 08:50:06 +00:00
sotaro f91887c794 Bug 1595014 - Make dirty rects are invalid when old tiles were dropped r=gw
composite_simple() calculates combined dirty rect from all tile's dirty rect. But the combined dirty rect becomes invalid when there is an old tile that was dropped. The dropped tile's dirty rect is not counted in composite_simple().

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

--HG--
extra : moz-landing-system : lando
2020-02-12 05:27:12 +00:00
Glenn Watson cba3133d84 Bug 1608280 - Part 2 - Use valid rect to reduce pixel costs. r=kvark
With this patch, a minimal valid rect is calculated for each
picture cache tile. This is used to reduce the scissor rect
during tile rasterization, and the draw rect during tile
compositing, whenever there is a partial tile.

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

--HG--
extra : moz-landing-system : lando
2020-02-12 03:21:12 +00:00
Glenn Watson 31585fc1e6 Bug 1608717 - Support per-tile clip (valid) region for native compositor implementations. r=sotaro,mstange
For Draw (non-native) and CA modes, we include the per-tile
valid rect in the clip rect from the surface.

For DC (non-virtual) mode, a per-tile clip rect is set on the
visual for each tile, separate from the overall clip rect that
is set on the surface visual.

For DC (virtual) mode, the Trim API is used to remove pixels
in the virtual tile area that are outside the valid / clipped
region.

Note: Although the valid rect is now applied in the native
compositors, it's currently only based on the overall picture
cache bounding rect. Thus, with this patch there isn't any
noticeable performance improvement. Once this lands and is
working correctly, the follow up patch to calculate a smaller
valid region per-tile is a small amount of work.

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

--HG--
extra : moz-landing-system : lando
2020-02-12 04:27:15 +00:00
Timothy Nikkel f4658e4672 Bug 1613143. Don't allow an empty transaction to succeed with webrender if we haven't sent a display list to the parent. r=mattwoodrow
I think this probably only shows up with fission oop iframes, tabs probably avoid this path.

The problem occurs when we reconstruct the containing iframe for a style change, we briefly hide the child document, clearing the display list on the parent via ClearCachedResources. Then show it again, we attempt an empty transaction and this succeeds because there is nothing to stop it. (The non-wr case fails because the layer contents are missing and that causes the empty transaction to fail.)

So keep track if we have sent a display list to the parent to allow/disallow an empty transaction.

This fixes a couple webrender+fission reftest failures but it's also a general rendering bug in webrender+fission reproducible in a regular browser.

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

--HG--
extra : moz-landing-system : lando
2020-02-12 01:40:51 +00:00
Ciure Andrei 410dc434d0 Backed out changeset d46cb79a9b55 (bug 1613143)for causing reftest fission failures CLOSED TREE 2020-02-12 03:20:15 +02:00
Timothy Nikkel 68c2b57363 Bug 1613143. Don't allow an empty transaction to succeed with webrender if we haven't sent a display list to the parent. r=mattwoodrow
I think this probably only shows up with fission oop iframes, tabs probably avoid this path.

The problem occurs when we reconstruct the containing iframe for a style change, we briefly hide the child document, clearing the display list on the parent via ClearCachedResources. Then show it again, we attempt an empty transaction and this succeeds because there is nothing to stop it. (The non-wr case fails because the layer contents are missing and that causes the empty transaction to fail.)

So keep track if we have sent a display list to the parent to allow/disallow an empty transaction.

This fixes a couple webrender+fission reftest failures but it's also a general rendering bug in webrender+fission reproducible in a regular browser.

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

--HG--
extra : moz-landing-system : lando
2020-02-11 19:01:30 +00:00
Emilio Cobos Álvarez 6311bc2129 Bug 1614512 - Give mozilla::Side and mozilla::Corner a fixed underlying type. r=froydnj
So as to avoid UB. It is somewhat unfortunate/dumb the fact that we need to do
this and we can't detect when we forget to do it :(

Give it uint8_t as it's type as that's enough and consistent with LogicalSide.

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

--HG--
extra : moz-landing-system : lando
2020-02-11 14:11:06 +00:00
Brindusan Cristian 615e78b5fc Backed out changeset a91870b97f09 (bug 1611886) for xpcshell failures at test_browserid_identity.js. CLOSED TREE 2020-02-11 09:03:03 +02:00
Hiroyuki Ikezoe 1c0f15006d Bug 1599795 - Rename BrowserChild::GetRemoteDocumentRect to GetTopLevelViewportVisibleRectInBrowserCoords. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D62183

--HG--
extra : moz-landing-system : lando
2020-02-11 03:35:56 +00:00
Hiroyuki Ikezoe d4fa8f4fad Bug 1599795 - Change the remote document rect to size in gfx. r=emilio
What we really needed in the first place was the size not the rect.

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

--HG--
extra : moz-landing-system : lando
2020-02-11 03:57:14 +00:00
sotaro c3615f343f Bug 1611886 - Add VRManagerParent::Shutdown() r=nical
Differential Revision: https://phabricator.services.mozilla.com/D61144

--HG--
extra : moz-landing-system : lando
2020-02-05 09:42:37 +00:00
sotaro b23e6dbb81 Bug 1554610 - Destroy CompositorWindow if BasicCompositor is used r=nical
When BasicCompositor is used, BasicCompositor does not use CompositorWindow.

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

--HG--
extra : moz-landing-system : lando
2020-02-04 09:07:57 +00:00
Emilio Cobos Álvarez f4734a4dca Bug 1614208 - Stop including nsStyleConsts.h from WebRenderTypes.h. r=jrmuizel
This is another one which is included everywhere. If the OOL call mattered we
could move these to a different header or something, but I suspect it won't.

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

--HG--
extra : moz-landing-system : lando
2020-02-11 01:23:41 +00:00
Emilio Cobos Álvarez d7841a5f17 Bug 1614208 - Remove some include dependencies in nsStyleConsts.h. r=jfkthame,jgilbert
We include it everywhere because it's included from gfxTypes.h.

This should avoid including all the generated bindings _everywhere_.

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

--HG--
extra : moz-landing-system : lando
2020-02-11 01:23:37 +00:00
Andrew Osmond 9b47c699df Bug 1613683 - Ship WebRender on Intel/AMD devices with small screens and a battery to beta. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D62321

--HG--
extra : moz-landing-system : lando
2020-02-10 20:27:12 +00:00
Gerald Squelart fbbc5d66db Bug 1614013 - Fix RAII Profiler object scopes - r=gregtatum
In bug 1578329 I introduced two scoping mistakes:
- A marker was made to have a shorter duration.
- A label was scoped too short and so would most likely be missed during
  sampling.
This patch reverts to the original wider scope.

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

--HG--
extra : moz-landing-system : lando
2020-02-10 20:44:33 +00:00
Mihai Alexandru Michis 0044ed8301 Backed out changeset 85ffb2302070 (bug 1600793) for causing crashes regarding DeadlockDetector
CLOSED TREE
2020-02-10 22:41:38 +02:00
Sean Feng 7c81402e17 Bug 1600793 - Make the scrolling input telemetry work for WebRender r=botond,jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D60046

--HG--
extra : moz-landing-system : lando
2020-02-10 17:41:45 +00:00
Bert Peers 0c4b6be182 Bug 1605283 - Improve support for invalidation debugging and testing r=gw
Fourth iteration: improve the detail in reported tile invalidations.

The invalidation enum stores the old and new values for lightweight
types.  For a change in PrimCount, the old and new list of ItemUids is
stored (if logging is enabled); the tool can then diff the two to see
what was added and removed.  To convert that back into friendly strings,
the interning activity is used to build up a map of ItemUid to a string.

A similar special-casing of Content Descriptor will print the item
that's invalidating the tile, plus the origin and/or rectangle.

Also adding zoom and pan command line options both to fix high-DPI
issues and also to allow zooming out far enough to see out-of-viewport
cache lifetime and prefetching due to scrolling.

Also fix a bug where interning updates get lost if more than one update
happens without building a frame: switch to a vector of serialized
updatelists (one per type) instead of allowing just one string (per
type).

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

--HG--
extra : moz-landing-system : lando
2020-02-10 17:35:05 +00:00
Bert Peers 6713755841 Bug 1603274 - Move unsafe inside wr_thread_pool_new r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D61763

--HG--
extra : moz-landing-system : lando
2020-02-06 00:47:51 +00:00
Nicolas Silva 21cc009300 Bug 1612988 - Fix warning in a peek_poke test. r=jrmuizel
The test is meant to check that tupes work and a tuple of a single element needs a comma to differentiate it from just being the element.

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

--HG--
extra : moz-landing-system : lando
2020-02-10 14:10:26 +00:00
Botond Ballo 5a714b45fa Bug 1612750 - Use the main thread's visual viewport offset as the fallback scroll offset when APZ is force-disabled. r=tnikkel
This ensures that even if APZ is force-disabled, the permanent offset between
the visual and layout viewports is preserved during rendering.

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

--HG--
extra : moz-landing-system : lando
2020-02-10 15:20:08 +00:00
Botond Ballo 659489f090 Bug 1612750 - Move handling of IsApzForceDisabled() into the GetEffective*() functions where possible. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D62091

--HG--
extra : moz-landing-system : lando
2020-02-10 15:19:29 +00:00
Botond Ballo 9d2b7b80cb Bug 1612750 - Simplify a misleading calculation in AsyncPanZoomController::GetCurrentAsyncTransform(). r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D62090

--HG--
extra : moz-landing-system : lando
2020-02-10 15:19:16 +00:00
Jonathan Kew e7b074c98a Bug 1613996 - Try to avoid instantiating an FT_Face just to read the font's charmap for FindFontForChar. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D62152

--HG--
extra : moz-landing-system : lando
2020-02-09 04:18:22 +00:00
Jeff Muizelaar 3dd8739d15 Bug 1613485. Add a new COMPOSITE_SWAP_TIME metric. r=aosmond
This should help us narrow down the regression in COMPOSITE_TIME

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

--HG--
extra : moz-landing-system : lando
2020-02-06 19:49:25 +00:00
Jamie Nicol ec3f3be37b Bug 1613144 - Ensure async scroll offset is in correct coordinate space whilst async zooming. r=botond
Bug 1609002 made it so that the async scroll offset sent to webrender
is taken from only the layout component of the async transform, rather
than the combined layout and visual components. The consequence of
this is that the layout-only transform is in LayerPixel space (and
unnaffected by the async zoom) rather than ParentLayerPixel
space (which is affected by async zoom).

To convert the value to LayoutDevicePixel space, as webrender expects,
we were dividing by the pinch zoom scale, which includes the async
zoom. This was causing content to jump around whilst async panning and
zooming, as the scroll offset was incorrectly scaled. This is fixed
by instead dividing by the cumulative resolution, which does not
include the async zoom.

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

--HG--
extra : moz-landing-system : lando
2020-02-07 20:45:31 +00:00
David Major 7fc89d3fa3 Bug 1577236 - clang-10: Fix a -Wimplicit-int-float-conversion warning in ExtendInputEffectD2D1 r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D60998

--HG--
extra : moz-landing-system : lando
2020-02-07 18:06:11 +00:00
shindli 441a09145b Backed out 2 changesets (bug 1613144) for causing reftest failures CLOSED TREE
Backed out changeset 8124309e0bbe (bug 1613144)
Backed out changeset d5d9bf5b8d20 (bug 1613144)
2020-02-07 22:36:52 +02:00
Jamie Nicol 0a3b925a51 Bug 1613144 - Ensure async scroll offset is in correct coordinate space whilst async zooming. r=botond
Bug 1609002 made it so that the async scroll offset sent to webrender
is taken from only the layout component of the async transform, rather
than the combined layout and visual components. The consequence of
this is that the layout-only transform is in LayerPixel space (and
unnaffected by the async zoom) rather than ParentLayerPixel
space (which is affected by async zoom).

To convert the value to LayoutDevicePixel space, as webrender expects,
we were dividing by the pinch zoom scale, which includes the async
zoom. This was causing content to jump around whilst async panning and
zooming, as the scroll offset was incorrectly scaled. This is fixed
by instead dividing by the cumulative resolution, which does not
include the async zoom.

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

--HG--
extra : moz-landing-system : lando
2020-02-07 13:43:23 +00:00
Emilio Cobos Álvarez 61d0c10572 Bug 1613490 - Cleanup usage of ReferenceBox. r=miko
To avoid computing transform bounds over and over. It is generally just better.

Replace the various "overridebounds" thingies by using the "fallback" of the
transform-reference-box code which we need anyway.

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

--HG--
extra : moz-landing-system : lando
2020-02-07 13:34:42 +00:00
Marco Castelluccio 74dcb8afb2 Bug 1613514 - Disable gfx/layers/apz/test/mochitest/browser_test_group_fission.js on Linux coverage builds as it consistently times out. r=aryx
Differential Revision: https://phabricator.services.mozilla.com/D61993

--HG--
extra : moz-landing-system : lando
2020-02-07 11:13:46 +00:00
Glenn Watson 256e1fae96 Bug 1613316 - Fix panic in TileCache::pre_update. r=Bert
Differential Revision: https://phabricator.services.mozilla.com/D61922

--HG--
extra : moz-landing-system : lando
2020-02-06 21:44:44 +00:00
Nika Layzell c56289e054 Bug 1557739 - Be more consistent with IPC Transport APIs, r=jld
Differential Revision: https://phabricator.services.mozilla.com/D60285

--HG--
extra : moz-landing-system : lando
2020-02-06 22:41:56 +00:00
Emilio Cobos Álvarez dacbb30683 Bug 1613349 - Address one review comment I missed.
Differential Revision: https://phabricator.services.mozilla.com/D61841

--HG--
extra : moz-landing-system : lando
2020-02-06 16:11:34 +00:00
Martin Stransky 7e18aeed6a Bug 1613358 [Wayland] Implement WaylandDMABUFSurfaceImage dmabuf image, r=sotaro
Implement WaylandDMABUFSurfaceImage which is backed by dma buf memory on Wayland and it holds
decoded video images produced by ffmpeg va-api decoder.

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

--HG--
extra : moz-landing-system : lando
2020-02-06 15:15:02 +00:00
Emilio Cobos Álvarez c5c0ef9787 Bug 1613349 - Rename nsIFrame::DeleteProperty to RemoveProperty. r=dholbert
As it doesn't necessarily call delete and that may be confusing.

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

--HG--
extra : moz-landing-system : lando
2020-02-06 16:06:49 +00:00
Emilio Cobos Álvarez bf6256b1fc Bug 1613349 - Make nsIFrame::TakeProperty MOZ_MUST_USE. r=dholbert
Depends on D61756

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

--HG--
extra : moz-landing-system : lando
2020-02-06 00:39:10 +00:00
Brindusan Cristian 443b32771a Backed out changeset 6381c1f2aedc (bug 1613358) for build bustages at GLBlitHelper.cpp. CLOSED TREE 2020-02-06 16:15:27 +02:00
Martin Stransky f6d5f48d74 Bug 1613358 [Wayland] Implement WaylandDMABUFSurfaceImage dmabuf image, r=sotaro
Implement WaylandDMABUFSurfaceImage which is backed by dma buf memory on Wayland and it holds
decoded video images produced by ffmpeg va-api decoder.

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

--HG--
extra : moz-landing-system : lando
2020-02-06 12:10:57 +00:00
Andrew Osmond 52c022a178 Bug 1612589 - Improve image memory reporting even further. r=tnikkel
This patch adds reporting the surface types used by the image frame in a
bit mask (such if it is a CAPTURE including a DATA_SHARED, the mask will
be 1 << CAPTURE | 1 << DATA_SHARED), as well as an estimated size
included in the report as decoded-unknown for when we do not know if the
surface is on the heap or the non-heap specifically. This is the default
implementation for a SourceSurface as well, so we should no longer have
the case where surfaces appear empty despite being in the cache. It also
makes requests being validated as always notable for reporting purposes.

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

--HG--
extra : moz-landing-system : lando
2020-02-05 22:22:13 +00:00
Lee Salzman 4d55e5ebdb Bug 1613402 - avoid redundant adding of blob font data. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D61752

--HG--
extra : moz-landing-system : lando
2020-02-06 01:08:46 +00:00
Andrew Osmond 0173964fde Bug 1604535 - Disable OMTP on some 32-bit systems due to memory pressure. r=jrmuizel
We will no longer allow OMTP on 32-bit systems with less than 2GB of RAM
and 2 or fewer cores. These systems are unlikely to realize a benefit
from OMTP and see a higher than normal incidence of OOM crashes in the
content process due to OMTP having a higher memory footprint.

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

--HG--
extra : moz-landing-system : lando
2020-02-03 11:39:06 +00:00
shindli 0c932bb6d4 Backed out changeset f020ddf90621 (bug 1612988) for causing webrender bustage CLOSED TREE 2020-02-05 18:09:15 +02:00
Andrew Osmond 94bd8af992 Bug 1613375 - Always use reference frame origin offset in snapping transforms. r=nical
We incorporate the reference frame origin offset for non-animated
transforms, but forgot for animated transforms. Since the offset itself
is not animated, we should still incorporate it into the snapping
transform.

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

--HG--
extra : moz-landing-system : lando
2020-02-05 15:42:20 +00:00
Nicolas Silva e584e41b84 Bug 1612988 - Fix warning in a peek_poke test. r=jrmuizel
The test is meant to check that tupes work and a tuple of a single element needs a comma to differentiate it from just being the element.

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

--HG--
extra : moz-landing-system : lando
2020-02-05 15:10:16 +00:00
Nicolas Silva 2c4937a4cf Bug 1612437 - Remove ipc-channel from WebRender. r=gw
Original patch from Josh Mattews

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

--HG--
extra : moz-landing-system : lando
2020-02-05 11:09:43 +00:00
sotaro aa001195aa Bug 1612665 - Backout Bug 1596630 r=nical
SyncObjectD3D11Host::Synchronize() calling in RenderCompositorANGLE::BeginFrame() is still necessary for D3D11DXVA2Manager::CopyToImage(). Then backout Bug 1596630.

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

--HG--
extra : moz-landing-system : lando
2020-02-05 09:39:28 +00:00