Commit Graph

35197 Commits

Author SHA1 Message Date
Nicolas Silva
3e4e9cbc17 Bug 1568600 - Disable sub-px aa in WebRender if dual-source-blending is unavailable. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D42303

--HG--
extra : moz-landing-system : lando
2019-11-05 14:39:37 +00:00
Cosmin Sabou
ac35928c0f Backed out changeset 4c4b65f3e7fb (bug 1575258) for causing wrench bustages. CLOSED TREE
--HG--
extra : rebase_source : b27ff2fc38aa0fb3d83aa3841ff92e5f1916a4c0
2019-11-05 15:54:39 +02:00
sotaro
85db2de6eb Bug 1593903 - Change RenderCompositor::SurfaceIsYFlipped() to SurfaceOriginIsTopLeft() r=gw
Differential Revision: https://phabricator.services.mozilla.com/D51776

--HG--
extra : moz-landing-system : lando
2019-11-05 11:02:40 +00:00
Andrew Osmond
19674dcc8a Bug 1575258 - Make text rasterize, render and snap glyphs consistently. r=lsalzman
The glyph pixel space in which we rasterized glyphs differed from how we
rendered the rasterized glyphs in the shader. They need to be in
agreement because the glyph subpixel offset selected during
rasterization depends on it. This patch should make the paths consistent
with each other.

Additionally, during animations, we now snap the reference frame
relative offset ignoring the impact of any animated transforms. This
helps with minimizing glyph wiggling during the transition.

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

--HG--
extra : moz-landing-system : lando
2019-11-05 11:58:01 +00:00
sotaro
b9dc0622aa Bug 1593383 - Force full rendering to external target r=nical,gw
LayerManagerComposite and LayerManagerMLGPU do full rendering for taking a snapshot. Then WR also does  full rendering for taking a snapshot.

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

--HG--
extra : moz-landing-system : lando
2019-11-05 09:06:59 +00:00
sotaro
4260baaf8f Bug 1593319 - Set aFboId in DCLayerTree::Bind() r=gw,nical
EGLSurface could be bound only to framebuffer-zero.

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

--HG--
extra : moz-landing-system : lando
2019-11-05 09:07:11 +00:00
Nicolas Silva
76c3d8c060 Bug 1593691 - Update comment about dual-source blending in text rendering doc. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D51622

--HG--
extra : moz-landing-system : lando
2019-11-04 14:53:59 +00:00
Glenn Watson
7613f6442d Bug 1591758 - Fix dirty rects for OS compositors without partial updates. r=nical
Differential Revision: https://phabricator.services.mozilla.com/D51773

--HG--
extra : moz-landing-system : lando
2019-11-05 08:43:10 +00:00
Nicolas Silva
4a8849bcc4 Bug 1587713 - Don't limit the number of rasterized blob tiles per transaction. r=jrmuizel
If this change lands without making waves, a lot of complicated blob infrastructure will be removed as a followup.

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

--HG--
extra : moz-landing-system : lando
2019-11-04 14:55:40 +00:00
Noemi Erli
207e5af698 Backed out changeset ef59d327a1a4 (bug 1575008) for causing build bustages CLOSED TREE
--HG--
rename : third_party/rust/arrayvec-0.4.11/build.rs => third_party/rust/arrayvec/build.rs
rename : third_party/rust/arrayvec-0.4.11/src/maybe_uninit_nodrop.rs => third_party/rust/arrayvec/src/maybe_uninit_nodrop.rs
rename : third_party/rust/arrayvec-0.4.11/src/maybe_uninit_stable.rs => third_party/rust/arrayvec/src/maybe_uninit_stable.rs
rename : third_party/rust/arrayvec-0.4.11/src/range.rs => third_party/rust/arrayvec/src/range.rs
2019-11-05 08:19:10 +02:00
Dzmitry Malyshau
6376282a47 Bug 1575008 - WebGPU implementation basis r=webidl,baku
This change vendors `wgpu` library in-tree and hooks up the initialization bits. It implements adapter and device initialization and adds a simple test.

Current status:
  - [x] Architecture
    - [x] figure out the IPC story
    - [ ] move wgpu crates into a dedicated folder (let's follow up with this)
  - [x] Review
    - [x] WebIDL changes by DOM peers
  - [x] Linux
    - [x] avoid depending on spirv_cross - https://github.com/gfx-rs/wgpu/pull/371
  - [x] macOS
    - [x] due to cross-compiling shaders - https://github.com/gfx-rs/gfx/pull/3047
    - [x] need the dependency update
    - [x] stop using gcc - https://github.com/SSheldon/rust-objc-exception/pull/5
    - [x] unexpected SSL header collision - https://bugzilla.mozilla.org/show_bug.cgi?id=1592398
    - [x] undefined Metal symbols
  - [x] Windows
    - [x] due to "ipc-channel" not supporting Windows yet - https://github.com/servo/ipc-channel/pull/233~~
    - [x] due to some exceptional stuff - https://github.com/grovesNL/spirv_cross/issues/121
    - [x] undefined symbol: `D3D12CreateDevice`
    - [x] d3d12.dll is not found, dxgi1_4 doesn't present
    - [x] d3d11.dll and dxgi.dll need to be explicitly loaded on win32 mingw - https://github.com/gfx-rs/gfx/pull/3076
    - [x] libbacktrace fails to link on win32 mingw
  - [x] Android
    - [x] spirv-cross fails to build - https://github.com/KhronosGroup/SPIRV-Cross/pull/1193

Update-1:
We decided to go with IPDL mechanism instead of Rust based ipc-channel (or any alternatives), which unblocks Windows build.

Update-2:
It appears that WebGPUThreading isn't needed any more as the child thread (and its event loop) is now managed by IPDL infrastructure. This PR removes it 🎉 .

Update-3:
InstanceProvider is also removed.

Update-4:
All set, the try is green, waiting for dependent changes to go in.

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

--HG--
rename : dom/webgpu/Adapter.cpp => dom/webgpu/ipc/WebGPUTypes.h
rename : third_party/rust/arrayvec/.cargo-checksum.json => third_party/rust/arrayvec-0.4.11/.cargo-checksum.json
rename : third_party/rust/arrayvec/Cargo.toml => third_party/rust/arrayvec-0.4.11/Cargo.toml
rename : third_party/rust/arrayvec/README.rst => third_party/rust/arrayvec-0.4.11/README.rst
rename : third_party/rust/arrayvec/benches/extend.rs => third_party/rust/arrayvec-0.4.11/benches/extend.rs
rename : third_party/rust/arrayvec/build.rs => third_party/rust/arrayvec-0.4.11/build.rs
rename : third_party/rust/arrayvec/src/array.rs => third_party/rust/arrayvec-0.4.11/src/array.rs
rename : third_party/rust/arrayvec/src/array_string.rs => third_party/rust/arrayvec-0.4.11/src/array_string.rs
rename : third_party/rust/arrayvec/src/char.rs => third_party/rust/arrayvec-0.4.11/src/char.rs
rename : third_party/rust/arrayvec/src/lib.rs => third_party/rust/arrayvec-0.4.11/src/lib.rs
rename : third_party/rust/arrayvec/src/maybe_uninit.rs => third_party/rust/arrayvec-0.4.11/src/maybe_uninit.rs
rename : third_party/rust/arrayvec/src/maybe_uninit_nodrop.rs => third_party/rust/arrayvec-0.4.11/src/maybe_uninit_nodrop.rs
rename : third_party/rust/arrayvec/src/maybe_uninit_stable.rs => third_party/rust/arrayvec-0.4.11/src/maybe_uninit_stable.rs
rename : third_party/rust/arrayvec/src/range.rs => third_party/rust/arrayvec-0.4.11/src/range.rs
rename : third_party/rust/arrayvec/tests/serde.rs => third_party/rust/arrayvec-0.4.11/tests/serde.rs
rename : third_party/rust/arrayvec/tests/tests.rs => third_party/rust/arrayvec-0.4.11/tests/tests.rs
rename : third_party/rust/core-graphics/Cargo.toml => third_party/rust/atom/Cargo.toml
rename : third_party/rust/core-graphics/Cargo.toml => third_party/rust/cocoa/Cargo.toml
rename : third_party/rust/core-graphics/src/lib.rs => third_party/rust/cocoa/src/lib.rs
rename : third_party/rust/core-graphics/Cargo.toml => third_party/rust/colorful/Cargo.toml
rename : third_party/rust/core-graphics/Cargo.toml => third_party/rust/range-alloc/Cargo.toml
rename : third_party/rust/core-graphics/Cargo.toml => third_party/rust/shared_library/Cargo.toml
rename : third_party/rust/core-graphics/Cargo.toml => third_party/rust/x11/Cargo.toml
extra : moz-landing-system : lando
2019-11-05 05:08:13 +00:00
Csoregi Natalia
1e1d192ff3 Backed out changeset 9c05fa3c0fcc (bug 1575008) for bustages on WebrtcIPCTraits.h. CLOSED TREE
--HG--
rename : third_party/rust/arrayvec-0.4.11/build.rs => third_party/rust/arrayvec/build.rs
rename : third_party/rust/arrayvec-0.4.11/src/maybe_uninit_nodrop.rs => third_party/rust/arrayvec/src/maybe_uninit_nodrop.rs
rename : third_party/rust/arrayvec-0.4.11/src/maybe_uninit_stable.rs => third_party/rust/arrayvec/src/maybe_uninit_stable.rs
rename : third_party/rust/arrayvec-0.4.11/src/range.rs => third_party/rust/arrayvec/src/range.rs
2019-11-05 06:44:15 +02:00
Dzmitry Malyshau
5f694cac96 Bug 1575008 - WebGPU implementation basis r=webidl,baku
This change vendors `wgpu` library in-tree and hooks up the initialization bits. It implements adapter and device initialization and adds a simple test.

Current status:
  - [x] Architecture
    - [x] figure out the IPC story
    - [ ] move wgpu crates into a dedicated folder (let's follow up with this)
  - [x] Review
    - [x] WebIDL changes by DOM peers
  - [x] Linux
    - [x] avoid depending on spirv_cross - https://github.com/gfx-rs/wgpu/pull/371
  - [x] macOS
    - [x] due to cross-compiling shaders - https://github.com/gfx-rs/gfx/pull/3047
    - [x] need the dependency update
    - [x] stop using gcc - https://github.com/SSheldon/rust-objc-exception/pull/5
    - [x] unexpected SSL header collision - https://bugzilla.mozilla.org/show_bug.cgi?id=1592398
    - [x] undefined Metal symbols
  - [x] Windows
    - [x] due to "ipc-channel" not supporting Windows yet - https://github.com/servo/ipc-channel/pull/233~~
    - [x] due to some exceptional stuff - https://github.com/grovesNL/spirv_cross/issues/121
    - [x] undefined symbol: `D3D12CreateDevice`
    - [x] d3d12.dll is not found, dxgi1_4 doesn't present
    - [x] d3d11.dll and dxgi.dll need to be explicitly loaded on win32 mingw - https://github.com/gfx-rs/gfx/pull/3076
    - [x] libbacktrace fails to link on win32 mingw
  - [x] Android
    - [x] spirv-cross fails to build - https://github.com/KhronosGroup/SPIRV-Cross/pull/1193

Update-1:
We decided to go with IPDL mechanism instead of Rust based ipc-channel (or any alternatives), which unblocks Windows build.

Update-2:
It appears that WebGPUThreading isn't needed any more as the child thread (and its event loop) is now managed by IPDL infrastructure. This PR removes it 🎉 .

Update-3:
InstanceProvider is also removed.

Update-4:
All set, the try is green, waiting for dependent changes to go in.

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

--HG--
rename : dom/webgpu/Adapter.cpp => dom/webgpu/ipc/WebGPUTypes.h
rename : third_party/rust/arrayvec/.cargo-checksum.json => third_party/rust/arrayvec-0.4.11/.cargo-checksum.json
rename : third_party/rust/arrayvec/Cargo.toml => third_party/rust/arrayvec-0.4.11/Cargo.toml
rename : third_party/rust/arrayvec/README.rst => third_party/rust/arrayvec-0.4.11/README.rst
rename : third_party/rust/arrayvec/benches/extend.rs => third_party/rust/arrayvec-0.4.11/benches/extend.rs
rename : third_party/rust/arrayvec/build.rs => third_party/rust/arrayvec-0.4.11/build.rs
rename : third_party/rust/arrayvec/src/array.rs => third_party/rust/arrayvec-0.4.11/src/array.rs
rename : third_party/rust/arrayvec/src/array_string.rs => third_party/rust/arrayvec-0.4.11/src/array_string.rs
rename : third_party/rust/arrayvec/src/char.rs => third_party/rust/arrayvec-0.4.11/src/char.rs
rename : third_party/rust/arrayvec/src/lib.rs => third_party/rust/arrayvec-0.4.11/src/lib.rs
rename : third_party/rust/arrayvec/src/maybe_uninit.rs => third_party/rust/arrayvec-0.4.11/src/maybe_uninit.rs
rename : third_party/rust/arrayvec/src/maybe_uninit_nodrop.rs => third_party/rust/arrayvec-0.4.11/src/maybe_uninit_nodrop.rs
rename : third_party/rust/arrayvec/src/maybe_uninit_stable.rs => third_party/rust/arrayvec-0.4.11/src/maybe_uninit_stable.rs
rename : third_party/rust/arrayvec/src/range.rs => third_party/rust/arrayvec-0.4.11/src/range.rs
rename : third_party/rust/arrayvec/tests/serde.rs => third_party/rust/arrayvec-0.4.11/tests/serde.rs
rename : third_party/rust/arrayvec/tests/tests.rs => third_party/rust/arrayvec-0.4.11/tests/tests.rs
rename : third_party/rust/core-graphics/Cargo.toml => third_party/rust/atom/Cargo.toml
rename : third_party/rust/core-graphics/Cargo.toml => third_party/rust/cocoa/Cargo.toml
rename : third_party/rust/core-graphics/src/lib.rs => third_party/rust/cocoa/src/lib.rs
rename : third_party/rust/core-graphics/Cargo.toml => third_party/rust/colorful/Cargo.toml
rename : third_party/rust/core-graphics/Cargo.toml => third_party/rust/range-alloc/Cargo.toml
rename : third_party/rust/core-graphics/Cargo.toml => third_party/rust/shared_library/Cargo.toml
rename : third_party/rust/core-graphics/Cargo.toml => third_party/rust/x11/Cargo.toml
extra : moz-landing-system : lando
2019-11-05 04:09:23 +00:00
thomasmo
6b9384e37b Bug 1593361 - Define UNICODE in vrhost to support sending UTF16 character input r=kip
This change defines UNICODE for building vrhost so that wide chars can be sent from vrhost to Firefox.

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

--HG--
extra : moz-landing-system : lando
2019-11-05 00:25:59 +00:00
Ciure Andrei
cd37b41655 Backed out changeset 27940bb91591 (bug 1593361) for causing build bustages CLOSED TREE 2019-11-05 01:03:19 +02:00
thomasmo
dda2b5209a Bug 1593361 - Define UNICODE in vrhost to support sending UTF16 character input r=kip
This change defines UNICODE for building vrhost so that wide chars can be sent from vrhost to Firefox.

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

--HG--
extra : moz-landing-system : lando
2019-11-04 22:17:57 +00:00
Glenn Watson
005d8ccd27 Bug 1591580 - Support picture caching for parent process content. r=kvark
For content that comes from the parent process (e.g. about:support)
the shape of the display list is slightly different. In these cases
ensure that we setup picture caching slice markers on the root
stacking context.

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

--HG--
extra : moz-landing-system : lando
2019-11-04 19:33:24 +00:00
Glenn Watson
56dcacf7f8 Bug 1591526 - Use occlusion culling to reduce number of picture cache tiles. r=nical
During the visibility pass, picture caches register themselves as
occluders, if they have a valid opaque region.

During the primitive preparation pass, each tile queries if it is
occluded. If so, it skips rasterization and compositing of itself
for this frame. In this way, tiles that are always occluded never
end up allocating GPU memory for a surface.

Also add support during primitive dependency generation for opaque
images to be considered as part of the opaque backdrop region.

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

--HG--
extra : moz-landing-system : lando
2019-11-04 19:27:52 +00:00
Bob Owen
32869c5f76 Bug 1589718: Add a RenderedFrameId to RenderCompositor and use it to control release of textures. r=sotaro
This replaces mUpdatesCount in AsyncImagePipelineManager, which was really how
many times NotifyPipelinesUpdated was called with aRender == true. I think this
makes the release logic clearer as it is more explicit.
It also changes things for RenderCompositorANGLE, so that we check to see if
any other frames have completed even if we don't want to wait for them.

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

--HG--
extra : moz-landing-system : lando
2019-11-04 16:15:20 +00:00
Bob Owen
a92e772fe9 Bug 1590619: Only clean up Remote Canvas IPC classes when the CanvasChild owns the only recorder reference. r=jrmuizel
This also removes the DrawEventRecorderPrivate::IsEmpty method as it is no
longer used. It doesn't undo the splitting out of the tracking of the
UnscaledFonts, which was added at the same time, because I think it is useful
to highlight the fact that they are never currently removed.

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

--HG--
extra : moz-landing-system : lando
2019-11-04 14:15:22 +00:00
Nicolas Silva
cf9c5e0706 Bug 1584101 - Temporarily disable resource cache leak checks. r=jrmuizel
Bug 1593013 was filed to reenable them.

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

--HG--
extra : moz-landing-system : lando
2019-11-04 14:11:22 +00:00
Jeff Muizelaar
ce81d707e0 Bug 1593094. Add glyph flashing pref. r=kvark
This makes it easier to debug glyph rasterization issues

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

--HG--
extra : moz-landing-system : lando
2019-11-04 14:03:57 +00:00
Glenn Watson
3300072e99 Bug 1591529 - Reduce OS compositor tiles sizes to save GPU memory. r=kvark
(1) Reduce size of content tiles from 2048 x 512 to 1024 x 512.

  This reduces the large extra overhead of tiles on screens that
  are not 4k resolution.

(2) Remove small 128 x 128 tiles.

  These typically create a lot of OS compositor surfaces, which
  adds significant overhead on some platforms. Having them be
  normal content tiles also means no resizing of the picture
  cache for the UI when the awesome bar and/or status bar is on.

(3) Add support for very narrow cache surfaces.

  This is a special use case for scrollbar caches. It's worth
  supporting this special case for the significant memory and
  performance savings for these surfaces.

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

--HG--
extra : moz-landing-system : lando
2019-11-04 05:53:31 +00:00
Andreea Pavel
0d0fd1b7e8 Backed out changeset 3a6ca30f318e (bug 1593094) for wrench bustages on a CLOSED TREE 2019-11-04 05:51:33 +02:00
Dan Glastonbury
7acec510f1 Bug 1561179 - P6: Handle shutdown of the GPU process and reconnect PVideoBridge. r=mattwoodrow
Add an observer to restart the PVideoBridge connection when GPU process
restarts.

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

--HG--
extra : moz-landing-system : lando
2019-11-04 03:42:01 +00:00
Dan Glastonbury
b1baf91ae9 Bug 1561179 - P5: Remove separate VideoBridgeChild Singletons. r=mattwoodrow
Combine sVideoBridgeToParentProcess and sVideoBridgeToGPUProcess into one
sVideoBridge. Each producing process, GPU or RDD, is only ever started with one
VideoBridgeChild endpoint. This is enough to get RemoteVideoDecoders in RDD
process to start using GPU memory to send video to compositor over PVideoBridge.

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

--HG--
extra : moz-landing-system : lando
2019-11-04 03:41:59 +00:00
Dan Glastonbury
3332a9ad27 Bug 1561179 - P4: Create PVideoBridge between RDDProcess and GPUProcess. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D50401

--HG--
extra : moz-landing-system : lando
2019-11-04 03:41:57 +00:00
Dan Glastonbury
35da282560 Bug 1561179 - P2: Rename VideoBridge methods and members. r=mattwoodrow
To bring the naming more inline with ImageBridge.

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

--HG--
extra : moz-landing-system : lando
2019-11-04 03:41:47 +00:00
Dan Glastonbury
45381819c6 Bug 1561179 - P1: Enable the creation of multiple VideoBridgeParent actors. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D50398

--HG--
extra : moz-landing-system : lando
2019-11-04 03:41:45 +00:00
Jeff Muizelaar
42e881bed5 Bug 1593094. Add glyph flashing pref. r=kvark
This makes it easier to debug glyph rasterization issues

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

--HG--
extra : moz-landing-system : lando
2019-11-01 15:41:49 +00:00
sotaro
34a65d16bb Bug 1575159 - Implement partial invalidation on Windows r=gw
Partial present for WR is off by default.

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

--HG--
extra : moz-landing-system : lando
2019-11-03 10:57:03 +00:00
Glenn Watson
3de743de9b Bug 1592417 - Reduce work done when picture cache tiles are inside the display port but not currently visible. r=nical
Previously, WR needed to update and track dependencies for all
allocated picture cache tiles in the virtual display port. This
means doing extra CPU work (dependency updates) and in some cases,
extra GPU work (larger off-screen child surfaces) than are strictly
required.

With this patch, each tile determines if it is currently visible in
pre_update. If the tile isn't visible, we skip doing dependency
updates until it is on screen again. More importantly, this is
used to reduce the world culling rect for primitive preparation,
which also means large child surfaces only require allocations
large enough to enclose the visible tiles, rather than the
display port.

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

--HG--
extra : moz-landing-system : lando
2019-11-03 03:38:57 +00:00
Botond Ballo
e8e4a8641f Bug 1586496 - Add a gtest. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D51480

--HG--
extra : moz-landing-system : lando
2019-11-01 23:00:42 +00:00
Botond Ballo
d1c15f9836 Bug 1586496 - If two taps are close in time but far in distance, still allow the second one to start a gesture. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D51479

--HG--
extra : moz-landing-system : lando
2019-11-01 23:00:33 +00:00
Botond Ballo
65d96709fd Bug 1592902 - Extend gtest to cover this scenario. r=tnikkel
Depends on D51448

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

--HG--
extra : moz-landing-system : lando
2019-11-01 21:48:09 +00:00
Botond Ballo
298f088ed3 Bug 1592902 - Include the TOUCHING state in CanHandleScrollOffsetUpdate(). r=tnikkel
Otherwise, a main-thread update can interrupt a touch drag near its very
start, when we're still in the TOUCHING state while we're overcoming the
touch start tolerance threshold.

Depends on D51447

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

--HG--
extra : moz-landing-system : lando
2019-11-01 21:48:07 +00:00
Botond Ballo
09b6ec344e Bug 1592902 - Use ShouldCancelAnimationForScrollUpdate() for visual scroll updates as well. r=tnikkel
Depends on D51446

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

--HG--
extra : moz-landing-system : lando
2019-11-01 21:36:23 +00:00
Botond Ballo
e147a7700d Bug 1592902 - Factor out a ShouldCancelAnimationForScrollUpdate() helper. r=tnikkel
Depends on D51445

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

--HG--
extra : moz-landing-system : lando
2019-11-01 21:26:51 +00:00
Botond Ballo
f389ad5cf6 Bug 1592902 - Add some logging. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D51445

--HG--
extra : moz-landing-system : lando
2019-11-01 20:55:09 +00:00
sotaro
253cc9eb1e Bug 1573710 - Trigger composite after SetParent() r=Gankro
The patch permits to resize compositor window's size after ::SetParent() call to prevent a conflict between ::SetParent() and ::SetWindowPos(). Then it triggers a composite after SetParent() call to resize compositor window correctly.

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

--HG--
extra : moz-landing-system : lando
2019-11-01 11:01:34 +00:00
Jamie Nicol
b35d194fe6 Bug 1591945 - Ensure strings passed to glShaderSource are null-terminated on android emulator. r=gw
The emulator's implementation of glShaderSource can crash if the source string
are not null-terminated, even though we correctly pass the lengths of the
strings. Work around this by adding a null terminator when running on the
emulator.

Depends on D51293

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

--HG--
extra : moz-landing-system : lando
2019-10-31 19:09:23 +00:00
Jamie Nicol
0fa5e56eb1 Bug 1591436 - Avoid using glTexImage3D on android emulator. r=gw
A bug in the android emulator means that glTexImage3D thinks the maximum texture
size is the value of GL_MAX_TEXTURE_SIZE, rather than the value returned by
glGetIntegerv(GL_MAX_TEXTURE_SIZE). This means that calls to glTexImage3D fail
when width, height, or depth > 3379.

This forces us to use glTexStorage3D instead of glTexImage3D, avoiding
this bug. This relies upon swizzling, which is indeed supported on the
android emulator.

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

--HG--
extra : moz-landing-system : lando
2019-10-31 19:08:37 +00:00
Jonathan Kew
4114aeff1a Bug 1587385 - Give a better info (not error) message if a webfont is not used because of font-display timeout. r=heycam
This is not an error in the same way as a download failure, and should not be reported as one.
An Info message is sufficient.

Also suppress "unknown" location in messages about @font-face rules, as it is not useful,
pending a proper fix (bug 1450903).

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

--HG--
extra : moz-landing-system : lando
2019-11-01 08:54:05 +00:00
Glenn Watson
9e558efb0a Bug 1593154 - Fix semantics of partial present API for webrender. r=sotaro
- When partial present is not valid, ensure that a single dirty
   rect the entire size of the framebuffer is returned.
 - Ensure that we never return an empty dirty rect. If nothing is
   dirty, the returned dirty rects array is empty, which can be
   used by the client to completely skip calling Present.
 - Remove partial present Multi mode (for now). This mode has
   some issues with overlapping tiles which can be resolved as
   a follow up.

This should allow enabling partial present for a single dirty rect,
which covers most common cases. We can re-implement the more
complicated Multi partial present mode if / when we find pages
where supporting multiple partial present rects is a good win.

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

--HG--
extra : moz-landing-system : lando
2019-11-01 02:03:41 +00:00
Boris Chiou
29378ebb46 Bug 1429305 - Cache gfx path. r=hiro
We cache the path in AnimationInfo for layers, and in
CompsoitorAnimationStorage for web-renderer.

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

--HG--
extra : moz-landing-system : lando
2019-10-31 21:36:39 +00:00
Boris Chiou
d546797708 Bug 1429305 - Add new layer messages for passing motion path info. r=hiro,mattwoodrow
This also includes the implementation of SetAnimatable, FromAnimatable,
and merge the final matrix with motion path.

Besides, we always use PathBuilderSkia for calculating the gfx::Path for
web-renderer.

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

--HG--
extra : moz-landing-system : lando
2019-10-31 20:07:41 +00:00
Boris Chiou
58ba6b888a Bug 1429305 - Use serde to serialize LengthPercentage and StyleRayFunction. r=emilio
We need to pass these two types into the compositor, so we need a better
way to serialize these rust types. We use serde and bincode to
serialize/deserialize them, and use ByteBuf to pass the &[u8] data
through IPC. We define StyleVecU8 for FFI usage only.

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

--HG--
extra : moz-landing-system : lando
2019-10-31 21:35:05 +00:00
Jonathan Kew
97acebe64f Bug 1588993 - Don't send InitOtherFamilyNames IPC message from a stylo thread; post a runnable to the main thread instead. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D50745

--HG--
extra : moz-landing-system : lando
2019-10-31 14:41:15 +00:00
Botond Ballo
69b505220a Bug 1592435 - Add a gtest. r=tnikkel
Depends on D51202

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

--HG--
extra : moz-landing-system : lando
2019-10-31 01:07:11 +00:00
Botond Ballo
d9fa524033 Bug 1592435 - Don't allow a main thread scroll update to interrupt a touch-drag gesture. r=tnikkel
This makes the behaviour for touch-drags match the behaviour we already have
for pan gesture events.

Depends on D51201

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

--HG--
extra : moz-landing-system : lando
2019-10-31 01:06:14 +00:00