Commit Graph

28088 Commits

Author SHA1 Message Date
Milan Sreckovic
825888a9ed Bug 1387799 - Keep an extra reference. r=jrmuizel 2017-10-23 16:22:47 -04:00
David Anderson
2d4ae3a1c5 Bug 1407032 - Reorder when GPUProcessHosts are destroyed. r=rhunt 2017-10-23 16:18:24 -04:00
Andrew Osmond
63505fc609 Bug 1399453 - Temporarily annotate crash reports with compositor thread owners. r=dvander
From the crashes associated with bug 1389021, we know that some
compositor thread IPDL owners are not being cleaned up properly. We do
not know which protocols are causing the problem, so we temporarily will
annotate the logs with the ownership status. This should be limited to
under a dozen instances of the protocols.

This change will be backed out after a few builds are produced with it
and we see the first crash reports with the relevant data.
2017-10-23 14:11:02 -04:00
Sebastian Hengst
f44d2aa184 Backed out changeset dc9d9c01080a (bug 1399453) for static bustage at layers/CompositorThread.h:68: bad implicit conversion constructor for 'CompositorThreadHolderDebug'. r=backout on a CLOSED TREE
--HG--
extra : amend_source : 653c00800bb4ed4800ed62fb9df5529ea9ecf48d
2017-10-23 18:26:14 +02:00
Andrew Osmond
d4a18daeed Bug 1399453 - Temporarily annotate crash reports with compositor thread owners. r=dvander
From the crashes associated with bug 1389021, we know that some
compositor thread IPDL owners are not being cleaned up properly. We do
not know which protocols are causing the problem, so we temporarily will
annotate the logs with the ownership status. This should be limited to
under a dozen instances of the protocols.

This change will be backed out after a few builds are produced with it
and we see the first crash reports with the relevant data.
2017-10-23 11:31:02 -04:00
Ryan Hunt
061772f5fa Mark SourceRotatedBuffer methods as override to silence warnings (bug 1409871 part 22, r=nical)
MozReview-Commit-ID: 1xNF8sfXukg

--HG--
extra : rebase_source : 0f54ec0b15dcef474d06a44b38a91738f5643378
2017-10-20 16:32:39 -04:00
Ryan Hunt
7759c671b8 Add documentation for the new rotated buffer subclasses. (bug 1409871 part 21, r=nical)
MozReview-Commit-ID: E2XejdUju9Q

--HG--
extra : rebase_source : f7522aa50dee93575f86ac20c5a3c601a36fd9d9
2017-10-20 12:48:20 -04:00
Ryan Hunt
345dd0aff3 Be sure to unlock the old back buffer before we release it. (bug 1409871 part 20, r=nical)
MozReview-Commit-ID: HR9EiYrDeqT

--HG--
extra : rebase_source : ac39f463009563d1849e6eaa4e6fd27611bc6001
2017-10-20 12:28:41 -04:00
Ryan Hunt
f3ade1b01c Remove mInAsyncPaint and move locking new back buffer into BeginPaint (bug 1409871 part 19, r=nical)
mInAsyncPaint is only needed because the code using CreateBuffer expects the
buffer to be locked when it is returned. This isn't necessary because we can
now lock in BeginPaint.

MozReview-Commit-ID: 8WazvBKMbvb

--HG--
extra : rebase_source : ec59ca27e88257bd8e6d384685bee8227f545b31
2017-10-18 15:31:15 -04:00
Ryan Hunt
04ee50acb9 Remove BeginPaintBuffer (bug 1409871 part 18, r=nical)
Now that BeginPaintBuffer and BeginPaint are both implemented by content client,
I think it makes sense to just merge them into one method. This simplifies the
interface clients have to use.

MozReview-Commit-ID: 8bjH6WcpZS9

--HG--
extra : rebase_source : c2aad6cd9d85f7dd09652ee253683f03825e95c6
2017-10-18 15:20:14 -04:00
Ryan Hunt
23a0d9c85e Clean up some methods on ContentClient (bug 1409871 part 17, r=nical)
This commit does some more cleanup on the content client class hierarchy.
Some methods were virtual or instance methods when they didn't need to be.

MozReview-Commit-ID: 2y2D3zYtYvM

--HG--
extra : rebase_source : ebd137e4a1ee8eba10467e987bd2d91ea44ca5a2
2017-10-18 14:54:26 -04:00
Ryan Hunt
7f1dd327e3 Fix PrepareDrawTargetForPainting (bug 1409871 part 16, r=dvander)
CapturedPaintState::mTarget is actually a dual draw target to the black and
white draw targets, so this code will have the white draw target cleared black
and then white. This isn't incorrect, it's just wasteful.

MozReview-Commit-ID: ItgiSmegPK6

--HG--
extra : rebase_source : 9c3c88f463087a75383f1940ddeef6bb68ec35c4
2017-10-18 14:46:54 -04:00
Ryan Hunt
eba630e380 Use a rect instead of a region for UpdateDestinationFrom (bug 1409871 part 15, r=nical)
UpdateDestinationFrom actually only uses a rect, so it's best to not be
misleading and force the clients of it to do the conversion.

MozReview-Commit-ID: EsUv3apqnku

--HG--
extra : rebase_source : 6ee0f7454ac2ea21618a62a9ab906857384d0fdf
2017-10-18 14:35:18 -04:00
Ryan Hunt
537500c013 Cleanup rotated buffer declarations and add some documentation. (bug 1409871 part 14, r=nical)
This organizes the rotated buffer declarations and adds some documentation.

MozReview-Commit-ID: 5r24RiUMM6o

--HG--
extra : rebase_source : 28045e2d6b19db1f31796b7119717d417ee2dd34
2017-10-18 14:10:56 -04:00
Ryan Hunt
fb77e4394b Update comments for ContentClient (bug 1409871 part 13, r=nical)
This could be a part of the previous commit, but I omitted it to keep the size
down. Just some updates to comments and documentation.

MozReview-Commit-ID: HkCOSIQhBNv

--HG--
extra : rebase_source : 665b6bbe18dcd409809d33e1be37a56c0dc304d7
2017-10-18 13:42:19 -04:00
Ryan Hunt
6cd0ba94af Kill RotatedContentBuffer (bug 1409871 part 12, r=nical)
This commit is the guts of the refactoring.

This commit removes rotated content buffer, and moves the necessary
functionality to content client. All content clients now do not inherit from
rotated content buffer, but contain a refptr to a rotated buffer.

For the basic content client, this is a DrawTargetRotatedBuffer.
For the remote content client, this is a RemoteRotatedBuffer.
The double buffered content client contains an additional RemoteRotatedBuffer
for the front buffer.

Each derived class of content client only needs to implement a method to
create its own rotated buffer. The rest is handled by the base content
client. The remote content clients still override some additional methods
to sync buffers and do IPC.

MozReview-Commit-ID: B9vcSi8UYhm

--HG--
extra : rebase_source : a727d5548b0167eb12676837b173355eb0dd38a5
2017-10-16 19:45:11 -04:00
Chih-Yi Leu
bee92ecf09 Bug 1393383 - Update webrender binding code to support non-uniform border radius r=kats
MozReview-Commit-ID: 9YIPRJ9Mzfi

--HG--
extra : rebase_source : c4404c2dbd5e6ab6206b170c506ef07306c8e601
2017-10-24 14:44:29 +08:00
Ethan Lin
38b3c273db Bug 1410824 - Remove pref 'gfx.webrendest.enabled'. r=kats
MozReview-Commit-ID: Ipwjitb7kIs

--HG--
extra : rebase_source : 34cfbdeac331948b96150fc86c0d855c7604fb1d
2017-10-23 10:10:04 +08:00
Ryan Hunt
2c54579797 Move buffer related decisions into their own function. (bug 1409871 part 11, r=nical)
This commit splits off the part of BeginPaint that makes the decision about
whether to keep the buffer, its surface type, its content type, and the regions
to invalidate or paint.

MozReview-Commit-ID: JcPlv8GiRpA

--HG--
extra : rebase_source : 73c2de46ac9e11437e6a52aadd1da56028a7d3ec
2017-10-12 19:52:29 -04:00
Ryan Hunt
273ecb795e Add RotatedBuffer::AdjustTo. (bug 1409871 part 10, r=nical)
This commit adds a method to rotated buffer to perform the adjusting to the new
destination rect, and potential unrotating that may need to happen. The goal of
this is to simplify and prepare BeginPaint to be moved to content client.

MozReview-Commit-ID: B4qeZqLjORR

--HG--
extra : rebase_source : 8ee7fb96ce8f1207b73027bb1d171dabd5b35788
2017-10-12 18:37:29 -04:00
Ryan Hunt
962f98cab9 Remove PaintState::mDidSelfCopy. (bug 1409871 part 9, r=nical)
Miscellaneous cleanup, PaintState doesn't need to know this as no one uses
this information outside of the content client classes.

MozReview-Commit-ID: 6K8LxEPvp4V

--HG--
extra : rebase_source : 931f7726d2f8f1f5ab32b5cf8f9030aa39a64bff
2017-10-12 17:24:50 -04:00
Ryan Hunt
f5daa1eff3 Move mFrontAndBackBufferDiffer to ContentClientDoubleBuffered. (bug 1409871 part 8, r=nical)
Miscellaneous cleanup, ContentClientSingleBuffered doesn't need to track if
the front and back buffer differ.

MozReview-Commit-ID: IvAw0b92jsh

--HG--
extra : rebase_source : c6b2d91666338f1d222f783b7a14e9d3b0ad6802
2017-10-12 12:58:17 -04:00
Ryan Hunt
731b3dc042 Refactor copying from the old buffer to the new buffer to use RotatedBuffer. (bug 1409871 part 7, r=nical)
This commit refactors part of BeginPaint to treat the new and old back buffer's
as rotated buffers. The goal of this is to simplify and prepare this function to
be moved out of rotated content buffer.

MozReview-Commit-ID: 5iHeMbCWfpo

--HG--
extra : rebase_source : 232b699ca5d906e4784338914ebddd510730c379
2017-10-12 12:35:37 -04:00
Ryan Hunt
fd9427a323 Add a DrawTargetRotatedBuffer. (bug 1409871 part 6, r=nical)
This adds a new implementation of rotated buffer, which is backed by draw
targets. This will be the rotated buffer that basic content clients use.

MozReview-Commit-ID: Knn79yEFnxN

--HG--
extra : rebase_source : 78201bbb31c76e2b8131d912600b55500ba4cbdb
2017-10-11 16:26:10 -04:00
Ryan Hunt
bc88ed32b9 Use a RemoteRotatedBuffer for the front buffer of ContentClientDoubleBuffered. (bug 1409871 part 5, r=nical)
The front buffer for a double buffered content client is really just another
rotated buffer, so it can simplify the code to use the class we just added.
The goal is to have the back and the front buffer using remote rotated buffers,
but this is a good first step.

Note: The front buffer is represented as a Maybe<RemoteRotatedBuffer> in this
commit, but in the future it will be a RefPtr. That can't be done yet, because
rotated buffer can't implement refcounting in addition to compositable client.

MozReview-Commit-ID: Czk3otkf1pb

--HG--
extra : rebase_source : b7cc399643295bb63efa86739f3dae29d3375ae6
2017-10-11 15:22:57 -04:00
Ryan Hunt
d7d2f8b642 Add a RemoteRotatedBuffer. (bug 1409871 part 4, r=nical)
This adds a new implementation of rotated buffer, which is backed by texture
clients. This will be the rotated buffer that remote content clients use.

MozReview-Commit-ID: 3Y776uk5mFG

--HG--
extra : rebase_source : 40acce3f4150c5f6f51bf73f0b3c7e974ed8fd72
2017-10-11 14:34:41 -04:00
Ryan Hunt
cbde30661f Move DrawTo to RotatedBuffer. (bug 1409871 part 3, r=nical)
Similar to the previous patch, more functionality can be moved to rotated
buffer and out of rotated content client.

MozReview-Commit-ID: FNqfonyBBq9

--HG--
extra : rebase_source : fce8c6212321e6e25dc414c517a28e1e3c747c25
2017-10-11 15:31:20 -04:00
Ryan Hunt
568306b4d0 Move UpdateDestinationFrom to RotatedBuffer. (bug 1409871 part 2, r=nical)
UpdateDestinationFrom is a useful method for any rotated buffer. This will be
needed when content clients are no longer rotated buffers.

Note: EnsureBuffer and EnsureBufferOnWhite were moved out of
UpdateDestinationFrom because I'd like to kill those methods, and so the calls
were moved to all users of UpdateDestinationFrom.

MozReview-Commit-ID: 2e3HhUsZ6iw

--HG--
extra : rebase_source : dd8f5a52808924a64ea0eb17359b6b749426b64e
2017-10-11 13:40:16 -04:00
Ryan Hunt
ee9531597a Remove ContentClientRemote. (bug 1409871 part 1, r=nical)
This class doesn't seem to be necessary and only complicates the class
hierarchy.

MozReview-Commit-ID: 6dRXce1vB9T

--HG--
extra : rebase_source : 71591b44c68f9c8b73c7aadb6be245caaec0fbb5
2017-10-11 12:43:39 -04:00
Morris Tseng
f482bf5f38 Bug 1410359 - Remove unused css filter codes. r=kats
Some css filter codes only used in layers-full mode. Since layers-full
already removed, we can also remove those unused codes.

MozReview-Commit-ID: 8YrfOfuXHNt

--HG--
extra : rebase_source : e9475d9100fbc2e5b301833f31fde1db458117aa
2017-10-20 16:10:03 +08:00
Gerald Squelart
d2ed3d6312 Bug 1410252 - Convert 'WrapNotNull(new T(...' to 'MakeNotNull<T*>(...' - r=njn
Most cases where the pointer is stored into an already-declared variable can
trivially be changed to MakeNotNull<T*>, as the NotNull raw pointer will end
up in a smart pointer.

In RAII cases, the target type can be specified (e.g.:
`MakeNotNull<RefPtr<imgFrame>>)`), in which case the variable type may just be
`auto`, similar to the common use of MakeUnique.
Except when the target type is a base pointer, in which case it must be
specified in the declaration.

MozReview-Commit-ID: BYaSsvMhiDi

--HG--
extra : rebase_source : 8fe6f2aeaff5f515b7af2276c439004fa3a1f3ab
2017-10-20 18:25:33 +11:00
Matt Woodrow ext:(%2C%20Miko%20Mynttinen%20%3Cmikokm%40gmail.com%3E%2C%20Timothy%20Nikkel%20%3Ctnikkel%40gmail.com%3E)
e97adfa0ce Bug 1404181 - Part 27: Add some retained-dl debugging tools. r=mstange
MozReview-Commit-ID: EQO1lAbUnpY

--HG--
extra : rebase_source : a11bfd8055bd83e9215211a4e48d43735d7010ba
2017-10-21 16:54:24 +13:00
Francois Marier
7f48d0bdd3 Bug 1385461 - Upgrade to the latest version of the protobuf library. r=dimi,fitzgen,glandium,mattwoodrow,mossop
The tarball that was imported is the 3.4.1 release:

  https://github.com/google/protobuf/releases/tag/v3.4.1
  https://github.com/google/protobuf/releases/download/v3.4.1/protobuf-cpp-3.4.1.tar.gz

This drops all of the customizations that are no longer needed,
which includes a few issues that were fixed upstream:

- r512.patch from bug 892856:

    https://searchfox.org/mozilla-central/rev/bab9dbe9c4ef71f71fb07e53b701fb2dfde277d9/toolkit/components/protobuf/r512.patch
    b04e5cba35/src/google/protobuf/io/zero_copy_stream_impl.cc (L43)

- vs2013.patch, also from bug 892856:

    https://searchfox.org/mozilla-central/rev/bab9dbe9c4ef71f71fb07e53b701fb2dfde277d9/toolkit/components/protobuf/vs2013.patch
    b04e5cba35/src/google/protobuf/wire_format_lite_inl.h (L39)

- sparc64 fixes in m-c-changes.patch from bug 1275204:

    https://hg.mozilla.org/integration/mozilla-inbound/rev/21d692e82582
    b04e5cba35/src/google/protobuf/stubs/platform_macros.h (L68)

The LOGLEVEL_ERROR hack in m-c-changes.patch from bug 1024774 and
bug 1320179 was replaced by a NOGDI define in moz.build as suggested
by upstream:

    https://github.com/google/protobuf/pull/3745/files#r144915445

The other customizations that were dropped came from bug 1024774.

The patch for OpenBSD/32-bit will likely be fixed upstream in a
future release:

    https://github.com/google/protobuf/pull/3747#issuecomment-336581244

Upgrading the protobuf library also required re-generating all
of the existing .pb.h and pb.cc files (they are neither forward
nor backward-compatible) and making adjustments to the build
config to make it compile (and silence warnings).

text_format.cc can now be compiled as part of UNIFIED_SOURCES.

MozReview-Commit-ID: 7F2IqFmwQnN

--HG--
extra : rebase_source : b907a28a8063ecd82bb38530d309faafc7b83175
2017-10-18 15:02:05 -07:00
Francois Marier
c5abf40a20 Bug 1385461 - Re-sync LayerScopePacket.proto with the generated files. r=mattwoodrow
This got out of sync in bug 1317862 and bug 1337130:

  https://hg.mozilla.org/mozilla-central/rev/f2d4190eaaf8
  https://hg.mozilla.org/mozilla-central/rev/48b29a84e4e5

MozReview-Commit-ID: H9PWK4O0GX

--HG--
extra : rebase_source : 346905f375b61af5c657c78b867710363b066102
2017-10-11 16:15:57 -07:00
Matt Woodrow ext:(%2C%20Miko%20Mynttinen%20%3Cmikokm%40gmail.com%3E%2C%20Timothy%20Nikkel%20%3Ctnikkel%40gmail.com%3E)
3fa03bb34e Bug 1404181 - Part 22: Make sure we mark frames as modified any time they change position or style data and make sure we don't accidentally mark the root as being modified when we don't need to. r=mstange
MozReview-Commit-ID: J5ov5cwvvrE

--HG--
extra : rebase_source : 4eadb82e5e0b3264cc7d6aeef2693ce8aea69b43
2017-09-29 10:51:49 +13:00
Matt Woodrow ext:(%2C%20Miko%20Mynttinen%20%3Cmikokm%40gmail.com%3E%2C%20Timothy%20Nikkel%20%3Ctnikkel%40gmail.com%3E)
983bb1b63a Bug 1404181 - Part 12: Add pref for retained display lists (starting with it disabled). r=mstange
MozReview-Commit-ID: FgASuaoYMuc

--HG--
extra : rebase_source : af1bfd3bb4be63aa6f6c27629b91c1aae924ad20
2017-09-28 13:42:15 +13:00
Sebastian Hengst
091894faea merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: JpMeK9OdQsz
2017-10-21 10:59:18 +02:00
Sebastian Hengst
aa75559a2f merge mozilla-central to autoland. r=merge a=merge 2017-10-21 00:16:08 +02:00
Sebastian Hengst
ad8006bcb6 Backed out changeset fd03410adaba (bug 1408781) for build bustage at gfx/layers/mlgpu/PaintedLayerMLGPU.h:62: 'SetRenderRegion' overrides a member function but is not marked 'override'. r=backout on a CLOSED TREE
--HG--
extra : amend_source : 6c4a95d8314f969e2b449381ae14378e9e6bd7a8
2017-10-20 20:52:56 +02:00
Sebastian Hengst
41d5742833 Backed out changeset 4d2c317e3936 (bug 1408781) 2017-10-20 20:52:50 +02:00
David Anderson
adbf5d8b01 Cache invalidation properties after compositing, not before. (bug 1408781 part 2, r=mattwoodrow)
--HG--
extra : rebase_source : c9763856b7686253e15d9072d93ed787a79b50b0
2017-10-20 10:31:46 -07:00
David Anderson
e5f304d59f Store the AL render region separately from the shadow visible region. (bug 1408781 part 1, r=mattwoodrow)
--HG--
extra : rebase_source : 14c97296ca7dbe638179476abbe3c8eada5e159a
2017-10-20 10:31:46 -07:00
Kartikaya Gupta
b4862ba64a Bug 1402450 - Ensure the test properly delays until the content process receives the touch events. r=botond
It appears that in this case just waiting for the APZ flush to complete was
insufficient, probably because the APZ flush and touch inputs go via different
IPC channels and therefore do not provide ordering guarantees. So instead of
waiting for the APZ flush, let's just wait until the touchstart is received
in the content process and use that to resume the test.

MozReview-Commit-ID: AcPRhox1Xkg

--HG--
extra : rebase_source : be6653c7835d9a61bdc215266367adcc8adf8f0b
2017-10-20 13:23:20 -04:00
David Anderson
8cd7b1c9be Cache invalidation properties after compositing, not before. (bug 1408781 part 2, r=mattwoodrow) 2017-10-20 15:09:13 -07:00
David Anderson
d2ae9a5558 Store the AL render region separately from the shadow visible region. (bug 1408781 part 1, r=mattwoodrow) 2017-10-20 15:09:12 -07:00
sotaro
47ccccdcad Bug 1410304 - Do not compare depth in attachmentsHaveSameDimensions() r=jgilbert 2017-10-21 07:06:41 +09:00
sotaro
62965ef405 Bug 1407069 - Do not hold external image in SetCurrentTextureHost if ImageHost is async. r=nical 2017-10-20 16:42:58 +02:00
Nicolas Silva
e620af06b0 Bug 1407069 - Associate epochs to async image updates. r=sotaro 2017-10-20 16:42:53 +02:00
JerryShih
8080b60c82 Bug 1407618 - add more gl texture creation checking for RenderDXGITexture. r=jgilbert
1. dxgi shared texture handle.
2. ANGLE_d3d_share_handle_client_buffer ext.

MozReview-Commit-ID: 5rl44QOvW4r
2017-10-20 08:45:55 -04:00
sotaro
8d85c3d52b Bug 1405952 - Remove PWebRenderBridge::SetDisplayListSync r=kats,kanru 2017-10-20 19:48:57 +09:00
Jonathan Kew
0cac41cef7 Bug 1361631 - patch 2 - For Mongolian and Phags-pa script, always shape/render vertical text in a sideways-right mode (applying 90° rotation), even if text-orientation:upright is in effect, because fonts are designed to give the 'native' vertical rendering when used this way. r=xidorn 2017-10-20 11:20:18 +01:00
Jonathan Kew
fef1726255 Bug 1361631 - patch 1 - Rearrange handling of textrun/glyph orientation so that we pass the resolved 'orientation' value of each glyph run from gfxFontGroup::InitScriptRun through to gfxFont::SplitAndInitTextRun, rather than just a boolean 'vertical' flag. (No functional change.) r=xidorn 2017-10-20 11:20:18 +01:00
Sebastian Hengst
bc6dddb88b merge autoland to mozilla-central. r=merge a=merge
MozReview-Commit-ID: BY4c5BIOF81
2017-10-20 11:37:54 +02:00
Lee Salzman
6235863fa6 Bug 1408481 - pass AA via GlyphOptions to WR PushGlyphs. r=gankro
MozReview-Commit-ID: LVieyPaaouc
2017-10-19 22:54:28 -04:00
Sebastian Hengst
24583b9443 merge mozilla-central to autoland. r=merge a=merge 2017-10-20 01:08:09 +02:00
Sebastian Hengst
20d769ea9c merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: Gc5JIILUrPi
2017-10-20 00:05:39 +02:00
Sebastian Hengst
ac57f6f7df merge mozilla-central to autoland. r=merge a=merge 2017-10-19 11:52:58 +02:00
Sebastian Hengst
bf793df477 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: HasKw28SN45
2017-10-19 11:26:22 +02:00
sotaro
2c90b0f880 Bug 1404232 - Add mGL->MakeCurrent() calling in SetGLContext() r=jrmuizel 2017-10-19 13:03:28 +09:00
sotaro
1bf385dce6 Bug 1404232 - Add WebRenderCommandBuilder::ClearCachedResources() r=jrmuizel 2017-10-19 13:03:08 +09:00
sotaro
e87aa60cf8 Bug 1404232 - Add WebRenderLayerManager::WrUpdated() r=jrmuizel 2017-10-19 13:02:47 +09:00
sotaro
e7235d5225 Bug 1409594 - Check if root WebRenderBridgeParent exists r=kats 2017-10-19 11:15:46 +09:00
sotaro
4c11a8c448 Bug 1409595 - Add pointer check in WebRenderLayerManager::DidComposite() r=kats 2017-10-19 10:26:26 +09:00
Ryan VanderMeulen
cb612851ed Merge inbound to m-c. a=merge 2017-10-18 21:01:34 -04:00
Ethan Lin
276f259817 Bug 1402490 - Fix video position for WR. r=kats
MozReview-Commit-ID: GkhcN5YOt5q

--HG--
extra : rebase_source : d57b793cdd588c5dfdb137e3d9edbc45435dad13
2017-10-18 13:56:53 +08:00
Kartikaya Gupta
d8ac050c91 Bug 1409856 - Update all the WebRender code to use LayoutDevice units instead of Layer units. r=jrmuizel
MozReview-Commit-ID: DP3hwlFWyZC
2017-10-18 22:25:11 -04:00
Botond Ballo
2c1a3530e6 Bug 1340415 - Ensure main-thread and async autoscrolling do not happen at the same time. r=kats
The two happening at the same time can lead to the APZ autoscroll being
cancelled due to APZ receiving a main-thread scroll offset update.

To achieve this:

  - The content process assumes APZ is handling the autoscroll until
    told otherwise.

  - If the parent process knows APZ won't handle an autoscroll, it
    tells the content process via its response to the Autoscroll:Start
    message. This covers all cases where APZ doesn't handle the
    autoscroll, except the case where APZCTreeManager itself rejects
    the autoscroll and it lives in the compositor process rather than
    the parent process.

  - If APZCTreeManager rejects an autoscroll and it lives in the
    compositor process, it sends an 'autoscroll-rejected-by-apz' message
    to the content process.

MozReview-Commit-ID: L62v4COai6W

--HG--
extra : rebase_source : bc4c6417e77461634263defb88e67ed5036c454e
2017-10-18 18:18:13 -04:00
Kartikaya Gupta
11842e931a Bug 1408461 - Update reftest results and regenerate bindings for changes in WR PR 1841. r=jrmuizel
MozReview-Commit-ID: ExA1MHJ0GFf
2017-10-18 12:37:54 -04:00
Kartikaya Gupta
e342fa79f4 Bug 1408461 - Update webrender to commit 7892f5364bc4d35c7a9b42949f0ace4cc54f8b3c. r=jrmuizel
MozReview-Commit-ID: 1n7EzemevQX
2017-10-18 12:37:51 -04:00
Sebastian Hengst
bffd61287d Backed out changeset dd8eb671df75 (bug 1408461) for failing reftests border-dotted/border-dotted-interaction.html and border-radius/curved-stripe-border.html on Linux QuantumRender. r=backout
--HG--
extra : rebase_source : 6ecd1fd58e3a2b1c711e386a77d4da26dab308c1
2017-10-18 18:28:07 +02:00
Sebastian Hengst
f11b2da7d8 Backed out changeset 882e0b30bc0e (bug 1408461)
--HG--
extra : rebase_source : 010cf8b33f83d96e9bb6b38431ac879964a8a3c3
2017-10-18 18:27:34 +02:00
Lee Salzman
600dccf87f Bug 1404742 - track ScaledFont and UnscaledFont lifetimes with ThreadSafeWeakPointer. r=bas
MozReview-Commit-ID: GRSEYh1fG4U
2017-10-18 14:22:09 -04:00
Sebastian Hengst
f9b5b9b40c merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 790IXj5MZ4f
2017-10-18 11:48:34 +02:00
Tom Ritter
a08e595f4b Bug 1404035 Address an unused result warning in gfx/thebes/DeviceManagerDx.cpp r=dvander
There's no way to handle this failure, so pass it to Unused.

MozReview-Commit-ID: 37PS9TsPqx7

--HG--
extra : rebase_source : f385f4c50d5407b1929abed7dae123f9570d2205
2017-09-28 12:53:24 -05:00
David Anderson
8b7a345004 Scissor the visible region for intermediate surfaces that require redraw. (bug 1408566 part 2, r=mattwoodrow)
--HG--
extra : rebase_source : 168a5f49f127b238d386d636b3d4b1bf675d2958
2017-10-17 15:06:12 -07:00
David Anderson
60356f36f8 Fix a coordinate space bug when composing some intermediate surfaces. (bug 1408566 part 1, r=mattwoodrow)
--HG--
extra : rebase_source : 15cb14238efe834e3c5f8e150d9e13d04cd9c967
2017-10-17 15:06:12 -07:00
Sebastian Hengst
f3f32c7851 merge mozilla-central to mozilla-inbound. r=merge a=merge
--HG--
rename : media/libstagefright/binding/include/mp4_demuxer/ByteReader.h => media/libstagefright/binding/include/mp4_demuxer/BufferReader.h
extra : rebase_source : 98d9275bf6065bc701881aed6c4635f1da9ea642
2017-10-18 00:05:25 +02:00
Sebastian Hengst
34714cebde merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 2KL1o3EPUk
2017-10-17 23:52:28 +02:00
Ryan VanderMeulen
f00b043001 Bug 1408855 - Update Harfbuzz to version 1.6.0. r=jfkthame 2017-10-17 11:17:04 -04:00
Matt Woodrow
8b1212fa67 Bug 1407815 - Allow merging of items that are in different wrap lists. r=miko 2017-10-17 15:16:28 +13:00
Sebastian Hengst
66e04dcde6 Backed out changeset 4666cde20909 (bug 1409327) 2017-10-17 22:03:33 +02:00
Andrea Marchesini
d526801916 Bug 1409327 - NS_NewBufferedInputStream should take the ownership of the inputStream, r=smaug 2017-10-17 20:38:05 +02:00
Jonathan Kew
b33bbf81ff Bug 1408611 - Use AlignedStorage2 to avoid zero-initializing the array of glyphs in GlyphBufferAzure. r=jrmuizel 2017-10-17 13:15:04 +01:00
Sebastian Hengst
0fde5cb6b5 merge mozilla-central to autoland. r=merge a=merge 2017-10-17 11:46:52 +02:00
Sebastian Hengst
32f7c8fec3 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 1h3kZyrtqSt
2017-10-17 11:45:16 +02:00
Phil Ringnalda
838e056c79 Backed out 4 changesets (bug 1395497) for Linux failures in test_conformance__textures__misc__texture-npot-video.html
Backed out changeset c99dadd2df7d (bug 1395497)
Backed out changeset 4e3dd1e01908 (bug 1395497)
Backed out changeset c9fbcd8bd4cb (bug 1395497)
Backed out changeset a8503893cc85 (bug 1395497)

MozReview-Commit-ID: C324dGFTpLb
2017-10-16 19:13:56 -07:00
Jeff Gilbert
a144f85f1f Bug 1395497 - Add AndroidSurfaceTexture support to GLBlitHelper. - r=snorp
MozReview-Commit-ID: JttqOoDCE4O
2017-10-16 19:33:39 -05:00
Jeff Gilbert
ca2f5c0f17 Bug 1395497 - Use mat3s to transform tex coords in GLBlitHelper. - r=daoshengmu
MozReview-Commit-ID: 9AjnrOY4Rrc
2017-10-16 19:33:39 -05:00
James Willcox
cbcb5ef5e9 Bug 1395497 - Create SurfaceTexture in detached state, attach on first use r=jgilbert
MozReview-Commit-ID: HfkEUH9aiBo
2017-10-16 19:33:38 -05:00
Ethan Lin
f585fef0f1 Bug 1408296 - Enable some crashtests for webrender. r=kats
MozReview-Commit-ID: 543ZYLhacx8

--HG--
extra : rebase_source : 247ddffeba52e7a7fbe864c2644be66b164ceb24
2017-10-13 11:56:04 +08:00
Ethan Lin
316e4cb704 Bug 1405957 - Part2. Remove the unnecessary GetLayerState in CreateWebRenderCommands and adjust the related pref type/value. r=kats
MozReview-Commit-ID: E8JvuOj6JtL

--HG--
extra : rebase_source : 4893c0d3cc6f99d4f2a6c920d8fc07de4c36324c
2017-10-05 14:42:28 +08:00
Ethan Lin
63bdc855fa Bug 1405957 - Part1. Remove advanced filter layer. r=kats
This pref is only for webrender layers mode. So we should remove it.

MozReview-Commit-ID: AxPLnc0uO1U

--HG--
extra : rebase_source : daecac41200be2244b0c6dccb66e0d61d7634691
2017-10-05 14:34:37 +08:00
Kris Maglione
9204ca3e99 Bug 1404198: Part 2h - Switch to NS_NewTimer* in gfx. r=njn
MozReview-Commit-ID: 3EUyHzdkbqH

--HG--
extra : rebase_source : 7d64b5b7ad0033e7ce6661be7993498fd9835060
2017-10-15 23:15:12 -07:00
Glenn Watson
eaac0caaf0 Bug 1409736 - Update bindings for API changes in WR PR 1904. r=jrmuizel
MozReview-Commit-ID: Ipsv4QSgLYB

--HG--
extra : rebase_source : 344a533cd548dc9d8809752fa19deeea80f30fe6
2017-10-23 09:49:28 -04:00
Kartikaya Gupta
bfece9f55c Bug 1409736 - Update for API change in WR PR 1903. r=jrmuizel
MozReview-Commit-ID: DsecmGOCWXI

--HG--
extra : rebase_source : 94434d61f0c84c9427216137facebe04abb163f1
2017-10-23 09:49:14 -04:00
Kartikaya Gupta
0a56221231 Bug 1409736 - Initialize the new clip member introduced in WR PR 1867. r=jrmuizel
MozReview-Commit-ID: JRzYT4WNoJi

--HG--
extra : rebase_source : 0b9ffec157975f48ab8ca8c8ec845d8396488eba
2017-10-23 09:48:45 -04:00
Kartikaya Gupta
a7adb0d8da Bug 1409736 - Update bindings for changes in WR PR 1889. r=jrmuizel
MozReview-Commit-ID: 7EAmUwrWQUB

--HG--
extra : rebase_source : 4352cc7ae3fd1cb07b259014ef02ce816f861f62
2017-10-23 09:48:38 -04:00
Kartikaya Gupta
f716b008d0 Bug 1409736 - Update Cargo lockfiles and re-generate FFI header. r=jrmuizel
MozReview-Commit-ID: Ad50zkjSkcE

--HG--
extra : rebase_source : a13a33032b8fc30955183f69b06b1585524c1cb4
2017-10-23 09:48:21 -04:00
Kartikaya Gupta
5e25afb9c5 Bug 1409736 - Update webrender to commit d741f472dd3d6c3441646f7bf4e714c71bea39b7. r=jrmuizel
MozReview-Commit-ID: FhFX2PAHwU

--HG--
extra : rebase_source : 34c2d4bedadc940cf4a16dbdd6e0755eee909889
2017-10-23 09:46:47 -04:00
Alex Gaynor
b00c32c807 Bug 1319423 - Part 2 - Switch away from std::ifstream to PRFileDesc in PrintTranslator; r=jrmuizel
MozReview-Commit-ID: 6ucwbGkqOQ0

--HG--
extra : rebase_source : ab0540e2b7d61108c8c550d8bf8b8a594364f90a
2017-10-03 13:23:57 -04:00
Alex Gaynor
41d8032290 Bug 1319423 - Part 1 - Introduce DrawEventRecorderPRFileDesc to allow switching away from std::ofstream in printing; r=jrmuizel
MozReview-Commit-ID: 1gn8J2fhejS

--HG--
extra : rebase_source : 02b6224c2788964c375092e58174efbacfdbdba5
2017-10-03 12:29:15 -04:00
Daosheng Mu
820e14cb33 Bug 1392216 - Part 4: Move drawing black layer commaneds to Compositor thread when stopping presentation; r=kip
MozReview-Commit-ID: 6YmQ9DYp79O

--HG--
extra : rebase_source : 45898a15fd2648db977647556d8cf120a67ff9d1
2017-10-16 13:30:46 +08:00
Daosheng Mu
9210bba13b Bug 1392216 - Part 3: VRPuppet dispatch submit frame result to VRListener thread; r=kip
MozReview-Commit-ID: K5ivNAkB89I

--HG--
extra : rebase_source : d4a87c12f5268a7aebe68e81c58c753eb60bfbc8
2017-10-06 17:56:53 +08:00
Daosheng Mu
48b5ded13e Bug 1392216 - Part 2: Support VR listener thread in VR; r=kip
MozReview-Commit-ID: 62PZ5opXoZ6

--HG--
extra : rebase_source : 81bac1b7228a35baa571f381e863e31608ba350f
2017-10-05 18:16:16 +08:00
Daosheng Mu
e41dc03f86 Bug 1392216 - Part 1: Create VR listener thread in GPU process; r=dvander,kip
MozReview-Commit-ID: Img0HT9ax90

--HG--
extra : rebase_source : ef3e2dac31f498454121639aa46657c0cd16f949
2017-10-05 18:12:45 +08:00
Ryan Hunt
62034bb874 Mark SourceRotatedBuffer methods as override to silence warnings (bug 1409871 part 22, r=nical)
MozReview-Commit-ID: 1xNF8sfXukg

--HG--
extra : rebase_source : f206492e122aa1b747ae555fc84e7f84f843cb86
2017-10-20 16:32:39 -04:00
Ryan Hunt
8ba74ee098 Add documentation for the new rotated buffer subclasses. (bug 1409871 part 21, r=nical)
MozReview-Commit-ID: E2XejdUju9Q

--HG--
extra : rebase_source : cda331b55f4af893a0d9e81f405c527bedb07cb2
2017-10-20 12:48:20 -04:00
Ryan Hunt
52d754392b Be sure to unlock the old back buffer before we release it. (bug 1409871 part 20, r=nical)
MozReview-Commit-ID: HR9EiYrDeqT

--HG--
extra : rebase_source : fe6f7f6367f2d2b5d4b09d49f4a90f7994c82618
2017-10-20 12:28:41 -04:00
Ryan Hunt
c70e6c5067 Remove mInAsyncPaint and move locking new back buffer into BeginPaint (bug 1409871 part 19, r=nical)
mInAsyncPaint is only needed because the code using CreateBuffer expects the
buffer to be locked when it is returned. This isn't necessary because we can
now lock in BeginPaint.

MozReview-Commit-ID: 8WazvBKMbvb

--HG--
extra : rebase_source : d41fd1261565800b2d35dc531958b85eacdf4463
2017-10-18 15:31:15 -04:00
Ryan Hunt
1966a0614d Remove BeginPaintBuffer (bug 1409871 part 18, r=nical)
Now that BeginPaintBuffer and BeginPaint are both implemented by content client,
I think it makes sense to just merge them into one method. This simplifies the
interface clients have to use.

MozReview-Commit-ID: 8bjH6WcpZS9

--HG--
extra : rebase_source : 1b22549c03299e1b1b9ba8a04f3c3e428577e062
2017-10-18 15:20:14 -04:00
Ryan Hunt
1b92ee86e6 Clean up some methods on ContentClient (bug 1409871 part 17, r=nical)
This commit does some more cleanup on the content client class hierarchy.
Some methods were virtual or instance methods when they didn't need to be.

MozReview-Commit-ID: 2y2D3zYtYvM

--HG--
extra : rebase_source : 41649182f1d99daae600568722f0b8615d27fe26
2017-10-18 14:54:26 -04:00
Ryan Hunt
d15300f70e Fix PrepareDrawTargetForPainting (bug 1409871 part 16, r=dvander)
CapturedPaintState::mTarget is actually a dual draw target to the black and
white draw targets, so this code will have the white draw target cleared black
and then white. This isn't incorrect, it's just wasteful.

MozReview-Commit-ID: ItgiSmegPK6

--HG--
extra : rebase_source : 13553bb1ec3c4b96a585ba4af4e8ff31f485e89e
2017-10-18 14:46:54 -04:00
Ryan Hunt
ab4e62caa0 Use a rect instead of a region for UpdateDestinationFrom (bug 1409871 part 15, r=nical)
UpdateDestinationFrom actually only uses a rect, so it's best to not be
misleading and force the clients of it to do the conversion.

MozReview-Commit-ID: EsUv3apqnku

--HG--
extra : rebase_source : 02fdd8f7ede0e1c4712a721e14a4ad809b6dff14
2017-10-18 14:35:18 -04:00
Ryan Hunt
9a100d70b9 Cleanup rotated buffer declarations and add some documentation. (bug 1409871 part 14, r=nical)
This organizes the rotated buffer declarations and adds some documentation.

MozReview-Commit-ID: 5r24RiUMM6o

--HG--
extra : rebase_source : 5279f7f754d41b06576f852672450d1d4bca803f
2017-10-18 14:10:56 -04:00
Ryan Hunt
d5a7ec4f84 Update comments for ContentClient (bug 1409871 part 13, r=nical)
This could be a part of the previous commit, but I omitted it to keep the size
down. Just some updates to comments and documentation.

MozReview-Commit-ID: HkCOSIQhBNv

--HG--
extra : rebase_source : bd94fa88d384123219528a6cf34c86e17f9de201
2017-10-18 13:42:19 -04:00
Ryan Hunt
1eea1ecca9 Kill RotatedContentBuffer (bug 1409871 part 12, r=nical)
This commit is the guts of the refactoring.

This commit removes rotated content buffer, and moves the necessary
functionality to content client. All content clients now do not inherit from
rotated content buffer, but contain a refptr to a rotated buffer.

For the basic content client, this is a DrawTargetRotatedBuffer.
For the remote content client, this is a RemoteRotatedBuffer.
The double buffered content client contains an additional RemoteRotatedBuffer
for the front buffer.

Each derived class of content client only needs to implement a method to
create its own rotated buffer. The rest is handled by the base content
client. The remote content clients still override some additional methods
to sync buffers and do IPC.

MozReview-Commit-ID: B9vcSi8UYhm

--HG--
extra : rebase_source : f4b1dcb3cd06f7d0da7ed85e5d3f4bf5ec445e7f
2017-10-16 19:45:11 -04:00
Ryan Hunt
4fad2db879 Move buffer related decisions into their own function. (bug 1409871 part 11, r=nical)
This commit splits off the part of BeginPaint that makes the decision about
whether to keep the buffer, its surface type, its content type, and the regions
to invalidate or paint.

MozReview-Commit-ID: JcPlv8GiRpA

--HG--
extra : rebase_source : 1867264e82fde108ff52ea295907851ce25dbff5
2017-10-12 19:52:29 -04:00
Ryan Hunt
81ae2fb680 Add RotatedBuffer::AdjustTo. (bug 1409871 part 10, r=nical)
This commit adds a method to rotated buffer to perform the adjusting to the new
destination rect, and potential unrotating that may need to happen. The goal of
this is to simplify and prepare BeginPaint to be moved to content client.

MozReview-Commit-ID: B4qeZqLjORR

--HG--
extra : rebase_source : 1878d562df2904fff8fbbf805e1d6b5d8533e337
2017-10-12 18:37:29 -04:00
Ryan Hunt
f84be40adb Remove PaintState::mDidSelfCopy. (bug 1409871 part 9, r=nical)
Miscellaneous cleanup, PaintState doesn't need to know this as no one uses
this information outside of the content client classes.

MozReview-Commit-ID: 6K8LxEPvp4V

--HG--
extra : rebase_source : 8bef61a47f423dd83ac9ea39b84f064bd7681e0c
2017-10-12 17:24:50 -04:00
Ryan Hunt
cb31baf93b Move mFrontAndBackBufferDiffer to ContentClientDoubleBuffered. (bug 1409871 part 8, r=nical)
Miscellaneous cleanup, ContentClientSingleBuffered doesn't need to track if
the front and back buffer differ.

MozReview-Commit-ID: IvAw0b92jsh

--HG--
extra : rebase_source : 8660ea8c3dfa8d34789e8f9b9ad6a58726879e49
2017-10-12 12:58:17 -04:00
Ryan Hunt
3c987579ae Refactor copying from the old buffer to the new buffer to use RotatedBuffer. (bug 1409871 part 7, r=nical)
This commit refactors part of BeginPaint to treat the new and old back buffer's
as rotated buffers. The goal of this is to simplify and prepare this function to
be moved out of rotated content buffer.

MozReview-Commit-ID: 5iHeMbCWfpo

--HG--
extra : rebase_source : a57ae63ba8b40ffa5558016f52860057bc0aecb6
2017-10-12 12:35:37 -04:00
Ryan Hunt
56b0784deb Add a DrawTargetRotatedBuffer. (bug 1409871 part 6, r=nical)
This adds a new implementation of rotated buffer, which is backed by draw
targets. This will be the rotated buffer that basic content clients use.

MozReview-Commit-ID: Knn79yEFnxN

--HG--
extra : rebase_source : 49f72c0974a6ba9715e9b0cea765ba45660475c5
2017-10-11 16:26:10 -04:00
Ryan Hunt
c654d74c54 Use a RemoteRotatedBuffer for the front buffer of ContentClientDoubleBuffered. (bug 1409871 part 5, r=nical)
The front buffer for a double buffered content client is really just another
rotated buffer, so it can simplify the code to use the class we just added.
The goal is to have the back and the front buffer using remote rotated buffers,
but this is a good first step.

Note: The front buffer is represented as a Maybe<RemoteRotatedBuffer> in this
commit, but in the future it will be a RefPtr. That can't be done yet, because
rotated buffer can't implement refcounting in addition to compositable client.

MozReview-Commit-ID: Czk3otkf1pb

--HG--
extra : rebase_source : e6b5e66f47ccdc1c75a3a2a9c73efc2b82a25890
2017-10-11 15:22:57 -04:00
Ryan Hunt
bb11dd83fa Add a RemoteRotatedBuffer. (bug 1409871 part 4, r=nical)
This adds a new implementation of rotated buffer, which is backed by texture
clients. This will be the rotated buffer that remote content clients use.

MozReview-Commit-ID: 3Y776uk5mFG

--HG--
extra : rebase_source : f193eec8af60a6e70345312cda0ce86cac70a7a2
2017-10-11 14:34:41 -04:00
Ryan Hunt
3e243339a6 Move DrawTo to RotatedBuffer. (bug 1409871 part 3, r=nical)
Similar to the previous patch, more functionality can be moved to rotated
buffer and out of rotated content client.

MozReview-Commit-ID: FNqfonyBBq9

--HG--
extra : rebase_source : cfc9c10d31baa48163107d0cf36c28a8ffda4ebb
2017-10-11 15:31:20 -04:00
Ryan Hunt
359bb9b20b Move UpdateDestinationFrom to RotatedBuffer. (bug 1409871 part 2, r=nical)
UpdateDestinationFrom is a useful method for any rotated buffer. This will be
needed when content clients are no longer rotated buffers.

Note: EnsureBuffer and EnsureBufferOnWhite were moved out of
UpdateDestinationFrom because I'd like to kill those methods, and so the calls
were moved to all users of UpdateDestinationFrom.

MozReview-Commit-ID: 2e3HhUsZ6iw

--HG--
extra : rebase_source : 73532ad481a4c0b1af63c4647e0e8f7f4c5b2dc3
2017-10-11 13:40:16 -04:00
Ryan Hunt
54735c4be0 Remove ContentClientRemote. (bug 1409871 part 1, r=nical)
This class doesn't seem to be necessary and only complicates the class
hierarchy.

MozReview-Commit-ID: 6dRXce1vB9T

--HG--
extra : rebase_source : 10b398f952979c4b0db4b95bd3a460a0cf00a9f8
2017-10-11 12:43:39 -04:00
Sebastian Hengst
7beb660397 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-10-19 11:54:07 +02:00
Andrea Marchesini
6626e900f9 Bug 1409327 - NS_NewBufferedInputStream should take the ownership of the inputStream, r=smaug 2017-10-19 11:39:30 +02:00
Kartikaya Gupta
781a484daa Bug 1410129 - Restore scoping of RAII class instantation. r=mattwoodrow
MozReview-Commit-ID: 1Eojy6STwfl

--HG--
extra : rebase_source : dd85375a1aedf6166477148a90dbc397c1c4366a
2017-10-19 11:35:14 -04:00
Kartikaya Gupta
f36ec38554 Bug 1410183 - Replace the useless layers-dump call with a slightly more useful if-0 block. r=jrmuizel
MozReview-Commit-ID: AEqJEiLZjmx

--HG--
extra : rebase_source : 7a503c9e8466d0619544c566709c9ec0e7e3144b
2017-10-19 14:02:48 -04:00
Kartikaya Gupta
9b6090c9da Bug 1408461 - Update reftest results and regenerate bindings for changes in WR PR 1841. r=jrmuizel
MozReview-Commit-ID: ExA1MHJ0GFf

--HG--
extra : rebase_source : f2bb511057e4a61544efc985b1cc0a581ec789d4
2017-10-18 09:41:35 -04:00
Kartikaya Gupta
91bb50513e Bug 1408461 - Update webrender to commit 7892f5364bc4d35c7a9b42949f0ace4cc54f8b3c. r=jrmuizel
MozReview-Commit-ID: 1n7EzemevQX

--HG--
extra : rebase_source : 113614aa51076f79cb094bb56a36e5a4282a3e31
2017-10-18 09:36:53 -04:00
Sebastian Hengst
ffcd2ce160 merge mozilla-central to autoland. r=merge a=merge on a CLOSED TREE
--HG--
extra : amend_source : ef359be373a97cad5a91f0150a46add4c3d8ab7c
2017-10-18 15:54:23 +02:00
Masayuki Nakano
16fd3a84a4 Bug 143038 Make users can scroll contents horizontally with vertical wheel operation with a modifier r=smaug
This patch declares a new default action, "horizontal scroll", this scrolls
content horizontally with deltaY of wheel events and ignores deltaX and deltaZ.
This is used for default action with Shift key in default setting except on
macOS. On macOS, legacy mouse's vertical wheel operation with Shift key causes
native horizontal wheel event.  Therefore, we don't need to use this new
default action on macOS.  Additionally, old default action with Shift key,
navigating history, is moved to with Alt key.  This makes same settings between
macOS and the others.  So, this is better for users who use macOS and another
OS and web app developers who check wheel events only on macOS or other
platform(s).

For simpler implementation, default action handlers moves deltaY values to
deltaX values temporarily *only* while they handle wheel events.  This is
performed by AutoWheelDeltaAdjuster and restored after handling it
automatically.

So, in other words, even if default action is "horizontal scroll", web apps
receives wheel events whose deltaY is not zero but its content will be
scrolled horizontally.  This is same as Chromium, so, this behavior shouldn't
cause any incompatible behavior with it.

MozReview-Commit-ID: E4X3yZzLEAl

--HG--
extra : rebase_source : e20d854c6b0a181ad4c9e7304bd9ad14256481ff
2017-10-05 01:12:35 +09:00
Joel Maher
2120bf7a70 Bug 1404836 - Disable gfx/layers/apz/test/mochitest/test_group_pointerevents.html on windows 10 for frequent failures. r=me, a=test-only 2017-10-15 05:55:43 -04:00
Sebastian Hengst
caf5b99a30 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 8Qk2qoQvP0g
2017-10-14 11:49:31 +02:00
Sebastian Hengst
87626a0ece merge mozilla-central to autoland. r=merge a=merge 2017-10-14 00:02:17 +02:00
Sebastian Hengst
373bdd8602 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 9adaYBJ4tlo
2017-10-13 23:37:41 +02:00
Ryan Hunt
f7a9b95167 Block the main thread to wait for async paints to complete instead of for IPC resuming. (bug 1406960, r=dvander)
MozReview-Commit-ID: KTd25x2epkC

--HG--
extra : rebase_source : 44a74300dbd16ab91ba7b007cc8ee77e7ed7a332
2017-10-12 14:31:59 -04:00
Jonathan Kew
9a5a3a7722 Bug 1408366 - Unicode combining grapheme joiner (U+034F) should not break the font run. r=jrmuizel 2017-10-13 16:19:47 +01:00
Kartikaya Gupta
89c2589418 Bug 1408261 - Update profiler tracing stuff to use the new macro. r=mstange
This code lost a landing race with bug 1403868 and so got left behind.

MozReview-Commit-ID: 6qaeAYeFLvA

--HG--
extra : rebase_source : 81cd3ef00949058b1c2165965ec15a51396055c1
2017-10-13 15:03:13 -04:00
Sebastian Hengst
30598ec65d merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-10-13 11:53:54 +02:00
Sebastian Hengst
1c1a5cef77 Merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 5oI3jfNbQVt
2017-10-13 11:12:47 +02:00
Lee Salzman
106fce0a43 Bug 1403198 - avoid copying font data in WebRenderBridgeChild::GetFontKeyForScaledFont. r=jrmuizel
MozReview-Commit-ID: Hrj1I9Ap6ZZ
2017-10-13 03:45:40 -04:00
Phil Ringnalda
bcec55eabf Backed out 4 changesets (bug 1185236) for Windows build bustage
CLOSED TREE

Backed out changeset eda76603d637 (bug 1185236)
Backed out changeset 2cbe403d5c16 (bug 1185236)
Backed out changeset 0466471b9f67 (bug 1185236)
Backed out changeset 445f1e6fc862 (bug 1185236)

MozReview-Commit-ID: 2nL4nUNNhcs
2017-10-12 19:50:07 -07:00
Mantaroh Yoshinaga
210fd03d72 Bug 1185236 - Add AdjustPrintJobNameForIPP() wide version. r=karlt
MozReview-Commit-ID: AE3mvnrVAqn

--HG--
extra : rebase_source : 7e8b727a7ca11337568de3c3cc43b0b6b2b6c8d5
2017-10-13 09:50:56 +09:00
Mantaroh Yoshinaga
cb8af10152 Bug 1185236 - Add adjustPrintJobName in order to avoid IPP job name limit. r=karlt
MozReview-Commit-ID: n2k9lwfoyW

--HG--
extra : rebase_source : f8757d44e20d5580f6d07550524f455d32e4847e
2017-10-13 08:55:08 +09:00
Tom Ritter
06c3f19228 Bug 1407289 Move classes from renderer11_utils.h r=jgilbert,Lenzak
It's illegal to use a method of a forward declared class

libANGLE/renderer/d3d/d3d11/renderer11_utils.h:207:31: error: invalid use of incomplete type 'class rx::Renderer11'
               ANGLE_TRY(renderer->allocateResource(desc, initData, &mResource));

However we cannot simply include Renderer11.h because Renderer11.h includes renderer11_utils.h

If we put the LazyX classes into Renderer11.h however, we can
change the include on the few places they are used with minimal impact.

MozReview-Commit-ID: 8Wf4Xbi7vAP

--HG--
extra : rebase_source : 984601e08f88342c8f5b75f9d43af3e666598855
2017-10-11 10:08:05 -05:00
Sebastian Hengst
87cd48824a merge mozilla-central to autoland. r=merge a=merge on a CLOSED TREE 2017-10-13 00:53:56 +02:00