Commit Graph

28754 Commits

Author SHA1 Message Date
Gurzau Raul
bc6e59d2b4 Merge mozilla-central to autoland. r=merge a=merge CLOSED TREE 2017-12-19 00:00:36 +02:00
Kartikaya Gupta
53d3421ba1 Bug 1401551 - Only check for acceleration after the page is shown and we know the layer managers have been initialized. r=dvander
MozReview-Commit-ID: CA2gQxMIuXn

--HG--
extra : rebase_source : ff859c7c4ba1ba6efd4fad5e7c174e3c8753c958
2017-12-18 12:48:47 -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
Swapnil
fff4bd7c7c Bug 785931 - Removed probes GRADIENT_DURATION, GRADIENT_RETENTION_TIME. r=chutten 2017-12-13 23:08:56 +05:30
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
cku
5a90745685 Bug 1424922 - Prevent calling PDFiumParent::Close twice. r=dvander
We call PDFiumParent::Close twice under certain conditions. Once in
PDFiumProcessParent::Delete, and once in PDFiumProcessParent's dtor. So we may
hit MOZ_ABORT which tell us that we are trying to close a closed channel.

This patch prevents hitting this abort by:
1. Only close the channel in PDFiumProcessParent::Delete, remove another call
   in PDFiumProcessParent's dtor. (Please see the change in
   PDFiumProcessParent.cpp).
2. Remove PDFiumParent::AbortConversion and relative code. We can just use
   PDFiumParent::EndConversion instead. When calling PDFiumParent::Close, we
   actually close the IPC channel *synchronously*, which means there is no need
   to register a callback by PDFiumParent::AbortConversion to receive
   actor-destroy callback.

MozReview-Commit-ID: 9i5j6t54J3h

--HG--
extra : rebase_source : 5f74ebc1ecc29e9983c30ca2dd63e0b49bd24a50
2017-12-13 12:42:59 +08: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
Morris Tseng
49929d098e Bug 1415034 - Add drop-shadow support. r=kats
The long-chain.html failure is tracking by
https://github.com/servo/webrender/issues/2197

MozReview-Commit-ID: FECidSvTQrY
2017-12-13 12:57:01 -06:00
Sebastian Hengst
64b87f0c48 Backed out changeset fd2a2e17aef3 (bug 1415034) for build bustage at layout/painting/nsDisplayList.cpp:9992. r=backout 2017-12-13 19:48:08 +02:00
Morris Tseng
c9fab1d021 Bug 1415034 - Add drop-shadow support. r=kats
The long-chain.html failure is tracking by
https://github.com/servo/webrender/issues/2197

MozReview-Commit-ID: FECidSvTQrY
2017-12-13 10:53:33 -06:00
Cosmin Sabou
b0098afaea Merge mozilla-inbound to mozilla-central. r=merge a=merge 2017-12-13 12:14:29 +02:00
David Anderson
a830f56d14 Fix race condition when mapping a D2D surface while its DrawTarget mutates. (bug 1418348, r=bas)
--HG--
extra : rebase_source : cf16e7f1cea664327b00f01bd42380de672cd9b4
2017-12-12 14:52:54 -06:00
Jeff Muizelaar
b248919e81 Bug 1424532 - Initialize blob image buffer to transparent black instead of opaque white. r=nical
This lets us avoid having to clear the surface before using it. It also
let's us take advantage of rusts fast path for allocating 0 vs.
having to memset it after the allocation.

MozReview-Commit-ID: J05cZAs2dD4

--HG--
extra : rebase_source : e4d1d26fc58650f2b39dfbf80feed3ae46810974
2017-12-09 15:26:01 -05:00
cku
780de75cf4 Bug 1399787 - Part 15. Detect and handle breakage of the IPC channel. r=jwatt
MozReview-Commit-ID: 6VfIbstJ6WN

--HG--
extra : rebase_source : 29c658959dc59234b2d59b89109ce56fb5929ffc
extra : source : 761e68aef93e9f6b2d914c81c638db588dec6fe5
2017-11-06 22:12:31 +08:00
cku
2716e0d75b Bug 1399787 - Part 13. Handle AbortDocument. r=jwatt
While aborting conversion, we need to make sure there is no coversion task
executing in the PDFium process before destroying it.

MozReview-Commit-ID: 3Iqhe8KmYv2

--HG--
extra : rebase_source : 70d9f0b2e2986499e3061823e0c29830aa81d232
extra : source : 753ed705666fd4c55da456fb80604e4552d6bd52
2017-11-05 15:34:54 +08:00
cku
3654a24e84 Bug 1399787 - Part 11.a. Use PrintTargetEMF to print content documents. r=jwatt
Before we introduce PrintTargetEMF, all PrintTargets finish page printing task
before the end of PrintTarget::EndPage(). Unlike others, a page printing
in PrintTargetEMF is done after receiving an async callback from the pdfium
process. So we have both async and sync page printing behavior now. This patch
is trying to make both of them work correctly while priting a content document.

MozReview-Commit-ID: 2PHJToFlvtu

--HG--
extra : rebase_source : 9d2d7cf7330a157a0e5c6a414c75de94ca3fb5a1
extra : source : f61eb00f83acf45511d8448922212dccb12b05aa
2017-11-05 04:36:37 +08:00
cku
6f25ba1878 Bug 1399787 - Part 10. Make PrintTargetEMF use the PDFium process to convert to EMF. r=jwatt
We integrate PrintTargetEMF with the PDFium process to convert PDF into EMF in
this patch.

MozReview-Commit-ID: 5F0setrL94n

--HG--
extra : rebase_source : 1e52adbbe7502ca081c7029a15e4b3f486beb284
extra : source : 28f1671230fa70125e6971c9a287cb0658b89496
2017-11-05 03:06:04 +08:00
cku
b203ed0d71 Bug 1399787 - Part 7. Have PrintTargetEMF launch the PDFium process. r=jwatt
MozReview-Commit-ID: CVfB81ifV2p

--HG--
extra : rebase_source : fab6e106934a657f05538891ebf0c1d3043a2b33
2017-11-29 17:15:31 +08:00
cku
2a5886a1b7 Bug 1399787 - Part 6. Implement the bulk of a new PrintTargetEMF. r=jwatt
A new subclass of PrintTarget.
1. It uses PrintTargetSkPDF to generate one PDF FileDescriptor for one page.
2. In a later patch, it then passes that FD to PDFium process for converting
   a PDF page to EMF contents.

Implementation of integration with PDFium actor is added the subsequent patches.

MozReview-Commit-ID: EcuBJHRW8Wk

--HG--
extra : rebase_source : 838d798161e112952b5e148bbece730159cd49ca
2017-11-05 02:05:25 +08:00
cku
eefa6c8ea6 Bug 1399787 - Part 1. Fix namespacing and include issues hidden by unified compilation. r=jwatt
We will create several new files in the following patches for IPC and a new
subprocess. Several already existed files will be shifted into new build units,
we will meet several compile errors because of it.

This patch fixes those compile error in advance.

MozReview-Commit-ID: 5hd0sNYfBu0

--HG--
extra : rebase_source : d4cca529623586188ffebffd858f53188d12bb50
2017-10-06 22:01:22 +08:00
Kartikaya Gupta
0e9ffe73d2 Bug 1424280 - Update webrender to commit f9bc4a5c263e707e3498bea47d3ec9096cc3d099. r=jrmuizel
This includes the re-generated FFI header.

MozReview-Commit-ID: 6fvUNwu8ueT
2017-12-10 13:48:41 -05:00
Lee Salzman
6ac81c37ea Bug 1418447 - Limit Skia edge builder allocations. r=milan
MozReview-Commit-ID: 1SnxwtoYJJm
2017-11-21 16:55:20 -05: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
0fcc1a37e6 Merge mozilla-central to mozilla-inbound. r=merge a=merge CLOSED TREE 2017-12-09 00:57:59 +02: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
Kartikaya Gupta
a12a7cbac8 Bug 1423346 - Follow-up to regenerate FFI header file. r=me
The autogenerated header should have been updated with the change to bindings.rs
but was missed.

DONTBUILD because this is trivial and not worth wasting cycles over.

MozReview-Commit-ID: 1yf65mnftyW
2017-12-08 11:31:18 -05:00
Ryan Hunt
3a2625f069 Disable OMTP only if edge padding is enabled and tiling is also enabled (bug 1424325, r=bas)
MozReview-Commit-ID: K1B7kTCMDDt

--HG--
extra : rebase_source : 57fdd280117bbbe6d47a93b1fc241e5b7e2b48b6
2017-12-08 14:58:56 -06:00
Kearwood "Kip" Gilbert
8e218cb777 Bug 1384279 - Oculus Rift Core 2.0 Adjustments r=daoshengmu
- Add pref to enable the ovrInit_Invisible flag for Oculus sessions, enabled by default.
- Ensure that the Oculus library is unloaded every time it is uninitialized,
  improving reliability of exiting and returning to WebVR.

MozReview-Commit-ID: 6VCugCJ2dUz

--HG--
extra : rebase_source : c6002bbaab650a86a31f62b63029f13ce2c8f614
2017-12-07 15:27:03 -08:00
Gurzau Raul
15f8898e50 Merge mozilla-central to autoland. r=merge a=merge CLOSED TREE 2017-12-09 00:56:50 +02:00
Cosmin Sabou
c191e25cf5 Merge mozilla-inbound to mozilla-central r=merge a=merge 2017-12-08 11:56:44 +02:00
sotaro
05e371c3e3 Bug 1423795 - Set correct YUVColorSpace for video if possible r=nical 2017-12-08 11:58:53 +09:00
sotaro
22a064e2b7 Bug 1423524 - Fix YUVColorSpace of TSurfaceDescriptorDXGIYCbCr at GLBlitHelper::BlitImage() r=jgilbert 2017-12-08 11:50:42 +09:00
Eric Rahm
07c97a5afe Bug 1423773 - Part 1: Remove usage of nsStringGlue.h. r=glandium
This removes an unnecessary level of indirection by replacing all
nsStringGlue.h instances with just nsString.h.

--HG--
extra : rebase_source : 340989240af4018f3ebfd92826ae11b0cb46d019
2017-12-06 16:52:51 -08: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
Kartikaya Gupta
14a9b3751e Bug 1423203 - Update webrender to commit 22f472f0adb02bd71c472e426e47182f2b218f6d. r=jrmuizel
MozReview-Commit-ID: JJK2le2vpeN

--HG--
extra : rebase_source : 677e4433eddb14fea5e0d9a978f28b57912d21f8
2017-12-08 13:43:37 -05:00
Sylvestre Ledru
a9961096c0 Bug 1394734 - Simplify various corner cases r=glandium
MozReview-Commit-ID: 4s4JdXZPvmv

--HG--
extra : rebase_source : c8f663c99442d41db5f81ac5fe1aa1f47fd5ed82
2017-12-07 22:10:19 +01:00
Sylvestre Ledru
4591d82b23 Bug 1394734 - Replace CONFIG['CLANG*'] by CONFIG['CC_TYPE'] r=glandium
MozReview-Commit-ID: HbF5oT5HW6f

--HG--
extra : rebase_source : eca479b6ae4bff7f600d1cdb39e11ac2057e4e79
2017-12-07 22:09:38 +01: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
79d933ec34 Backed out 22 changesets (bug 1399787) for shutdown leaks on windows 7 debug tc-M without e10s r=backout on a CLOSED TREE
Backed out changeset 463d676df5da (bug 1399787)
Backed out changeset fc9776a2605d (bug 1399787)
Backed out changeset 2e91a90dfbc3 (bug 1399787)
Backed out changeset e82ab72f71ee (bug 1399787)
Backed out changeset d7fef200e8b9 (bug 1399787)
Backed out changeset a7d70f7f3335 (bug 1399787)
Backed out changeset 2800f9d20d96 (bug 1399787)
Backed out changeset 9dfa404abf9d (bug 1399787)
Backed out changeset 09b3c172a01e (bug 1399787)
Backed out changeset f9fd3e750636 (bug 1399787)
Backed out changeset 01284c55bf8a (bug 1399787)
Backed out changeset c2ab1b454283 (bug 1399787)
Backed out changeset e7bfa51404c5 (bug 1399787)
Backed out changeset 3fd2a734f887 (bug 1399787)
Backed out changeset ef21f295db3f (bug 1399787)
Backed out changeset c186893ce0fc (bug 1399787)
Backed out changeset 323da3bddaaa (bug 1399787)
Backed out changeset 3b89f189edff (bug 1399787)
Backed out changeset a47bd86c35ee (bug 1399787)
Backed out changeset 558526301a4c (bug 1399787)
Backed out changeset baa99fb50ba9 (bug 1399787)
Backed out changeset 6d82ed0ba805 (bug 1399787)
2017-12-08 13:09:56 +02: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
Brindusan Cristian
5b9ee89503 Merge mozilla-central to autoland a=merge r=merge on a CLOSED TREE 2017-12-08 12:06:24 +02:00
cku
98fa10feb8 Bug 1399787 - Part 15. Detect and handle breakage of the IPC channel. r=jwatt
MozReview-Commit-ID: 6VfIbstJ6WN

--HG--
extra : rebase_source : a9cf90c846f9f7d054317fee7bd16980862ffcfc
extra : source : 761e68aef93e9f6b2d914c81c638db588dec6fe5
2017-11-06 22:12:31 +08:00
cku
73e02d24cc Bug 1399787 - Part 13. Handle AbortDocument. r=jwatt
While aborting conversion, we need to make sure there is no coversion task
executing in the PDFium process before destroying it.

MozReview-Commit-ID: 3Iqhe8KmYv2

--HG--
extra : rebase_source : c4597de6c13d35024090ec1e851ad1db5b790c7a
extra : source : 753ed705666fd4c55da456fb80604e4552d6bd52
2017-11-05 15:34:54 +08:00
cku
8d5d5ad437 Bug 1399787 - Part 11.a. Use PrintTargetEMF to print content documents. r=jwatt
Before we introduce PrintTargetEMF, all PrintTargets finish page printing task
before the end of PrintTarget::EndPage(). Unlike others, a page printing
in PrintTargetEMF is done after receiving an async callback from the pdfium
process. So we have both async and sync page printing behavior now. This patch
is trying to make both of them work correctly while priting a content document.

MozReview-Commit-ID: 2PHJToFlvtu

--HG--
extra : rebase_source : ee691497bd439c6505f1f92898a667a9e972fff3
extra : source : f61eb00f83acf45511d8448922212dccb12b05aa
2017-11-05 04:36:37 +08:00
cku
0ac62e2331 Bug 1399787 - Part 10. Make PrintTargetEMF use the PDFium process to convert to EMF. r=jwatt
We integrate PrintTargetEMF with the PDFium process to convert PDF into EMF in
this patch.

MozReview-Commit-ID: 5F0setrL94n

--HG--
extra : rebase_source : 3dfc6ce64f4cdc7d5d7e95d1f064d956af909a26
extra : source : 28f1671230fa70125e6971c9a287cb0658b89496
2017-11-05 03:06:04 +08:00