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

10463 Коммитов

Автор SHA1 Сообщение Дата
Sebastian Hengst 7e81b9743d merge mozilla-central to autoland. r=merge a=merge 2017-10-04 11:15:12 +02:00
Sebastian Hengst 5e0b457b10 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: EVLGo1zCANb
2017-10-04 11:13:24 +02:00
Kartikaya Gupta e0fd3a68fc Bug 1403915 - Collapse EndTransactionInternal into EndTransactionWithoutLayers. r=jrmuizel
MozReview-Commit-ID: 5l9LkfJTqKy

--HG--
extra : rebase_source : 50fc05afad2c23f592b9d18ae80d2402610d1cee
2017-10-03 16:31:08 -04:00
Kartikaya Gupta c1a6bdfaf1 Bug 1403915 - Remove some leftover Layer-related goop. r=jrmuizel
MozReview-Commit-ID: 2XCJaRcQR3s

--HG--
extra : rebase_source : 7f3f4cdf1bf77c8a8b7a62f675e5132f84eab49e
2017-10-03 16:31:08 -04:00
Kartikaya Gupta 9493b267c7 Bug 1403915 - Remove some leftover painting callback goop. r=jrmuizel
MozReview-Commit-ID: BycK4Ug1sgm

--HG--
extra : rebase_source : 6fa5a8da45a75ec4ed1d5a7b55cf95671845bd05
2017-10-03 16:31:08 -04:00
Kartikaya Gupta 2f1948343f Bug 1403915 - Remove the WebRender*Layer classes and functions that refer to them. r=jrmuizel
MozReview-Commit-ID: 2syFwMc7j3r

--HG--
extra : rebase_source : 9a3852506820eb09328d91007581d74786eba9b0
2017-10-03 16:31:08 -04:00
Kartikaya Gupta dbe077b3f1 Bug 1403915 - Remove the IsLayersFreeTransaction() machinery and assume it's always true. r=jrmuizel
MozReview-Commit-ID: 7FYVirQ5pal

--HG--
extra : rebase_source : 4b33fba54776003b4f0d45b89be07916db1f2340
2017-10-03 16:31:07 -04:00
Ethan Lin 0d6bfa48a2 Bug 1391816 - Move layers-free related functions and variables from WebRenderLayerManager to WebRenderCommandsBuilder. r=jrmuizel
We have too many layers-free things in WebRenderLayerManager. I create a new
class WebRenderCommandsBuilder and move some functions and variables from
WebRenderLayerManager to WebRenderCommandsBuilder.

MozReview-Commit-ID: BJi1E51W7ax

--HG--
extra : rebase_source : ddbfb044d467430403a3c480030ef9dec803c9f7
2017-09-25 15:48:29 +08:00
Jeff Muizelaar 5baca5e314 Bug 1404955 - Use ComplexClipRegion instead of WrComplexClipRegion. r=kats
cbindgen will let us do this now.
2017-10-03 18:11:14 -04:00
Ethan Lin 2a82b402b3 Bug 1404091 - In layers-free mode, we should do NotifyInvalidation after EndTransaction if there is any scheduled flush. r=kats
MozReview-Commit-ID: D0LNF0LgWYq

--HG--
extra : rebase_source : e005389de5d2b2b9e0a8ecf5b4de58ae7f9f21a9
2017-10-03 16:00:38 +08:00
Ethan Lin caf728fd67 Bug 1404782 - Do not mutate display list in layers-free mode. r=mattwoodrow
MozReview-Commit-ID: 7usEJupItdi

--HG--
extra : rebase_source : 93972dc1b61231f1956b993454f4c7fa4e2d1307
2017-10-02 11:18:31 +08:00
Kartikaya Gupta a8c7b2198d Bug 1403176 - Turn on empty transactions support in layers-free WebRenderLayerManager. r=mstange
By returning true from WebRenderLayerManager::EndEmptyTransaction, we
avoid doing a full paint in cases where the caller decides an empty
transaction would be sufficient. WebRenderLayerManager already rejects
attempts to set some forms of empty-transaction data (specifically
transform and scroll offset updates). This means that we will never get
a call to EndEmptyTransaction where the caller is expecting a transform
or scroll offset update to be sent over to the compositor. So if we have an
implementation of EndEmptyTransaction that ignores that data, it will not
break expectations.

There is still one piece of information that WebRenderLayerManager
doesn't reject in this manner, the APZ focus state. That is, if the
layout code sets a pending APZ focus state on the WRLM, followed by a
all to EndEmptyTransaction, it expects the focus state to get propagated
to the compositor. This patch makes sure that it does happen by using
the new API added in the previous patch.

MozReview-Commit-ID: 596UgW9ZWAF

--HG--
extra : rebase_source : e0f4f201a76747d6e29cde5da26fe760fd7f770b
2017-10-02 16:49:56 -04:00
Kartikaya Gupta c2cbdf1d8e Bug 1403176 - Add support for out-of-band APZ focus state propagation. r=mstange
One of the pieces of information that can be sent to the compositor is
the APZ focus state info, which is used for keyboard APZ. This patch
adds an API that allows updating this outside of a regular WR
"transaction" (i.e. a SetDisplayList call) so that we can use it in an
empty transaction (in the next patch).

MozReview-Commit-ID: L5TCbI9FtGV

--HG--
extra : rebase_source : 427b606a333d83eb82aa566768ba331d34542e8e
2017-10-02 16:49:55 -04:00
Kartikaya Gupta 8c4d9f46ad Bug 1403176 - Make WebRenderLayerManager reject pending scroll offset updates. r=mstange
Currently some callers attempt to set a "pending scroll offset update"
on the layer tree, which basically allows it to send a scroll offset
update to the compositor in an empty transaction, without doing a full
paint. However, WebRenderLayerManager doesn't really support empty
transactions yet, so we want to reject attempts to do this for now. This
will force the callers to schedule a full transaction instead of an
empty transaction.

MozReview-Commit-ID: 1bBlj59W5HH

--HG--
extra : rebase_source : 0a018989c2681b01ff325e8e2c79c9ff146f04d4
2017-10-02 16:49:55 -04:00
Kearwood "Kip" Gilbert 6f85ed3a79 Bug 1400407 - Part 3: Remove IsMirror concept, as it is no longer used by WebVR,r=jgilbert
- This patch is the same as one from Bug 1382104 (Remove IsMirror concept
  in favor of checking forwarder).
- It is safe to uplift this patch without the rest of Bug 1382104 as long
  as the remaining Bug 1381084 is also uplifted.

MozReview-Commit-ID: 21YZObeSUa3

--HG--
extra : rebase_source : 8d543fe69f4ac9df5ccdc42d3ce47bb37eea4396
2017-08-28 14:50:14 -07:00
Kearwood "Kip" Gilbert 07bf2f8968 Bug 1400407 - Part 1: Cleanup WebVR dead code,r=daoshengmu,r=jgilbert
- VRManagerChild no longer needs to be a TextureForwarder
- VRManagerParent no longer descends from HostIPCAllocator or ShmemAllocator
- PVRManager no longer manages PTexture's
- VRLayerParent::mSize was not used and has been removed

MozReview-Commit-ID: 3bNN5FR5j7M

--HG--
extra : rebase_source : 634277825c00057bca6f8c77cdc942de61d61e9c
2017-09-14 17:10:15 -07:00
Bas Schouten 43c3e5a40a Bug 1404749: Release our DrawTargetCapture on the main thread. r=mattwoodrow
MozReview-Commit-ID: 7uRdl2ZWtGS
2017-10-02 04:20:40 +02:00
Sebastian Hengst 45c6b30a2c merge mozilla-central to autoland. r=merge a=merge 2017-09-30 10:22:53 +02:00
Cosm b4871889d9 Bug 1385335 - Use RecursiveMutex in AsyncPanZoomController.r=botond
MozReview-Commit-ID: ETzQVCu1o7z

--HG--
extra : rebase_source : c7126c098f63e8ce12506dfaee0d995091512b06
2017-09-27 08:41:51 +05:30
Markus Stange 4b4d6f1561 Bug 1402498 - Add ScrollAnimationMSDPhysics, can be enabled using general.smoothScroll.msdPhysics.enabled. r=rhunt
MozReview-Commit-ID: fr8Q9iod5k

--HG--
extra : rebase_source : b9113d40081371872deff6aade13fd226b3e72a9
2017-09-26 20:55:35 -04:00
Markus Stange c2ed209689 Bug 1402498 - Separate out ScrollAnimationBezierPhysics and make ScrollAnimationPhysics an interface. r=rhunt
MozReview-Commit-ID: K3b8vjY5xaO

--HG--
rename : layout/generic/ScrollAnimationPhysics.cpp => layout/generic/ScrollAnimationBezierPhysics.cpp
extra : rebase_source : e112a02b0ce40438375ff48e5bd1911a8ad4da3b
2017-09-29 18:37:14 -04:00
Markus Stange c4ba4ac85d Bug 1402498 - Clean up ScrollAnimationPhysics code after the separation. r=rhunt
MozReview-Commit-ID: Ldm96zHxqWD

--HG--
extra : rebase_source : c5e18772e07425e07221541761af01c55f9db782
2017-09-22 15:08:39 -04:00
Markus Stange 488f43bd92 Bug 1402498 - Rename AsyncScrollBase to ScrollAnimationPhysics and use composition instead of inheritance. r=rhunt
MozReview-Commit-ID: 7UFf0mZsrEr

--HG--
rename : layout/generic/AsyncScrollBase.cpp => layout/generic/ScrollAnimationPhysics.cpp
rename : layout/generic/AsyncScrollBase.h => layout/generic/ScrollAnimationPhysics.h
extra : rebase_source : 66cc26ef54b31d5cfe498d8f23bc678862423aa5
2017-09-22 13:42:29 -04:00
Boris Zbarsky c359e02509 Bug 1403293 followup. Add a test. r=kats
MozReview-Commit-ID: GyWZGiT6xeG
2017-09-29 08:51:40 -04:00
Jeff Muizelaar c5e5b9b24d Bug 1403642. Avoid an extra property table lookup. r=ethlin
We can just call Get() and check the return value instead of calling Has()
2017-09-29 00:39:55 -04:00
Ethan Lin 179ed054db Bug 1395501 - Part2. Use stacking context's scale value to compute the correct paint rect. r=jrmuizel
MozReview-Commit-ID: AaAhTza5TP4
2017-09-29 12:09:51 +08:00
Ethan Lin 2902b1bde2 Bug 1395501 - Part1. Store inherited scale in stacking context. r=jrmuizel,kats
MozReview-Commit-ID: 6LsTJa05uFV
2017-09-29 12:09:51 +08:00
Markus Stange 0b21de814f Bug 1402498 - Compute precise velocities and apply the zoom factor correctly. r=botond
This may make the smooth scroll animation feel differently, based on zoom. I'm
not sure if the old workaround for that problem even worked; in any case, it
gave wrong values.

MozReview-Commit-ID: KXD1DPGfbgA

--HG--
extra : rebase_source : d4b4b961b90e339dabb441d9fbf2d2bcec1d04ba
2017-09-17 13:45:07 +02:00
Markus Stange 6e01406539 Bug 1402498 - Mark two methods of AxisPhysicsModel as const. r=rhunt
MozReview-Commit-ID: BTL8YwAIHtu

--HG--
extra : rebase_source : 9465825c5658d7caec453046f651ad830bacdb13
2017-09-17 13:41:14 +02:00
Markus Stange fc2801ce61 Bug 1402498 - Remove self-include. r=rhunt
MozReview-Commit-ID: 9Fkr6p8dBKk

--HG--
extra : rebase_source : d787c395abe8614b0f2e8b375f78ee860bbfccc5
2017-09-17 13:40:46 +02:00
Nicolas Silva 2f7d255fa8 Bug 1403857 - Clear with transparent black to benefit from fast glClear optimization. r=kvark 2017-09-28 16:30:58 +02:00
JerryShih 39ce3036af Bug 1388240 - turn to use TextureExternalHandle in DXGIYCbCrTextureHostD3D11. r=nical
Create a new type RenderDXGIYCbCrTextureHostOGL for planar-ycbcr format in WR.
That type could convert the 3 d3d11-a8 textures into gl handles. Then, WR could
draw the gl handles directly.

MozReview-Commit-ID: 1CIQO4p8u30
2017-09-28 21:43:01 +08:00
JerryShih b2d91d1a05 Bug 1388240 - update the DXGITextureHostD3D11::Lock() comment for non-compositor use case. r=nical
MozReview-Commit-ID: ERo8DHpau6c
2017-09-28 21:43:00 +08:00
Nicolas Silva 3d115cd298 Bug 1402274 - Adjust the shm allocation size in IpcResourceUpdateQueue. r=dvander 2017-09-28 10:30:31 +02:00
sotaro b7cab8917e Bug 1403439 - Fix WrExternalImageBufferType of DXGITextureHostD3D11 r=nical 2017-09-27 19:11:48 +09:00
Jeff Muizelaar 06e888a351 Bug 1402004. Use A8 as the format for the dummy drawtarget. r=Gankro
I'm not sure why the original comment was there. Everything seemed
to work in local testing.
2017-09-27 00:02:01 -04:00
sotaro afe9dcf6ff Bug 1403049 - Remove EGLImageImage r=snorp 2017-09-27 09:56:38 +09:00
Andrew Osmond 3ab0c4aca3 Bug 1402592 - Ensure that ImageBridgeParent instances are closed by the parent during shutdown. r=dvander
We currently allow the content process to shutdown the IPDL objects on
behalf the parent, and we wait for all of these instances to be freed
before we complete shutdown. This is undesirable because it requires the
parent to trust the child rather than the other way around; the child
can hold shutdown hostage by simply not releasing its instances. The
child should already support the parent closing its graphics IPDL
objects because the GPU process itself can die abruptly and be restored
at a later time.
2017-09-26 14:03:29 -04:00
Andrew Osmond dbcc485a7a Bug 1389759 - Ensure we tear down CompositorManagerChild correctly if init or the GPU process fail. r=dvander 2017-09-26 13:21:52 -04:00
Andrew Osmond b294a966cd Backed out changeset 6ed0903b5242 (bug 1389759) because an old version of the patch was landed. 2017-09-26 13:20:21 -04:00
Andrew Osmond 4ef271b6d3 Bug 1389759 - Ensure we tear down CompositorManagerChild correctly if init or the GPU process fail. 2017-09-26 11:31:50 -04:00
Nicolas Silva 96de7b8d80 Bug 1383786 - Delete image keys as soon as they are not used anymore. r=sotaro 2017-09-26 15:31:08 +02:00
Nicolas Silva f1d8bb2519 Bug 1383786 - Rename TextureHost::PushExternalImage into PushDisplayItems. r=sotaro 2017-09-26 15:31:00 +02:00
Nicolas Silva f4e0aed003 Bug 1383786 - Update TextureHost image keys when posible. r=sotaro 2017-09-26 15:30:55 +02:00
Nicolas Silva f8c1fa40c8 Bug 1383786 - Make it possible to update TextureHost image keys. r=sotaro 2017-09-26 15:30:51 +02:00
Nicolas Silva 988b7e111c Bug 1383786 - Simplify generating image keys for TextureHosts. r=sotaro 2017-09-26 15:30:46 +02:00
sotaro 8c6ed26316 Bug 1402767 - Enable accleleration of GLScreenBuffer when WebRender is enabled r=jgilbert 2017-09-26 13:15:36 +09:00
sotaro b283dc671f Bug 1402739 - Fix mutex handling around async ImageContainer r=nical 2017-09-26 09:58:37 +09:00
Kartikaya Gupta 6310cd82fb 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

--HG--
extra : rebase_source : 45e99a0d71a76a15b7fc7a0d498a6149501a722d
2017-09-22 16:39:57 -04:00
Kartikaya Gupta be5b0a23f3 Bug 1402439 - Add some documentation for the compositor animation code. r=pchang
Also removes an unneeded forward-declaration.

MozReview-Commit-ID: 8BPGPtkIBui

--HG--
extra : rebase_source : b3b81e5b5d94b0da67c7a69cd70b3c82a6f1834d
2017-09-22 16:39:53 -04:00