Commit Graph
421 Commits
Author SHA1 Message Date
Kartikaya Gupta 7c1da03e1c Bug 1403915 - Remove the WebRender*Layer classes and functions that refer to them. r=jrmuizel
MozReview-Commit-ID: 2syFwMc7j3r
2017-10-03 16:31:08 -04:00
Kartikaya Gupta cbacb77052 Bug 1403915 - Remove the IsLayersFreeTransaction() machinery and assume it's always true. r=jrmuizel
MozReview-Commit-ID: 7FYVirQ5pal
2017-10-03 16:31:07 -04:00
Kartikaya Gupta 41c4ae9cca Bug 1403915 - Remove the layers-free pref entirely and assume it's true at the call sites. r=jrmuizel
MozReview-Commit-ID: 7tLxaBGiE4R
2017-10-03 16:31:07 -04:00
Ethan Lin f22d91c79b Bug 1404091 - In layers-free mode, we should do NotifyInvalidation after EndTransaction if there is any scheduled flush. r=kats
MozReview-Commit-ID: D0LNF0LgWYq
2017-10-03 16:00:38 +08:00
Markus Stange a1a0ab8e9a Bug 1403697 - When restricting background colors to the background region, only use clips if we have rounded corners. r=mattwoodrow
MozReview-Commit-ID: F1ked65OBxA
2017-09-29 17:39:21 -04:00
Wes Kocher 4946214c0f Backed out changeset fbc75bbbebc1 (bug 1403697) for wptlint issues a=backout
MozReview-Commit-ID: 5gaaqSD7sUa
2017-09-29 11:20:24 -07:00
Markus Stange a412a6b319 Bug 1403697 - When restricting background colors to the background region, only use clips if we have rounded corners. r=mattwoodrow
MozReview-Commit-ID: F1ked65OBxA
2017-09-29 13:30:58 -04:00
Ethan Lin 1dc3d33125 Bug 1395501 - Part1. Store inherited scale in stacking context. r=jrmuizel,kats
MozReview-Commit-ID: 6LsTJa05uFV
2017-09-29 12:09:51 +08:00
Miko Mynttinen 0a577fdaae Bug 1402183 - Part 1: Make nsDisplayMask::CanMerge() symmetric r=mstange
MozReview-Commit-ID: 6qqHVpbMg1b
2017-09-22 16:29:13 +02:00
Timothy Nikkel cd721c7016 Bug 1402203 - Add a new layout phase for displaylist building. r=mstange 2017-09-26 15:57:57 +13:00
Ethan Lin 180c140b5b Bug 1402925 - Reset the animation id passed to the StackingContextHelper if there is no animation. r=kats
MozReview-Commit-ID: 2WM5FeeDAIc
2017-09-25 13:48:57 -04:00
Kartikaya Gupta 92ec9112a3 Bug 1402439 - Redo how we discard compositor animation ids. r=pchang
Instead of always discarding the compositor animation id, and then
sometimes un-discarding it (which involves a linear lookup in nsTArray),
this patch now has the WebRenderLayerManager keep a set of active
animation ids, and uses that to avoid discarding the same animation
twice.

In addition, because the display item can be destroyed at any time (e.g.
in the middle of an animation), we were previously "leaking" compositor
animations in that the compositor side never got notified to discard the
IDs. This resulted in infinite composition loops. This patch solves this
problem by having any unused WebRenderAnimationData trigger discard of
the animation id during destruction. This way, even if the nsDisplayItem
is deleted in the middle of the animation we have a fallback mechanism
to discard the id.

MozReview-Commit-ID: 8G3EYHcg9Kl
2017-09-22 16:39:57 -04:00
Sebastian Hengst 14b84f963d merge mozilla-central to autoland. r=merge a=merge 2017-09-24 23:53:44 +02:00
Chris Peterson 6137e4ff8b Bug 870698 - Part 2: Replace Append("") with AppendLiteral(""). r=erahm
MozReview-Commit-ID: CrkIP4iHP1U
2017-09-03 22:14:11 -07:00
Ethan Lin 5df9c4ed5d Bug 1398706 - Always create new clip ids in ScrollingLayersHelper if it's inside a mask. r=kats
MozReview-Commit-ID: Hhsbgpqddo1
2017-09-19 17:05:22 +08:00
Kevin Chen 481a73a6d8 Bug 1393376 - (Part 2) Retain BasicLayerManager in WebRenderFallbackData for layer invalidation computation; r=jrmuizel
MozReview-Commit-ID: 6rmJkXzLubX
2017-09-07 15:04:30 +08:00
Kartikaya Gupta 61cbe080e1 Bug 1399505 - Generate WR sticky frames from nsDisplayStickyPosition display items. r=mstange
MozReview-Commit-ID: 4ZCcdlBtEGi
2017-09-21 10:11:41 -04:00
Morris Tseng d7ade017fc Bug 1392200 - Add backface-visibility support for layers-free mode. r=kats
For layers-full mode, we set the backface-visibility to visible because
visibility would be handled by FLB and layers.

MozReview-Commit-ID: CUbeUabfC7K
2017-09-21 14:41:38 +08:00
Nicolas Silva 3c8f9ba825 Bug 1393031 - Remove unused nsTArray<WebRenderParentCommand>& parameter all over the place. r=jrmuizel 2017-09-20 13:36:53 +02:00
Sebastian Hengst 69e52ec63f merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-09-20 11:50:40 +02:00
Sebastian Hengst 33dad84671 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 9Z3Ly8icnvh
2017-09-20 11:48:02 +02:00
Nicolas Silva 32380e2bcc Bug 1393031 - Use IpcResourceUpdateQueue in more places. r=jrmuizel 2017-09-20 10:56:20 +02:00
Miko Mynttinen 1be8668291 Bug 1401262 - Allocate DisplayItemClipChain in nsDisplayOpacity::ShouldFlattenAway() from arena r=mstange
MozReview-Commit-ID: HPrFThNX1v5
2017-09-18 22:14:24 +02:00
Jonathan Watt e3204e3c0c Bug 1401356, part 2 - Rename nsSVGEffects to SVGObserverUtils. r=longsonr 2017-08-30 15:58:31 +01:00
Jonathan Watt 7428c44f4d Bug 1401356, part 1 - Rename nsSVGEffects.h/.cpp to SVGObserverUtils.h/.cpp. r=longsonr 2017-08-30 14:14:46 +01:00
Kevin Chen c2b4465195 Bug 1396492 - Support uniform radius for nsDisplayBoxShadowInner; r=jrmuizel
MozReview-Commit-ID: AXY7IjhE1DV
2017-09-18 23:08:24 +08:00
Kartikaya Gupta bf697ca06e Bug 1400034 - Do a more direct translation of transforms from Gecko to WR in layers-free mode. r=ethlin,pchang
In layers-free mode the gecko display list and coordinate system is very
similar to what WR is expecting. Instead of having each
StackingContextHelper shift the origin of the coordinate system, we can
leave it in one spot and just pass everything relative to that. The
semantics of the Gecko display list already matches this; the exception
is that nsDisplayTransform items are also considered reference frames,
and anything inside them is relative to the nsDisplayTransform. On the
WR side this is also the case, because stacking contexts with a
transform are implicitly turned into reference frames.

Additionally, the size of the bounds passed to the WR stacking context
is never actually used, except on the root stacking context (which is
not created by StackingContextHelper). Since we want a zero origin (as
explained above) and the size is never used, we can just pass a zero
rect to the WR stacking context from StackingContextHelper.

In terms of the actual transform matrix, this patch now passes the full
unmodified transform from nsDisplayTransform into WR. This transform
gets applied onto the contents of the nsDisplayTransform. The contents'
coordinate system is relative to the frame that generated the
nsDisplayTransform. Again this maps directly to WR, where the transform
on the stacking context gets applied to the contents of the stacking
context; the contents' coordinates are relative to the stacking context.

MozReview-Commit-ID: 9hdDxdKXPPi
2017-09-17 10:37:43 -04:00
Kartikaya Gupta 090912e213 Bug 1400034 - Back out changes that introduce scaling complexity to StackingContextHelper. r=ethlin,pchang
This backs out bug 1399050, bug 1394308 (2 patches), and bug 1391499. I
believe these patches sent us down a path that would make the code
increasingly more complex, when in fact we can do a more "direct"
translation from the gecko display list to the WR display list and make
things a lot simpler and more correct.

MozReview-Commit-ID: ZXXkI9DXiY
2017-09-17 10:37:42 -04:00
Sebastian Hengst 1c36da9196 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 4dRrVdftJVy
2017-09-15 11:05:11 +02:00
Sebastian Hengst 835e4ad199 Backed out changeset 8291145f0920 (bug 1393031) 2017-09-14 23:18:05 +02:00
Sebastian Hengst fc53f3bd53 Backed out changeset f34a52244cf9 (bug 1393031) 2017-09-14 23:17:35 +02:00
Markus Stange 35882b6218 Bug 1387594 - Stop getting the font smoothing background color from the theme. r=mattwoodrow
MozReview-Commit-ID: 2r1B8SvEkEl
2017-09-14 23:09:47 +02:00
Miko Mynttinen ad9cd57bca Bug 1359584 - Part 5: Change nsDisplayItem merging logic to non-destructive r=mstange
MozReview-Commit-ID: CiN2yUOyaMX
2017-08-23 21:01:28 +02:00
Miko Mynttinen 1d15e14450 Bug 1359584 - Part 3: Improve nsDisplayItem const correctness and fix surrounding whitespace r=mstange
MozReview-Commit-ID: 3GkWiu6C4Zo
2017-08-24 17:09:44 +02:00
Miko Mynttinen 811012bb9a Bug 1359584 - Part 2: Use display list through a pointer in nsDisplayWrapList r=mstange
MozReview-Commit-ID: KAYlYSDrG24
2017-08-24 22:23:21 +02:00
Miko Mynttinen 4401e3b079 Bug 1359584 - Part 1: Move mDisableSubpixelAA to nsDisplayItem r=mstange
MozReview-Commit-ID: 70169AFRmjq
2017-08-24 14:45:21 +02:00
Sebastian Hengst 114eb8db4c merge mozilla-central to autoland. r=merge a=merge 2017-09-13 11:30:55 +02:00
Sebastian Hengst 2253081558 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: GUc4LEY8qp4
2017-09-13 11:27:47 +02:00
peter chang 348a513d69 Bug 1394308 - Pass perspective transform attribute to compositor for OMTA, r=kats
MozReview-Commit-ID: EjyuCfnswqu
2017-09-07 11:50:41 +08:00
peter chang c9d4607969 Bug 1394308 - Apply inherited scale for OMTA to support layers-free, r=kats
Expose the API to get/set inherited scale from stacking context and we can
use these APIs to calculate correct scale for OMTA

MozReview-Commit-ID: DZEkodHTy8v
2017-09-06 16:29:52 +08:00
Ethan Lin aae329dc6d Bug 1393077 - Part1. Round the transformed rectangles and transformed points in StackingContextHelper. r=kats
MozReview-Commit-ID: Gk5z6BwsuTM
2017-08-31 17:59:41 +08:00
Matt Woodrow c1428d377d Bug 1397054 - Reset nsDisplayListBuilder state each frame so that we can use it multiple times. r=mstange
MozReview-Commit-ID: Gb7AnKoZaPu
2017-09-12 14:10:39 -04:00
Chih-Yi Leu 889225291f Bug 1351511 - Support nsDisplaySolidColorRegion to WR DisplayItems r=mstange
MozReview-Commit-ID: LMs5ON8NC2p
2017-08-15 16:58:47 +08:00
cku f9dba3ddb9 Bug 1396489 - Part 3. Use gfxContext::GetClipExtents(false) when clipped rect in device space is needed. r=mstange
MozReview-Commit-ID: YO4JACFK9O
2017-09-04 14:04:17 +08:00
Phil Ringnalda 06571ad96b Backed out 3 changesets (bug 1396489) for unexpected assertion failures
Backed out changeset 75ffa3ed13d5 (bug 1396489)
Backed out changeset fc779b639aeb (bug 1396489)
Backed out changeset dcfd73044bba (bug 1396489)

MozReview-Commit-ID: DvGlDLZF2nO
2017-09-04 21:09:04 -07:00
cku af31808e07 Bug 1396489 - Part 3. Use gfxContext::GetClipExtents(false) when clipped rect in device space is needed. r=mstange
MozReview-Commit-ID: YO4JACFK9O
2017-09-04 14:04:17 +08:00
Kartikaya Gupta 6acddc7f74 Bug 1395670 - In webrender layers-free mode, don't add a root scroll metadata if we already have it elsewhere in the tree. r=mstange
MozReview-Commit-ID: B9LY4v9t11Y
2017-08-31 17:07:41 -04:00
Phil Ringnalda cf0ba65c47 Backed out 6 changesets (bug 1302470) for mochitest-chrome failures
CLOSED TREE

Backed out changeset 3aab8b1494ef (bug 1302470)
Backed out changeset fdd40abac611 (bug 1302470)
Backed out changeset a67bc2f1b624 (bug 1302470)
Backed out changeset 160522290018 (bug 1302470)
Backed out changeset 6b948c533944 (bug 1302470)
Backed out changeset 399011313b3c (bug 1302470)

MozReview-Commit-ID: 2B3uMAkzNGv
2017-08-31 20:04:24 -07:00
Brad Werth 2b17263054 Bug 1302470 Part 4: Change nsDisplayList::GetOpaqueRegion non-opaque lists to build up a region from its children. r=mattwoodrow
MozReview-Commit-ID: LEuvazbz1X
2017-04-20 10:50:41 -07:00
Ethan Lin eec7726cbf Bug 1394711 - nsDisplayBackgroundImage should check layer state to create webrender commands. r=kats
MozReview-Commit-ID: Lr1Yfcd50iK
2017-08-29 14:51:06 +08:00