Commit Graph

36022 Commits

Author SHA1 Message Date
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