Commit Graph

605305 Commits

Author SHA1 Message Date
Doug Thayer
ac1648320e Bug 1265824 - Wait on texture handles with IPC r=jld,mattwoodrow
There's a lot going on here, but it all fits under the idea of
being able to communicate about texture locking statuses
without spinning on IsReadLocked. This is a bit of a trade -
we could just always allocate/grab a texture from the pool,
which would put a smaller cap on the amount of time we can
possibly spend when a texture is locked. However, this eats
up more CPU and memory than waiting on the textures to unlock,
and could take longer, especially if there were a large number
of textures which we just need to wait for for a short amount
of time. In any case, we very rarely hit the case where we
actually need to wait on the sync IPC to the compositor - most
of the time the textures are already unlocked.

There is also an async IPC call in here, which we make before
flushing async paints. This just causes the compositor to
check whether the GPU is done with its textures or not and
unlock them if it is. This helps us avoid the case where we
take a long time painting asynchronously, turn IPC back on at
the end of that, and then have to wait for the compositor
to to get into TiledLayerBufferComposite::UseTiles before
getting a response. Specifically this eliminates several talos
regressions which use ASAP mode.

Lastly, there seem to be no other cases of static Monitors
being used. This seems like it falls under similar use cases
as StaticMutexes, so I added it in. I can move it into its own
file if we think it might be generally useful in the future.

MozReview-Commit-ID: IYQLwUqMxg2

--HG--
extra : rebase_source : 67f6fee8b89933561a48e6f7f531b6969893a574
2018-05-05 15:46:26 -07:00
Doug Thayer
f0121c2b2b Bug 1265824 - Add StaticMonitor r=froydnj
For the IPC work monitoring when textures become unlocked, we
need a Monitor equivalent of StaticMutex - this implements that.

MozReview-Commit-ID: IceQNeqVQ8f

--HG--
extra : rebase_source : b05f8fe9b87e47e57ef8450c91edfdd9244d3287
2018-06-29 15:27:22 -07:00
Doug Thayer
3f1e7393cc Bug 1265824 - handle the texture uploading and readLock related things for direct mapping texture source r=mattwoodrow
MozReview-Commit-ID: BC065h1Ac6k

--HG--
extra : rebase_source : f8586639a5c5c82a77e3b1d2fc1ed0eb196873f9
2018-05-02 18:31:31 -07:00
Doug Thayer
75e14567bc Bug 1265824 - implement CreateDataTextureSourceAroundYCbCr() and CreateDataTextureSourceAround() for CompositorOGL r=mattwoodrow
This patch will use DirectMapTextureSource to wrap the DataSourceSurface data for gpu access.
That could improve the texture uploading performance.

MozReview-Commit-ID: CGPFcCsR1RY

--HG--
extra : rebase_source : efa31a061ed61509d60acd79e2db485312a28e0a
2018-05-02 18:31:08 -07:00
Doug Thayer
1cfb8ec041 Bug 1265824 - Pass the texture direct mapping info to all texture creating functions r=mattwoodrow
The client side can't get the GL context in CompositorOGL. So, it can't know
the texture direct mapping capability directly. This patch adds the texture
direct mapping info in TextureFactoryIdentifier. Then, the client side could
get the info form the TextureFactoryIdentifier.

MozReview-Commit-ID: KEazDVg0p9Y

--HG--
extra : rebase_source : 425159494772431283138bbaa4574c6201a2bc59
2018-05-02 18:20:25 -07:00
Doug Thayer
40c168f2fd Bug 1265824 - Add a new texture source type "DirectMapTextureSource" r=mattwoodrow
The DirectMapTextureSource could let the compositor to read the buffer directly.
That could get rid of some memory copy operations during texture uploading.

MozReview-Commit-ID: CHhoR96P7VG

--HG--
extra : rebase_source : 65c167644096a1b72fe5dfbb55837842f41377bb
2018-05-02 18:20:10 -07:00
Doug Thayer
14d6b57804 Bug 1265824 - Remove the unsed member in GLTextureSource r=mattwoodrow
The "mExternallyOwned" is used for gralloc buffer. We don't use the gralloc buffer now.

MozReview-Commit-ID: 7Gurpa3kdp0

--HG--
extra : rebase_source : 5c0bf4facba5ed2cc8772df78bb702965e77a4ab
2018-05-02 18:19:54 -07:00
Byron Campen [:bwc]
721e2034d6 Bug 1448846: Ignore POLLERR on UDP sockets. r=dragana
MozReview-Commit-ID: 1FxhHbH8Neg

--HG--
extra : rebase_source : e50fbde7c3d52141dfb29a9805a00cec9be633ca
2018-07-02 11:52:02 -05:00
Robert Bartlensky
06d2e947d6 Bug 1476313: Fix DEAD_STORE errors in xpcom/reflect/xptcall/md/unix/*. r=mccr8
MozReview-Commit-ID: 29GpsKzXQhq

--HG--
extra : rebase_source : 25e5028f0aadb3cbf8f3e50e3b3af1cf8dc827f2
2018-07-19 11:36:42 +01:00
Jan Horak
cb8d3c752f Bug 1463809 - Don't lookup mimeinfo of application/octet-stream; r=Paolo
Mimeinfo returned for the generic application/octet-stream content
type is usually irrelevant to the file extension, getting mimeinfo
from extension itself is more reliable.

Also prefer file extension over application/octet-stream content tyope
when lookup in extras.

MozReview-Commit-ID: A9Q2NFAwQ7b

--HG--
extra : rebase_source : 4206cbfd898fb12b2415ef751a74d1bdeee26a2d
2018-07-19 15:46:26 +02:00
Tim Nguyen
d100a75344 Bug 1477290 - Disable flashing with storage inspector endless scrolling. r=miker
MozReview-Commit-ID: GfRaId6B50I

--HG--
extra : rebase_source : 1198866fc88203251dc2914aaab945f1430c4cdd
2018-07-20 16:36:59 +01:00
Cosmin Sabou
f58174c712 Backed out changeset f840add2cdd4 (bug 1474163) for causing mochitest frequent leaks.
--HG--
rename : browser/modules/LightweightThemeChildHelper.jsm => browser/modules/LightweightThemeChildListener.jsm
2018-07-23 16:29:05 +03:00
Emilio Cobos Álvarez
ed8949d457 Bug 1477678 - Remove useless Compositor::SetDispAcquireFence. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D2295

--HG--
extra : moz-landing-system : lando
2018-07-23 13:06:24 +00:00
Martin Stransky
ce20ee9233 Bug 1475193 - Use nsWindow::IsComposited() where possible, r=jhorak
MozReview-Commit-ID: E28fUnRFWaY

--HG--
extra : rebase_source : e9b2d5b1f159479299978353e6521882b6021a8e
2018-07-12 11:51:38 +02:00
Dão Gottwald
5239dfe9cc Bug 1474586 - Change 'Copy Email Address' access key to A to match 'Copy Link Location'. r=flod
MozReview-Commit-ID: FrN1bswCUlE

--HG--
extra : rebase_source : 6768f78d9d597ce0de7b8077588606730e7e64c5
2018-07-23 14:35:44 +02:00
Cosmin Sabou
f3e8c47ce5 Backed out changeset 469f678d1f15 for xpcshell failures on test_remote_settings_poll.js. CLOSED TREE 2018-07-23 15:26:37 +03:00
Arnaud Bienner
c0836367e5 Bug 1472324: Update Worklet: s/import/addModule. r=baku,karlt
MozReview-Commit-ID: 4HNBeUyzgJS

--HG--
extra : rebase_source : 64be88359f1ef0edc8ef2b7c893a9a2ae53a7d04
2018-07-10 14:24:14 +02:00
Tim Nguyen
a874fa36fa Bug 1474163 - Make use of sharedData for content theme data. r=mconley
MozReview-Commit-ID: Etz8huX2YCt

--HG--
rename : browser/modules/LightweightThemeChildListener.jsm => browser/modules/LightweightThemeChildHelper.jsm
extra : rebase_source : bed95f7e99c88d22821b55b4e4b7b4ba15dcbe19
2018-07-13 16:21:34 +01:00
ffxbld
176487d89b No Bug, mozilla-central repo-update HSTS HPKP remote-settings - a=repo-update r=mtabara
Differential Revision: https://phabricator.services.mozilla.com/D2292

--HG--
extra : moz-landing-system : lando
2018-07-23 10:10:21 +00:00
Cosmin Sabou
8592119814 Backed out changeset f19f8d717c6b (bug 1447932) for build bustages on test_fastermake. CLOSED TREE 2018-07-23 14:41:16 +03:00
Valentin Gosu
7937c7c4cc Bug 1476928 - Remove nsIURI.CloneIgnoringRef and nsIURI.CloneWithNewRef r=JuniorHsu
The patch introduces NS_GetURIWithNewRef and NS_GetURIWithNewRef which perform the same function.

Differential Revision: https://phabricator.services.mozilla.com/D2239

--HG--
extra : moz-landing-system : lando
2018-07-23 11:28:47 +00:00
Ted Mielczarek
842fbbb159 bug 1447932 - Add support for localized files to fastermake backend. r=mshal
Co-authored by Nick Alexander <nalexander@mozilla.com>

This patch adds support to the fastermake backend for taking localized files
from a locale directory as specified by the combination of --with-l10n-base
and --enable-ui-locale. This allows artifact builds to be built localized
with a different locale.

MozReview-Commit-ID: 1bD9Gy0ewJ2

--HG--
extra : rebase_source : 9f457c8565ff0297589533ab91b44c16edc86be3
2018-03-21 16:47:02 -04:00
Razvan Caliman
c10134abfd Bug 1477261 - (Part 2) Replace integration test with unit test for font-size conversion. r=pbro
MozReview-Commit-ID: AEzbsqGlu9K

--HG--
extra : rebase_source : 818a780ef84e3bb5e31ccaad2cc64fe478e99b55
2018-07-20 14:42:17 +02:00
Razvan Caliman
b86a7b6ba3 Bug 1477261 - (Part 1) rename browser_fontinspector.html to doc_browser_fontinspector.html. r=pbro
MozReview-Commit-ID: AIL1fOrJ6Te

--HG--
rename : devtools/client/inspector/fonts/test/browser_fontinspector.html => devtools/client/inspector/fonts/test/doc_browser_fontinspector.html
extra : rebase_source : 1befddc8bfe90c9be4771c4f810adf1efee11232
2018-07-20 14:40:30 +02:00
Masayuki Nakano
905e9bda47 Bug 1476906 - Change nsIHTMLEditor::ReplaceHeadContentsWithHTML() to a non-virtual method of HTMLEditor r=m_kato
nsIHTMLEditor::ReplaceHeadContentsWithHTML() is used only by HTMLEditor
internally. So, it shouldn't be an nsIHTMLEditor's method.  This patch
changes it as a non-virtual method of HTMLEditor and rename it to
ReplaceHeadContentsWithSourceWithTransaction() for consistency with other
methods.

MozReview-Commit-ID: GT3maKEbZuP

--HG--
extra : rebase_source : 2dc8c682f0dd82d3fc9032fbf5195de121975c32
2018-07-19 21:31:19 +09:00
Cosmin Sabou
2dbbfa9843 Merge mozilla-central to autoland. a=merge 2018-07-23 12:32:31 +03:00
Cosmin Sabou
e5eb80645b Merge mozilla-inbound to mozilla-central. a=merge 2018-07-23 12:30:50 +03:00
Sebastian Hengst
4d9d456ce8 Bug 1464903 - Add metadata to file bugs for toolkit/recordreplay into Core::Web Replay. r=test-fix 2018-07-23 11:06:50 +03:00
Sylvestre Ledru
c86ee15013 Bug 1477540 - Use RemoveLastElement instead of PopLastElement r=bhackett
The later is only interesting when the returned value is used

MozReview-Commit-ID: 8CF5HSkcttf

--HG--
extra : rebase_source : deb1761dd017108c9dba1d831a996baf54c7f425
2018-07-22 16:23:57 +02:00
Xidorn Quan
b2d36bc68a Bug 1403425 - Pass aListID to nsContainerFrame from nsColumnSetFrame::SetInitialChildList. r=dholbert
MozReview-Commit-ID: BPxvAMx9v4K

--HG--
extra : rebase_source : 33f31c4ade7f2509611bd10985160e7a1ddc9eed
2018-07-23 10:32:03 +10:00
Makoto Kato
b870a3fcf3 Bug 358033 - Part 2. Add test. r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D2260

--HG--
extra : moz-landing-system : lando
2018-07-23 02:46:24 +00:00
Makoto Kato
414c3e8695 Bug 358033 - Part 1. Restore direction of Selection. r=masayuki
SelectionState doesn't save and restore current selection's direction.  So the
direction of selection is always default after undoing.

So we should restore direction of selection.

Differential Revision: https://phabricator.services.mozilla.com/D2259

--HG--
extra : moz-landing-system : lando
2018-07-23 02:44:42 +00:00
Hiroyuki Ikezoe
329ff338de Bug 1444816 - Use assert_greater_than instead of assert_true for time comparison. r=birtles
It would be easier to understand what happens.

MozReview-Commit-ID: 5lidrbNBzFm

--HG--
extra : rebase_source : d4f1e75928cee449f98ee8224b8740b2ba0f9898
2018-07-23 11:34:51 +09:00
Xidorn Quan
04cfb39e53 Bug 1477599 - Move StyloParsingBench helper functions into #if as well. r=emilio
MozReview-Commit-ID: GhcdIdX6IBk

--HG--
extra : rebase_source : a6a8870f2605f2fa87a37d775f1250a71797e769
2018-07-23 09:51:41 +10:00
Julian Descottes
3554bddce5 Bug 1476908 - Show keyframes for elements in shadow dom;r=bgrins
MozReview-Commit-ID: 6YJUnReL3PS

--HG--
extra : rebase_source : e1f663dd2044fb642b0606ba2dc153b4f8e43172
2018-07-20 17:48:50 +02:00
Stars
77274c3ef2 Bug 1466428 - BinSource-auto.cpp: argument name 'YYY' in comment does not match parameter name 'XXX'. Auto generated by rust generator and the yaml file, these comments were pointing to old parameters which have now been updated to have the correct generated source file. r=arai
MozReview-Commit-ID: CjNIY85s5K9

--HG--
extra : rebase_source : b3b8aa6d7ccf2e56b532d464789166653409f638
2018-07-06 08:40:50 -06:00
Xidorn Quan
afa56fd579 Bug 1476475 - Use -W4 for certverifier with clang-cl. r=froydnj
MozReview-Commit-ID: 9OVJ2CFO0Qb

--HG--
extra : rebase_source : 3f0b89c6e8f54e34afa19c74a0574a258912c940
2018-07-20 16:34:56 +10:00
Andreea Pavel
05a5aa12d6 Merge mozilla-inbound to mozilla-central. a=merge 2018-07-23 00:46:21 +03:00
Tom Schuster
d385a93dfb Bug 1477477 - Add preference for autoplaying muted media. r=cpearce
--HG--
extra : rebase_source : 61589dbd15331d48527c3513e832c6d9e0117941
2018-07-22 15:21:48 +02:00
Christoph Kerschbaumer
49eaf535cb Bug 1474537 - CSP 'self' should translate to 'self' and not be resolved to actual self URI. r=dveditz 2018-07-22 18:08:17 +02:00
Tyson Smith
d5cf5b86d8 Bug 1472027: Crashtest. r=emilio
MozReview-Commit-ID: E6MUx6DNLNz
2018-07-22 15:46:25 +02:00
Emilio Cobos Álvarez
7bb54a7629 Bug 1477544: Add a null-check to handle unlinking properly. r=me
MozReview-Commit-ID: 8K9h6IJpF1K
2018-07-22 15:36:13 +02:00
Bogdan Tara
ad36eff63e Backed out 2 changesets (bug 1473690) for jsat/test_content_integration.html failures CLOSED TREE
Backed out changeset b41a71c9e2e0 (bug 1473690)
Backed out changeset 6ca2392ff3f9 (bug 1473690)
2018-07-22 06:55:41 +03:00
Yura Zenevich
bb4b5de6ed Bug 1473690 - add selectable ingegration tests. r=eeejay, jchen
MozReview-Commit-ID: 9ka7CjOJcew
2018-07-21 22:54:19 -04:00
Yura Zenevich
f970fc3e21 Bug 1473690 - add integration tests for checkboxes and associated events/states. r=eeejay, jchen
MozReview-Commit-ID: DIPa582EyTr
2018-07-21 22:54:12 -04:00
Brian Hackett
019a5b20c2 Bug 1465470 Part 6 - Avoid recording various JS atomics, r=jandem.
--HG--
extra : rebase_source : 6a01f4e7c76b889ae6d39cd242c063fce3182f53
2018-07-21 14:37:45 +00:00
Brian Hackett
846c8527a6 Bug 1465452 Part 14 - Record refcount changes for runnables, r=froydnj.
--HG--
extra : rebase_source : 34a8d17d8a3f894b47c20f5c07e48e97c79c12a7
2018-07-21 14:36:56 +00:00
Brian Hackett
54c917ef76 Bug 1465452 Part 13 - Avoid recording some timer thread state, r=froydnj.
--HG--
extra : rebase_source : f5a2e514099be1221960fb91de83d827e2121801
2018-07-21 14:36:02 +00:00
Brian Hackett
18ac75a5f8 Bug 1465452 Part 12 - Record refcount changes for abstract threads, r=froydnj.
--HG--
extra : rebase_source : a5602fe654f5ac62e33f5277c5d3f632e08d2222
2018-07-21 14:35:23 +00:00
Brian Hackett
2f0f16c25a Bug 1465452 Part 11 - Record refcount changes for pipe input/output streams, r=erahm.
--HG--
extra : rebase_source : 4c5f16a40e92688a3724da10c341dc4961911038
2018-07-21 14:34:51 +00:00