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

32973 Коммитов

Автор SHA1 Сообщение Дата
Doug Thayer b78a7a9c81 Bug 1441308 - Add the render root splitting pref r=sotaro
Differential Revision: https://phabricator.services.mozilla.com/D12844

--HG--
extra : moz-landing-system : lando
2019-03-22 18:28:31 +00:00
Lee Salzman fad3958ac4 Bug 1495400 - don't draw non-scalable FT faces as paths. r=jnicol
Differential Revision: https://phabricator.services.mozilla.com/D24416

--HG--
extra : moz-landing-system : lando
2019-03-22 17:52:48 +00:00
Kartikaya Gupta 1e08b4ff7c Bug 1509295 - Apply axis locking for flings at the start of the fling. r=botond
Instead of having special code in the velocity tracker to deal with axis
locking and cancel out the position delta, we can apply axis locking
when we transition from the pan to the fling and simply cancel the
velocity on locked axes. This avoids the problem where we start a fling
from an axis lock but velocity information from prior to the axis lock
is used to compute the (perhaps unexpected) fling trajectory.

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

--HG--
extra : moz-landing-system : lando
2019-03-22 16:44:45 +00:00
Gijs Kruitbosch 8e02fa26bc Bug 1519241 - remove nightly-only low-end device detection, r=kats,chutten,flod,mconley
Differential Revision: https://phabricator.services.mozilla.com/D24345

--HG--
extra : moz-landing-system : lando
2019-03-22 08:44:18 +00:00
Ciure Andrei 3de853018a Backed out 7 changesets (bug 1441308)for causing webrender build bustages CLOSED TREE
Backed out changeset 1764701d11d1 (bug 1441308)
Backed out changeset 32f7793dfd1a (bug 1441308)
Backed out changeset d8b4d6ec9b40 (bug 1441308)
Backed out changeset e2f83e4816dd (bug 1441308)
Backed out changeset baee8ada680f (bug 1441308)
Backed out changeset c09a51622e98 (bug 1441308)
Backed out changeset 737807563dd5 (bug 1441308)
2019-03-22 10:52:44 +02:00
Doug Thayer 278c2303da Bug 1441308 - Always send parent commands when sending mDestroyedActors r=kats,sotaro
If we try to send them separately as we were before, we can run into
cases where we try to destroy the actors and then send the OpRemoveTexture,
which crashes.

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

--HG--
extra : moz-landing-system : lando
2019-03-21 23:15:42 +00:00
Doug Thayer 472a9344d2 Bug 1441308 - Map document layers to z ranges r=gw
As discussed in IRC. AFAICT the ORTHO_NEAR|FAR_PLANE should match
up with the ranges of valid ZBufferIds, but please double-check
me.

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

--HG--
extra : moz-landing-system : lando
2019-03-21 23:15:23 +00:00
Doug Thayer fc4d50c197 Bug 1441308 - Correct Renderer issues with multiple documents r=gw
This corrects A) An issue encountered with our strategy for skipping
the end_pass call for all but an offscreen render target. See the
comment above the end_pass call for details, and B) An issue with
depth clearing where we do not clear the whole rect if there are
multiple non-intersecting documents.

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

--HG--
extra : moz-landing-system : lando
2019-03-22 03:15:18 +00:00
Doug Thayer 32a7e500dd Bug 1441308 - Rename ForEach trait to AsyncForEach r=lsalzman
Just a little rename for clarity - I ended up scratching my head at
something for a little more time than I should have because I assumed
this was synchronous without looking at the implementation.

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

--HG--
extra : moz-landing-system : lando
2019-03-22 03:15:16 +00:00
Doug Thayer 5b3a0454a4 Bug 1441308 - Core renderroot splitting changes r=kats,sotaro
This is a large patch that contains all of the core changes for
renderroot splitting.

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

--HG--
extra : moz-landing-system : lando
2019-03-22 03:15:14 +00:00
Doug Thayer 626d53a5b9 Bug 1441308 - Add the render root splitting pref r=sotaro
Differential Revision: https://phabricator.services.mozilla.com/D12844

--HG--
extra : moz-landing-system : lando
2019-03-21 23:14:26 +00:00
Mike Hommey f065aaf078 Bug 1537673 - Remove remaining useless CC_TYPE test. r=dmajor
Differential Revision: https://phabricator.services.mozilla.com/D24314

--HG--
extra : moz-landing-system : lando
2019-03-21 13:22:02 +00:00
Kartikaya Gupta 388044686f Bug 1536162 - Update bugzilla component for gfx/wr. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D23894

--HG--
extra : moz-landing-system : lando
2019-03-21 20:40:57 +00:00
Botond Ballo 2ce3d47ca0 Bug 1536157 - Make sure we repaint after accepting a visual scroll update. r=kats
A possible alternative would be to have the main thread already paint a
displayport at the target position of a requested visual update as part of
the same transaction that requests the update.

There are a couple of reasons we may not want to do that:

 1) APZ could reject the requested visual update under certain conditions,
    e.g. if there is a higher-priority layout update.

 2) It would break the property that the displayport in the main thread's
    scroll metadata is relative to the scroll offset in said metadata.
    Various places assume this and untangling that seems tricky.

This does mean that if the main thread requests a visual update to "far away"
(outside the existing displayport), we can get temporary checkerboarding
before the content at the target position is painted. However, it's
straightforward for callers to work around that, by changing the layout scroll
offset _and_ scheduling a visual update if they wish to visual-scroll far
away.

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

--HG--
extra : moz-landing-system : lando
2019-03-22 05:20:31 +00:00
Glenn Watson 557728d4ad Bug 1537668 - Refactor how clip task indices are passed to shaders. r=kvark
This patch shouldn't have any functional effect. It's motivated by
some changes needed to implement clip masks in pixel local storage,
but these are also general improvements that stand alone. Specifically:

 - Remove clip_task_index from the global PrimitiveHeader struct.
   In most cases, the clip task is supplied in the BrushInstance
   structure, so it makes no sense to have this as a common field,
   where it is generally unused. Instead, there is now an extra
   'user data' field available in the PrimitiveHeader. Non-brush
   shaders (text_run and split_composite) use that extra field to
   store the clip task address, while the brush shaders gain an extra
   (currently unused) user data field.
 - In turn, this means there is no need to unconditionally try
   and retrieve the first clip task address for a primitive
   during batching. This was previously used to initialize the
   PrimitiveHeader structure.

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

--HG--
extra : moz-landing-system : lando
2019-03-21 14:37:57 +00:00
Kartikaya Gupta f6575a29b2 Bug 1537577 - Move doc comment to fix new warning in rustc 1.35.0-nightly. r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D24359

--HG--
extra : moz-landing-system : lando
2019-03-21 14:32:09 +00:00
Nicholas Nethercote a955ca9592 Bug 1535226 - Remove uses of XP_WIN32 in Gecko. r=glandium
The definitions can't be entirely removed yet because NSS still needs them.

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

--HG--
extra : moz-landing-system : lando
2019-03-21 01:28:50 +00:00
Timothy Nikkel 93a1eaeaa2 Bug 1537660. Fix nsRegion::ToString(). r=bas
It never outputs the separator between rects.

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

--HG--
extra : moz-landing-system : lando
2019-03-21 15:05:57 +00:00
Imanol Fernandez a3e06efc18 Bug 1537899 - Add neck model capability for VRPose position. r=kip
Add neck model capability for VRPose position.

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

--HG--
extra : moz-landing-system : lando
2019-03-21 19:38:18 +00:00
Miko Mynttinen b9ba790058 Bug 1534805 - Unify FrameLayerBuilder and WR display list iterators r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D23230

--HG--
extra : moz-landing-system : lando
2019-03-21 03:15:16 +00:00
Jonathan Kew d925caee91 Bug 1537587 - Add Noto fonts for more languages to Android version of GetCommonFallbackFonts. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D24292

--HG--
extra : moz-landing-system : lando
2019-03-21 04:41:30 +00:00
Cameron McCormack c1e712e277 Bug 282126 - Part 1: Allow getting zero glyph width from nsFontMetrics without falling back to average glyph width. r=jfkthame
While we're here, fix the measurement of ' ' and 'x' so that we don't
measure the .notdef glyph if those glyphs aren't present.

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

--HG--
extra : moz-landing-system : lando
2019-03-21 04:50:41 +00:00
Boris Zbarsky 9c586db495 Bug 1535384 part 12. Remove MOZ_CAN_RUN_SCRIPT_BOUNDARY from FrameRequestCallback. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D23783

--HG--
extra : moz-landing-system : lando
2019-03-19 16:02:12 +00:00
Glenn Watson 8452fc14bc Bug 1536732 - Add experimental pixel-local-storage render path to WR r=kvark
Add an experimental code path that makes use of the pixel local
storage extension available on many mobile GPUs.

This code path is currently disabled by default, as the support
is not complete for all primitives and blend modes. The initial
aim is to get feature parity with the existing renderer.

Once that's complete, we can take advantage of the (minimum)
12 bytes per pixel of high speed on-tile memory to store custom
data.

Clip masks are a good use case for this, since they map 1:1 with
the position of the fragment they are clipping. Using this for
clip masks allows us to handle clipping on mobile GPUs in a much
more efficient way - we can skip (a) separate render targets,
(b) target resolve (c) sample the mask texture during rendering.

Depends on D24123

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

--HG--
extra : moz-landing-system : lando
2019-03-21 02:59:04 +00:00
Barret Rennie 36cd17958e Bug 1444434 - Bump webrender and webrender_bindings gleam dependency to 0.6.14 r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D23958

--HG--
extra : moz-landing-system : lando
2019-03-20 19:52:53 +00:00
sotaro 4649e87987 Bug 1532929 - Use SharedGL on android r=nical
RenderCompositorEGL is also used on wayland, but SharedGL is not enabled on wayalnd. Since SharedGL caused flickering, when multiple windows were opened on wayland.

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

--HG--
extra : moz-landing-system : lando
2019-03-20 11:51:33 +00:00
sotaro 830d52b3e8 Bug 1536002 - Add SharedGL check in RenderCompositorANGLE::Create() r=nical
Differential Revision: https://phabricator.services.mozilla.com/D23824

--HG--
extra : moz-landing-system : lando
2019-03-20 11:52:26 +00:00
Barret Rennie d1cbdf8699 Bug 1536466 - Fix nsTDependentString with non-null-terminated buffer assertion r=bholley
`gecko_profiler_add_text_marker` was being passed a character pointer and a
length to construct a `nsDependentCString`. However, these values were coming
from a Rust `&str`, which is not null-terminated, causing an debug assertion to
be hit (and possible memory safety issues if mishandle the string). We now
construct an `nsDependentCSubstring` instead.

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

--HG--
extra : moz-landing-system : lando
2019-03-19 23:51:22 +00:00
Dzmitry Malyshau 7afa68dc61 Bug 1536085 - Update plane-split to 0.13.8 r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D24095

--HG--
extra : moz-landing-system : lando
2019-03-19 21:00:08 +00:00
Emilio Cobos Álvarez 0a3856aa9c Bug 1516780 - Optimize restyles when a font is loaded. r=heycam
Depends on D20729

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

--HG--
extra : moz-landing-system : lando
2019-03-19 21:10:41 +00:00
Glenn Watson 9d856b1091 Bug 1535976 - Add a fast path for common rounded rect clips to WR. r=kvark
Most rounded rect clips in real content are (a) axis aligned and
(b) have uniform radii.

When these conditions are met, we can run a fast path for clip
mask generation that uses significantly fewer ALU shader ops.

This is not typically a bottleneck on desktop GPUs, but can have
a large performance impact on mobile GPUs (and perhaps low end
integrated GPUs).

The Mali shader analyzer reports the slow path for the rounded
rect clip shader to be 94 cycles per fragment, while the fast
path is 10 cycles.

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

--HG--
extra : moz-landing-system : lando
2019-03-19 19:48:13 +00:00
Bobby Holley c492c0fe0f Bug 1535745 - Eliminate gfx.webrender.program-binary. r=sotaro
Differential Revision: https://phabricator.services.mozilla.com/D23731

--HG--
extra : moz-landing-system : lando
2019-03-16 00:31:38 +00:00
Kearwood "Kip" Gilbert 55278c6768 Bug 1532375 - Implement Matrix4x4Double and QuaternionDouble r=lsalzman
The upcoming WebXR API (Bug 1419190) requires intermediate calculations of real-world space coordinates to have more precision with larger ranges. I expect that double precision matrix and quaternions will also be useful in other graphics and layout work.

It would not be ideal to expand the existing classes to always use double precision, as it would incur a significant performance penalty on certain platforms (eg, Arm). The double-precision variants should be used only when required.

The existing gfx::Matrix4x4 and gfx::Quaternion implementation can be extended with templates to generate both single and double precision variants.

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

--HG--
extra : moz-landing-system : lando
2019-03-19 17:19:47 +00:00
Kartikaya Gupta e4a8c5322d Bug 1469897 - Add a complex pointer-events hit-testing test. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D23910

--HG--
extra : moz-landing-system : lando
2019-03-18 23:05:59 +00:00
Jeff Muizelaar 215442f5e9 Bug 1536242. Enable WebRender on AMD Cayman (Northern Islands) chips. r=kats
We haven't seen any AMD related bugs on Nightly so I'd like to expand
our scope further.

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

--HG--
extra : moz-landing-system : lando
2019-03-19 14:22:45 +00:00
Alex Gaynor 177fb00eba Bug 1375863 - fold MOZ_CONTENT_SANDBOX and MOZ_GMP_SANDBOX into MOZ_SANDBOX; r=jld,firefox-build-system-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D22975

--HG--
extra : moz-landing-system : lando
2019-03-18 22:31:59 +00:00
Henri Sivonen 085ffa46c6 Bug 1535541 Use chrome-process TabParent focus instead of APZ focus for keyboard event routing. r=nika
Depends on D20981

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

--HG--
extra : moz-landing-system : lando
2019-03-19 13:37:22 +00:00
Jonathan Kew 95ed8b4b59 Bug 1534693 - Bail out of font-family search in GlobalFontFallback once we've found a font with an exact style match. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D23162

--HG--
extra : moz-landing-system : lando
2019-03-19 10:49:53 +00:00
sotaro 218dad8f2e Bug 1536033 - Add error value to create EGLContext failure log r=jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D23834

--HG--
extra : moz-landing-system : lando
2019-03-19 03:01:40 +00:00
Daniel Varga 8cfdfc2400 Merge mozilla-central to autoland. a=merge on a CLOSED TREE
--HG--
rename : dom/svg/SVGAnimatedAngle.cpp => dom/svg/DOMSVGAnimatedAngle.cpp
rename : dom/svg/SVGAnimatedAngle.h => dom/svg/DOMSVGAnimatedAngle.h
rename : dom/svg/SVGAnimatedBoolean.cpp => dom/svg/DOMSVGAnimatedBoolean.cpp
rename : dom/svg/SVGAnimatedBoolean.h => dom/svg/DOMSVGAnimatedBoolean.h
rename : dom/svg/SVGAnimatedEnumeration.cpp => dom/svg/DOMSVGAnimatedEnumeration.cpp
rename : dom/svg/SVGAnimatedEnumeration.h => dom/svg/DOMSVGAnimatedEnumeration.h
rename : dom/svg/SVGAnimatedInteger.cpp => dom/svg/DOMSVGAnimatedInteger.cpp
rename : dom/svg/SVGAnimatedInteger.h => dom/svg/DOMSVGAnimatedInteger.h
rename : dom/svg/SVGAnimatedLength.cpp => dom/svg/DOMSVGAnimatedLength.cpp
rename : dom/svg/SVGAnimatedLength.h => dom/svg/DOMSVGAnimatedLength.h
rename : dom/svg/SVGAnimatedNumber.cpp => dom/svg/DOMSVGAnimatedNumber.cpp
rename : dom/svg/SVGAnimatedNumber.h => dom/svg/DOMSVGAnimatedNumber.h
rename : dom/svg/SVGAnimatedString.cpp => dom/svg/DOMSVGAnimatedString.cpp
rename : dom/svg/SVGAnimatedString.h => dom/svg/DOMSVGAnimatedString.h
extra : rebase_source : 659cd1fcc5bf82db49df02d92bdb9b14833f06bf
2019-03-19 11:54:04 +02:00
Daniel Varga 358f816f63 Merge mozilla-inbound to mozilla-central. a=merge 2019-03-19 11:50:28 +02:00
Bogdan Tara d8ee73369c Backed out changeset 93c9a0e2da6e (bug 1527751) for wrench bustages CLOSED TREE 2019-03-19 07:41:50 +02:00
Gurzau Raul 75e5218258 Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-03-18 23:46:50 +02:00
Gurzau Raul 9db9a7e707 Merge inbound to mozilla-central. a=merge 2019-03-18 23:38:05 +02:00
Jeff Gilbert 52d58f2a74 Bug 1533527 - Forbid non-size_t calls to malloc and calloc. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D22627
2019-03-18 13:47:18 -07:00
Alexis Beingessner e2857c55ed Bug 1527751 - properly apply transformed clips in brush shader. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D23905

--HG--
extra : moz-landing-system : lando
2019-03-18 21:05:56 +00:00
Jamie Nicol 083b51840d Bug 1511433 - Ensure address variables in fragment shaders are highp precision. r=gw
In GLES 3 GLSL, the default precision for ints is highp (32 bit) in
vertex shaders, but only mediump (16 bit) in fragment shaders.

To render linear and radial gradients the fragment shader must fetch
the gradient stops from the gpu cache, using an address variable. This
variable is a 16 bit int, so if the stops data is located at
too high an address (row 32 or greater) then this value will have
overflown and we fetch from the wrong location. This was resulting in
garbage being drawn instead of the correct gradients.

To fix this, any address used in a fragment shader must be marked as
highp. This includes the varying input which supplies the address, and
the arguments to any functions used for the fetch.

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

--HG--
extra : moz-landing-system : lando
2019-03-17 20:54:29 +00:00
Coroiu Cristina e288f6c13d Backed out changeset 9f30fc25911a (bug 1536242) for build bustage at build/src/gfx/thebes/gfxPlatform.cpp on a CLOSED TREE 2019-03-19 11:20:55 +02:00
Jeff Muizelaar 1b07b22728 Bug 1536242. Enable WebRender on AMD Cayman (Northern Islands) chips. r=kats
We haven't seen any AMD related bugs on Nightly so I'd like to expand
our scope further.

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

--HG--
extra : moz-landing-system : lando
2019-03-18 22:23:46 +00:00
sotaro b360f74a7a Bug 1535807 - Fix build failure by WebRenderTextureHostWrapper.h r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D23768

--HG--
extra : moz-landing-system : lando
2019-03-16 17:03:18 +00:00