Botond Ballo
7fc997f800
Bug 1424591 - Only exclude a perspective transform from an APZC ancestor transform if it's on the path from layers that scroll together to their common ancestor. r=kats
...
MozReview-Commit-ID: jITf4ovz0X
--HG--
extra : rebase_source : 80af9847899ce607e81af149c48b6d0e6d529032
extra : source : 278cae09d66d198ba9065ded322e4a765051a2f9
2017-12-14 14:55:27 -05:00
Jamie Nicol
e18bbe2c58
Bug 1417310 - Don't attempt to create buffers of unreasonable sizes. r=bas
...
Currently ContentClient will attempt to create a buffer of any size
that Layers requires it to. If that fails it will then warn if the
requested buffer was an unreasonable size. This change makes it so
that we check whether the size is reasonable first, and do not attempt
to create the buffer if it is unreasonable.
Previously the operating system would have managed to allocate some
buffers that we deem unreasonable, but at the cost of the system
becoming unresponsive. Now, some large buffers which would previously
have been created won't be, but the chances of the system becoming
unresponsive should decrease.
Ideally Layers wouldn't request buffers of these sizes in the first
place - there are measures in place to try to prevent it, and more work
is certainly required. However, this will act as a last ditch defence.
MozReview-Commit-ID: 7WCqEwkmViy
2017-12-13 15:49:41 -06:00
Andreea Pavel
5ba2665757
Merge inbound to mozilla-central r=merge a=merge
2017-12-09 22:21:17 +02:00
Daosheng Mu
7435a52362
Bug 1420940 - Part 2: Skip the VR task when running at other threads instead of canceling the task. r=dvander
...
MozReview-Commit-ID: 3axm3h7yMij
2017-12-09 14:48:56 +08:00
Gurzau Raul
91d3bc0100
Merge inbound to mozilla-central r=merge a=merge
2017-12-09 00:36:15 +02:00
Ryan Hunt
52aacbca78
Don't append to mDrawTargetsToFlush in Tiled OMTP (bug 1424172, r=bas)
...
MozReview-Commit-ID: GhlE3DXwKJi
--HG--
extra : rebase_source : 41a178a2cdce32e954841024f1075ee33081f475
extra : source : 0863e916742e8f4986db3b38b75b0b6ee2099d8f
2017-12-08 01:31:16 -06:00
Gurzau Raul
15f8898e50
Merge mozilla-central to autoland. r=merge a=merge CLOSED TREE
2017-12-09 00:56:50 +02:00
sotaro
05e371c3e3
Bug 1423795 - Set correct YUVColorSpace for video if possible r=nical
2017-12-08 11:58:53 +09:00
Kartikaya Gupta
c4f437fde7
Bug 1423982 - Only do the WR-based hit-test if WR is enabled. r=botond
...
MozReview-Commit-ID: DfkiZnrZP0I
--HG--
extra : rebase_source : 21a1d0ba8a6618c72395113e88b2988502eda33f
2017-12-07 15:04:31 -05:00
Sylvestre Ledru
5de63ef061
Bug 1394734 - Replace CONFIG['MSVC'] by CONFIG['CC_TYPE'] r=glandium
...
MozReview-Commit-ID: 5orfnoude7h
--HG--
extra : rebase_source : 1ed9a6b56e1d27221a07624767a7fb0e6147117f
2017-12-08 13:46:13 +01:00
Sylvestre Ledru
9bfe27d903
Bug 1394734 - Replace CONFIG['GNU_C*'] by CONFIG['CC_TYPE'] r=glandium
...
MozReview-Commit-ID: 7duJk2gSd4m
--HG--
extra : rebase_source : 7312fe276e561e8c034a5f6749774ae812727f9c
2017-12-07 22:09:15 +01:00
Cosmin Sabou
9937354d94
Backed out changeset 497efe3a096b (bug 1406231) for windows build bustages on build\build\src\obj-firefox\dist\include\mozilla/layers/ScrollingLayersHelper.h(48) r=backout on a CLOSED TREE
2017-12-08 13:04:05 +02:00
Alexis Beingessner
90d0f66f33
Bug 1406231 - remove the TextLayer class, and all remaining traces of it. r=mattwoodrow
...
MozReview-Commit-ID: 5fmKfkO6hnO
--HG--
extra : rebase_source : 4749bff0a8d799f7a81d9f6e32e40e14b9f24191
2017-12-07 17:13:05 -05:00
Ryan Hunt
3405de8af3
Move buffer clearing after all copies in SingleTiledContentClient (bug 1422392, r=nical)
...
CaptureTiledPaintState will execute all buffer copy operations first,
followed by all buffer clears. This works for MultiTiledContentClient
as it does those operations in that order. SingleTiledContentClient
can do copies, followed by a clear, followed by some copies.
If the clears are hoisted after the copies, graphical corruption can
happen. I think the easiest way to fix this is to move the clear
after the copies and sub out the region that has been successfully
copied.
MozReview-Commit-ID: EfMVmCzyy8w
--HG--
extra : rebase_source : aa9dfa0e38b0173100da99d7111a8c412c628c60
2017-12-06 12:28:37 -06:00
Ryan Hunt
919893286a
Preserve front buffer texture clients for copies (bug 1422392, r=nical)
...
We collect the back buffer texture clients to preserve while
async painting is happening, but if we do a buffer copy we
should preserve front buffer clients as well.
MozReview-Commit-ID: 9KbXkqjm34v
--HG--
extra : rebase_source : fce09b7b6ab094b896acc9648bfa698752f0feac
2017-12-05 16:32:47 -05:00
Ryan Hunt
14e019993c
Refactor NotifyBeginAsyncPaint logic to not be repeated (bug 1422392, r=dvander)
...
MozReview-Commit-ID: B8BZCxYErjv
--HG--
extra : rebase_source : 17f022a10b484f5ae9ac6de9d376075c894f7226
2017-12-04 21:23:50 -05:00
Ryan Hunt
98e347bbf9
Implement buffer copying and clearing on the paint thread for single tiled layers (bug 1422392, r=nical)
...
MozReview-Commit-ID: d6XPUYCz18
--HG--
extra : rebase_source : dc59658bb31345275ac904cc94576588999c929f
2017-12-01 16:35:30 -05:00
Ryan Hunt
3da0b76996
Implement record and replay painting for single tiled layers (bug 1422392, r=nical)
...
MozReview-Commit-ID: 5MfnVZv2E12
--HG--
extra : rebase_source : b2af9d7976f09178c4c74ed7254d5c4ab323e5bd
2017-12-01 15:51:19 -05:00
Ryan Hunt
c9bf8e0aa9
Implement buffer copying and clearing on the paint thread for multi tiled layers (bug 1422392, r=nical)
...
This implements recording of buffer preparing commands for MultiTiledContentClient
and replaying it on the paint thread.
The order of locking for tiling is important and for buffer copying the front
buffer needs to be attempted to be locked before the back buffer. This means
we can't do this on the paint thread like we do for ContentClient, so instead
I've changed the OpenMode::ASYNC to be a flag that can be applied to
OpenMode::OPEN_READ as well as WRITE, as it looks like we can apply the same
logic for READ as WRITE.
MozReview-Commit-ID: ED6eeYx8dUV
--HG--
extra : rebase_source : dd8d14f469f2a7d4f43c0a41373a6848f57f4b39
2017-11-29 19:00:50 -05:00
Ryan Hunt
8ec4f38aa3
Implement record and replay painting for multi tiled layers (bug 1422392, r=nical)
...
This commit modifies MultiTiledContentClient to record drawing commands and
replay them to the tiled draw target on the paint thread when OMTP is enabled.
MozReview-Commit-ID: 22zL3c4NZvu
--HG--
extra : rebase_source : f8256b678da683da76edc02769dd4d0ebe234e09
2017-11-21 19:12:14 -05:00
sotaro
2063225117
Bug 1423806 - Enable IMFYCbCrImage with WebRender r=mattwoodrow
2017-12-07 22:15:34 +09:00
sotaro
b5f9b3b90d
Bug 1423807 - Enable D3D11TextureData in TextureClient::CreateFromSurface() with WebRender r=nical
2017-12-07 20:17:07 +09:00
Alexis Beingessner
6917337349
Bug 1423346 - make wr use better texture upload strategies. r=jrmuizel
...
If ANGLE is used, we favour Immediate texture upload. Otherwise we
favour Dynamic. Previously, we were using the default of Stream.
MozReview-Commit-ID: LXDKxnmjp6O
2017-12-06 15:07:16 -05:00
James Willcox
504cd255d1
Bug 1421313 - Remove TexturePoolOGL r=jgilbert
...
MozReview-Commit-ID: ADjiygVoHg3
2017-12-06 10:13:34 -06:00
James Willcox
4cf9ce3ec9
Back out bug 1421313 because of build breakage on a CLOSED TREE r=me
...
MozReview-Commit-ID: HhNuCAUDU59
2017-12-06 09:53:13 -06:00
James Willcox
06d689e11c
Bug 1421313 - Remove TexturePoolOGL r=nical
...
MozReview-Commit-ID: ADjiygVoHg3
2017-12-06 09:41:08 -06:00
Nicolas Silva
02d0cd83e9
Bug 1419255 - Add a Proxy KnowsCompositor implementation that can be used off the main thread. r=sotaro
2017-12-05 11:56:20 +01:00
shindli
2e08acdf88
Merge inbound to mozilla-central r=merge a=merge
2017-12-05 11:58:51 +02:00
Bogdan Tara
28f65f2044
Merge mozilla-central to inbound. r=merge a=merge on a CLOSED TREE
2017-12-04 22:47:53 +02:00
Jeff Muizelaar
644c528356
Bug 1422466. Drop a copy from TextDrawTarget::FillGlyphs. r=Gankro
...
We try hard to ensure that the glyph buffers are of the same type.
2017-12-04 13:01:55 -05:00
Bas Schouten
d3659cd140
Bug 1422169: Have the D3D11TextureData destructor defer releasing the last reference to its DrawTarget to the paint thread. r=dvander
...
MozReview-Commit-ID: Dmzu5Nnpx9g
2017-12-01 17:04:46 +01:00
Daosheng Mu
ceb0da875a
Bug 1420940 - Separate dispatching VR events to an individual scope to avoid deadlock. r=dvander, r=kip
...
MozReview-Commit-ID: 7tpzUDNoShw
2017-12-03 13:19:33 -05:00
Andrew Osmond
cc5c98e1d3
Bug 1420648 - Ensure WebRender computes the snapped image decode size the same as the fallback path. r=tnikkel
2017-12-01 07:18:53 -05:00
Andrew Osmond
a3a7832363
Bug 1419912 - Part 1. Add/use surface invalidation counter to track changes in SourceSurfaceSharedData. r=me
2017-12-01 06:59:21 -05:00
Gurzau Raul
1c0a590e09
Merge mozilla-central to mozilla-inbound. r=merge a=merge CLOSED TREE
2017-12-01 13:00:44 +02:00
Gurzau Raul
0b613c3887
Merge inbound to mozilla-central r=merge a=merge
2017-12-01 12:56:06 +02:00
Sebastian Hengst
5e55af8f82
merge mozilla-central to autoland. r=merge a=merge
2017-12-01 01:30:16 +02:00
Sebastian Hengst
7cbd9c3050
merge mozilla-inbound to mozilla-central. r=merge a=merge
2017-12-01 01:25:54 +02:00
Brindusan Cristian
6a74eec204
Merge inbound to mozilla-central r=merge a=merge
2017-12-01 00:22:25 +02:00
Jeff Muizelaar
fd288de282
Bug 1379680. Move the displaylist ByteBuf into a Vec instead of copying. r=kats
...
This eliminates a copy of the displaylist on the compositor thread.
2017-11-30 15:12:14 -05:00
sotaro
78b2129696
Bug 1416533 - Skip to generate frame if there is no update r=nical,kats
2017-11-30 21:38:47 +09:00
sotaro
5988aed34a
Bug 1421939 - Fix RenderDXGIYCbCrTextureHostOGL::GetSize() r=nical
2017-11-30 21:30:35 +09:00
Jeff Muizelaar
f303d56ec5
Bug 1406507 - Use an ipc::ByteBuf instead of ByteBuffer to send the DisplayList instead of a ByteBuffer. r=kats
...
DONTBUILD because this is a backout/reland to make sure the code is associated
with the right bug.
MozReview-Commit-ID: GPQABR9ONld
2017-11-30 07:16:21 -05:00
Kartikaya Gupta
29e86552c5
Bug 1379680 - Revert changes that were accidentally landed as part the wrong bug. r=me
...
MozReview-Commit-ID: HUreLLz3uKI
2017-11-30 07:12:18 -05:00
shindli
c040137399
Merge mozilla-inbound to mozilla-central. r=merge a=merge
2017-11-30 12:01:52 +02:00
Bogdan Tara
df97c78dbf
Merge mozilla-central to inbound. r=merge a=merge on a CLOSED TREE
2017-11-30 01:10:06 +02:00
Bogdan Tara
d8635b15e4
Merge inbound to mozilla-central r=merge a=merge on a CLOSED TREE
2017-11-30 00:41:09 +02:00
Jeff Muizelaar
fba16646be
Bug 1379680. Add an ipc ByteBuf type. r=billm
...
This adds a ByteBuf type that can be sent by taking
ownership of its buffer instead of having to make a copy.
2017-11-29 10:11:15 -05:00
Csoregi Natalia
8a2bcaea6d
Backed out 5 changesets (bug 1420674) for Build Bustage. r=backout on a CLOSED TREE
...
Backed out changeset 89e84473d524 (bug 1420674)
Backed out changeset 22e1aa958dd2 (bug 1420674)
Backed out changeset 7f416f3bbacd (bug 1420674)
Backed out changeset 5af1da25ee57 (bug 1420674)
Backed out changeset eeb25dc98529 (bug 1420674)
2017-11-29 06:03:31 +02:00
David Anderson
ce6acee07d
Add high-res tiling support to Advanced Layers. (bug 1420674 part 5, r=mattwoodrow)
2017-11-28 18:34:59 -08:00