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

11026 Коммитов

Автор SHA1 Сообщение Дата
Chris Peterson 37efe4d0e6 Bug 1428535 - Add missing override specifiers to overridden virtual functions. r=froydnj
MozReview-Commit-ID: DCPTnyBooIe

--HG--
extra : rebase_source : cfec2d96faeb11656d86d760a34e0a04cacddb13
extra : intermediate-source : 6176724d63788b0fe8caa3f91607c2d93dbaa7ec
extra : source : eebbb0600447f9b64aae3bcd47b4be66c02a51ea
2017-11-05 19:37:28 -08:00
Csoregi Natalia 7476b71e00 Merge inbound to mozilla-central r=merge a=merge 2018-01-12 23:59:06 +02:00
Nicolas Silva 4bb86a059e Bug 1405824 - Adjust the default resource update alloc chunk size. r=jrmuizel 2018-01-12 15:11:41 +01:00
Nicolas Silva a98ed42cd6 Bug 1405824 - Recycle a Shmem for IpcResourceUpdateQueue to avoid allocation overhead. r=jrmuizel 2018-01-12 15:11:32 +01:00
Nicolas Silva 36aaaf44e8 Bug 1405824 - Use WebRenderBridgeChild instead of IShmemAllocator in IpcResourceUpdateQueue. r=jrmuizel 2018-01-12 15:11:28 +01:00
862ff35d21 Bug 1405824 - Add a RefCountedShmem type that supports manual cross-process reference counting. r=jrmuizel 2018-01-04 16:23:18 +00:00
Nicolas Silva 43644aaded Bug 1425453 - Move more WebRender api calls into transactions. r=kats 2018-01-12 12:24:07 +01:00
Nicolas Silva 1595da23b6 Bug 1425453 - Move some WebRender api calls into transactions. r=kats 2018-01-12 12:24:03 +01:00
Noemi Erli adbfbaab81 Merge inbound to mozilla-central r=merge a=merge 2018-01-11 23:54:07 +02:00
Milan Sreckovic e3960c6dce Bug 1429602: Rename BaseRect::IsZero to BaseRect::IsZeroArea. Also slip in some corrections to using BaseRect methods instead of direct member access. r=bas.schouten
MozReview-Commit-ID: H3ApaWesbKF

--HG--
extra : rebase_source : c4f73da113a604c14fbf0f1ef4c598d032d68792
2018-01-10 17:57:10 -05:00
vincentliu b059ffc41f Bug 1418999 - Update PipelineId to associate the latest ImageContainer. r=sotaro 2018-01-11 09:45:02 +08:00
Botond Ballo d37ea94bf4 Bug 1423981 - Disable WebRender hit testing in GTests that rely on the results of hit-testing. r=kats
The GTests don't have a way of setting up the relevant state in WebRender
for the hit test to succeed.

MozReview-Commit-ID: IyjK349MN5u

--HG--
extra : rebase_source : 9bc662601b6424fc956107a04f03e7d979bb1d1c
2018-01-09 18:08:58 -05:00
Botond Ballo 17ea0e44ec Bug 1423981 - In the WebRender hit test, fall back to the root APZC if WebRender isn't running. r=kats
MozReview-Commit-ID: CB6yafVfFbG

--HG--
extra : rebase_source : cbde0665fcb2e38e527c150b8d4aa27d3076997c
2018-01-09 18:07:54 -05:00
Dorel Luca a19f5582cc Merge mozilla-central to mozilla-inbound r=merge 2018-01-11 00:05:23 +02:00
Ryan VanderMeulen 88439dc6c5 Backed out changeset 6b52d9870d2d (bug 1417310) for causing bug 1428730 on a CLOSED TREE.
--HG--
extra : rebase_source : 34e51fa8c48b0ea200eb293a5dc6742ccf6b6c49
2018-01-10 11:27:07 -05:00
Morris Tseng ae9a064d8e Bug 1374729 - Use correct format for MacIOSurface. r=nical
MozReview-Commit-ID: 43JBSi5mqT7
2018-01-09 14:12:02 +08:00
Kartikaya Gupta 5a377242ca Bug 1422057 - Remove now-unnecessary ::Equals checks. r=mstange
Part of this is a backout of bug 1421054 which is no longer needed now
that we can assume equivalent clip items have identical pointer values.

MozReview-Commit-ID: BhnLVmVr4TX

--HG--
extra : rebase_source : b9bbb733fc69a0f15cd35d0265589aea257a5285
2018-01-06 09:52:59 -05:00
Kartikaya Gupta a3c7786114 Bug 1422057 - Extend the clipchain of a display item to the ancestor's clipchain if it is a strict superset. r=mstange
See the documentation in the added function for details.

MozReview-Commit-ID: 4R0WaSy0tm2

--HG--
extra : rebase_source : f6bcdafb708f9527afafab54e3ba7e34040054b0
2018-01-06 09:52:58 -05:00
Kartikaya Gupta 9f16273ad3 Bug 1422057 - Extract a local variable. r=mstange
This makes the next patch cleaner.

MozReview-Commit-ID: KjqdiBFFlMM

--HG--
extra : rebase_source : cbcf6b23c494aa6a4718b76f11e9c889c7a1690e
2018-01-06 09:52:58 -05:00
Kartikaya Gupta d763b16932 Bug 1422057 - Avoid caching clips across stacking contexts with non-identity transforms. r=mstange
When a clip is defined in WebRender, any transforms on the containing
stacking contexts are baked into the clip's position. Therefore, trying
to use a clip that was defined inside a transformed stacking context in
other parts of the WR display list doesn't work properly. This was a
latent bug in ScrollingLayersHelper that was previously not exposed
because in these cases Gecko itself creates separate
DisplayItemClipChain items. Now that we are going to deduplicate those
DisplayItemClipChain items, it exposes this latent bug which we need to
fix.

MozReview-Commit-ID: Icd7L1JuY8s

--HG--
extra : rebase_source : 08749125b68b537244a054d00a41f671670d00bb
2018-01-06 09:52:58 -05:00
Kartikaya Gupta 25d94ecc40 Bug 1422057 - Adjust some logging-related things to be more useful. r=mstange
MozReview-Commit-ID: Idheevum5Fd

--HG--
extra : rebase_source : a441cc0b65c763763a4a417cc1d713cd771e467d
2018-01-06 09:52:57 -05:00
Jeff Gilbert 8ab9a9aa21 Bug 1427668 - Assert that no-alpha backbuffers have 0xff alpha. - r=daoshengmu
MozReview-Commit-ID: 5UJdoud0f2C
2018-01-05 15:27:51 -08:00
Jeff Gilbert df8e8db803 Bug 1427668 - Move the webgl backbuffer into webgl. - r=daoshengmu
MozReview-Commit-ID: 2WpG7mfMRQ8
2018-01-05 15:27:30 -08:00
jlogandavison d00bc034b2 Bug 1180865 - Implement pinch locking in APZC. r=botond
Mechanism for restricting pinch zooming when gesture is a two
finger pan. If the pinch span is below a given threshold and the
scroll distance above a given threshold then the zoom level is
maintained to allow for smooth panning with two fingers.

MozReview-Commit-ID: 62Fv0WeplOo

--HG--
extra : rebase_source : 71d7da4c4b4cc3a5adde13ad1a7c1fbf49856c35
2017-11-18 19:48:25 +00:00
Ryan Hunt 20789635c3 Generate webrender_ffi_generated with cbindgen:0.3.3 (bug 1428142, r=nical)
--HG--
extra : rebase_source : 930fc29308f193d9e3b54495508fb6101806bac5
extra : histedit_source : 01d64855b96776b623a248a85ee96febfdc0edfd%2C38c52cb3034b777d66de02ec5041b2d08f4bb272
2018-01-04 12:23:34 -06:00
Andrew Osmond 6328ed7810 Bug 1428013 - Ensure a shared surface's image key is recreated during a tab move. r=sotaro
SourceSurfaceSharedData objects have a WrImageKey associated with each
WebRenderBridgeChild/WebRenderLayerManager pairing. Normally this key is
only regenerated when the surface itself needs to invalidate. However
when a tab is moved (e.g. dragged into a new/different window), the
WebRenderBridgeChild's state will be reset. Any existing keys were
discarded and it has a new namespace. SourceSurfaceSharedData needs to
take this into account, and generate a new key when there is a namespace
mismatch.
2018-01-05 07:02:58 -05:00
Andreea Pavel 569609f11d Merge mozilla-central to mozilla-inbound r=merge a=merge on a CLOSED TREE
--HG--
rename : devtools/client/webconsole/new-console-output/test/mochitest/test-bug_1050691_click_function_to_source.html => devtools/client/webconsole/new-console-output/test/mochitest/test-click-function-to-source.html
rename : devtools/client/webconsole/new-console-output/test/mochitest/test-bug_1050691_click_function_to_source.js => devtools/client/webconsole/new-console-output/test/mochitest/test-click-function-to-source.js
rename : devtools/client/webconsole/new-console-output/test/mochitest/test-bug-603750-websocket.html => devtools/client/webconsole/new-console-output/test/mochitest/test-websocket.html
rename : devtools/client/webconsole/new-console-output/test/mochitest/test-bug-603750-websocket.js => devtools/client/webconsole/new-console-output/test/mochitest/test-websocket.js
rename : taskcluster/docker/android-build/dot-config/pip/pip.conf => taskcluster/docker/recipes/dot-config/pip/pip.conf
rename : toolkit/components/places/tests/bookmarks/test_protectRoots.js => toolkit/components/places/tests/legacy/test_protectRoots.js
extra : rebase_source : 52cfc27d3ad7f31d2cb758802a4e718c08e9ffe2
2018-01-04 23:33:08 +02:00
Ryan Hunt 51163a3c52 Wait for a previous empty transaction to complete before doing another empty transaction (bug 1427089, r=dvander)
--HG--
extra : rebase_source : 26276bc5c2073c86f3c57296ed7b1b5126dc4c18
2018-01-03 16:56:25 -06:00
Ryan Hunt bc65f35f15 Only queue a ContentClient buffer state if it has operations (bug 1427089, r=dvander)
--HG--
extra : rebase_source : 200e59db7a140b0981b1d07ebf6d8ee241336322
2018-01-03 16:55:01 -06:00
Ryan Hunt fff3bf05d6 Create a PaintWorker thread pool and dispatch tiles to it (bug 1425056, r=bas)
This commit adds a paint worker thread pool to PaintThread, and dispatches
tiled paints to it. The thread pool is only created if tiling is enabled,
and its size is set by 'layers.omtp.paint-workers' and defaults to 1. If
-1 is specified, it will be sized to 'max((cpu_cores * 3) / 4, 1)'.

The one tricky part of dispatching tiled paints to a thread pool is the
AsyncEndLayerTransaction message that must execute once all paints are
finished. Previously, this runnable would be queued after all the paints
had been queued, ensuring it would be run after they had all completed.

With a thread pool, there is no guarantee. Instead this commit, uses
a flag on CompositorBridgeChild to signify whether all of the paints
have been queued ('mOutstandingAsyncEndLayerTransaction'), and after
every tiled paint it is examined to see if that paint was the last
paint, and if it is to run AsyncEndLayerTransaction. In addition,
if the async paints complete before we even mark the end of the
layer transaction, we queue it like normal.

The profiler markers are also complicated by using a thread pool.
I don't know of a great way to keep them working as they are per
thread, so for now I've removed them. I may have been the only
one using them anyway.

MozReview-Commit-ID: 5LIJ9GWSfCn

--HG--
extra : rebase_source : 0c26806f337a1b4b1511945f9c72e787b426c5ba
2017-12-08 01:18:05 -06:00
Ryan Hunt 7834357a92 Make a CaptureTiledPaintState for each tile (bug 1425056, r=bas)
This makes it so that each tile of a paint gets a DrawTargetCapture and
its own buffer operations. Once this is done, each CaptureTiledPaintState
will be isolated from each other and able to be done in parallel.

MozReview-Commit-ID: BuBDXgjma4z

--HG--
extra : rebase_source : 6ae3dc439ebc19bcaada9486894d542d138a460d
2017-12-07 23:45:47 -06:00
Botond Ballo 7e42a77d38 Bug 1425686 - Remove scroll input methods telemetry code. r=kats
MozReview-Commit-ID: 1PC4826SMvh

--HG--
extra : rebase_source : 0123b921159864518e92077dd81d5185816e063a
2017-12-20 15:16:18 -05:00
Alexis Beingessner 42b068a0b3 Bug 1406231 - remove the TextLayer class, and all remaining traces of it. r=mattwoodrow
MozReview-Commit-ID: 5fmKfkO6hnO

--HG--
extra : rebase_source : 3572bba4d1aec75af2ef19d52351d7ea2137cc53
2017-12-07 17:13:05 -05:00
Andrew Osmond 89c5ff6db9 Bug 1429413 - Ensure Factory::CreateDataSourceSurface allocation failures are gracefully handled. r=bas 2018-01-11 08:26:42 -05:00
sotaro dc5b2742bf Bug 1429291 - Add gfxCriticalNote to WebRenderBridgeParent::AddExternalImage() r=nical 2018-01-11 21:44:00 +09:00
sotaro 9de30e6422 Bug 1429289 - Remove WebRenderLayerManager::ClearLayer() r=nical 2018-01-11 15:00:16 +09:00
Andrew McCreight ab7fa64021 Bug 1410209, part 4 - Add names to some IPC runnables. r=kanru
This patch requires that each instance of IPC's RunnableFunction is
passed in a name, like the non-IPC RunnableFunction.

MozReview-Commit-ID: Atu1W3Rl66S

--HG--
extra : rebase_source : f932d7597a26a3f0c4246b3a95df638860d3d32d
2017-10-27 13:39:28 -07:00
Milan Sreckovic 099cfc4242 Bug 1423570: Use BaseRect access methods instead of member variables in gfx/ r=bas.schouten
MozReview-Commit-ID: ZGySgc9oP3

--HG--
extra : rebase_source : 23aadc10e9885002290155684b2c495780d979ce
2017-12-19 15:48:39 -05:00
Dorel Luca 8d7dc32e0f Merge mozilla-inbound to mozilla-central r=merge a=merge
--HG--
extra : amend_source : ab6e52d7abe431d1530dac3f5b0b09f7a8c18d62
2017-12-19 12:08:53 +02:00
Kartikaya Gupta ef25b831a8 Bug 1280667 - Followup to use the ok function from the testgroup, which logs the subtest name as well. r=me
DONTBUILD because trivial followup

MozReview-Commit-ID: IP716FV4WP6
2017-12-18 14:33:33 -05:00
Kartikaya Gupta 4f18e92ffb Bug 1334189 - Enable mochitest-plain for linux64-qr. r=jrmuizel
MozReview-Commit-ID: nbcWhDq5de

--HG--
extra : rebase_source : 25e2c2b8b996ae11cd25dee07d9092ba574a9e40
2017-12-13 18:38:39 -05:00
Jean-Yves Avenard c41e0fce24 Bug 1404997 - P5. Fix constness and remove redundant virtual keyword. r=mattwoodrow
Additionally, various C++ code and style cleanup

MozReview-Commit-ID: 7BCtQzFGaOc

--HG--
extra : rebase_source : 77598165c0f6ad9f04c8a09985c79df82f2732e4
2017-11-30 19:03:02 +01:00
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