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

28780 Коммитов

Автор SHA1 Сообщение Дата
cku 2755ec8823 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 : f977e6863b9f2ee961648ddaf13f5e30a3659410
2017-11-05 02:05:25 +08:00
cku 86f919fdad 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 : b6b8b069f8f2167ef87266ba9c95e8fe53cca6f6
2017-10-06 22:01:22 +08:00
Masatoshi Kimura f6959223e5 Bug 1423742 - Stop using Encoding::ForName in gfxFontUtils. r=jfkthame
MozReview-Commit-ID: EBHo01D6we8

--HG--
extra : rebase_source : 2af3a42ba246204464248448d36e7c679e3c4a59
2017-12-07 06:21:59 +09:00
Kartikaya Gupta d3646ab324 Bug 1423669 - Make WebRenderAPI refcounting threadsafe for use on the APZ controller thread. r=sotaro
MozReview-Commit-ID: 4VUQz48QT9t

--HG--
extra : rebase_source : 43dc64fcfbd73a31aa0b13dba9140295dc72f9cb
2017-12-06 13:36:58 -05:00
Tiberius Oros be4fc858c5 Merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-12-06 12:35:04 +02:00
Gurzau Raul f5f1c3f294 Merge inbound to mozilla-central r=merge a=merge 2017-12-06 11:53:55 +02:00
Lee Salzman 6dc1932292 Bug 1394570 - request synthetic bold for Mac fonts with WR. r=gankro
MozReview-Commit-ID: JAmWZM9SOe0
2017-12-05 22:18:53 -05:00
Kartikaya Gupta 0e8b7ffc89 Bug 1423205 - Fix typo causing leaks to be reported. r=jerry
MozReview-Commit-ID: 8wJNEwFEur0

--HG--
extra : rebase_source : 84def2f9a958a97bc876eda6bacd494a80ac0aba
2017-12-05 11:27:27 -05:00
peter chang f735c3d7f1 Bug 1418791 - Ensure mSnapshot access is protected by mutex, r=dvander
MozReview-Commit-ID: 3NPzv6VftxZ

--HG--
extra : rebase_source : 2af00974d4de8d0cc15a326520111c32c4437b54
2017-12-05 15:35:16 +08:00
Cosmin Sabou 08218515b9 Merge mozilla-inbound to mozilla-central r=merge a=merge 2017-12-06 00:09:01 +02:00
Kartikaya Gupta 5607b0af94 Bug 1422317 - Update webrender to commit b7714b1d4348c00682b5643ea0e3f0b15adaeda5. r=jrmuizel
MozReview-Commit-ID: BuZtMenOwqd

--HG--
extra : rebase_source : 9f56e78c6e9309074f258acc319bb48a95e94c20
2017-12-05 11:51:33 -05:00
Noemi Erli 47b9c00fdc Merge mozilla-central to mozilla-inbound. r=merge a=merge CLOSED TREE 2017-12-05 15:52:10 +02: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
Mike Shal 29e2f8c259 Bug 1319222 - Change --param flag to be multiple arguments; r=chmanchester
This flag should be two parameters, the first of which is '--param', and
the second is the parameter, such as 'inline-unit-growth=10000'. The
recursive make backend lets this slide at the moment because
PerSourceFlags aren't shell_quoted() there.

MozReview-Commit-ID: 8vblYqCGxwg

--HG--
extra : rebase_source : b3fb7fd78e1deec27c3ceb2bcc706e2e3e201e9e
2017-11-22 14:50:24 -05:00
Noemi Erli 449829ebb2 Merge mozilla-central to mozilla-autoland. r=merge a=merge 2017-12-05 16:31:06 +02: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
Ryan VanderMeulen 424e4364dd Bug 1422898 - Update Harfbuzz to 1.7.2. r=jfkthame 2017-12-05 07:44:54 -05:00
David Major c6c7ce4333 Bug 1422368 - Work around a clang-cl bug in yuv_row_win.cpp. r=jrmuizel 2017-12-01 16:46:21 -05:00
Jonathan Kew d78445777f Bug 1418818 - Allow downloadable fonts to include CBLC/CBDT tables on platforms where we're using Freetype. r=jrmuizel 2017-12-01 15:18:09 +00:00
Jonathan Kew 3b01ad4cc3 Bug 1421964 - Remove residual traces of the old fontconfig backend, no longer in the tree. r=jrmuizel 2017-12-01 15:18:07 +00: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
Jeff Muizelaar b084a22343 Bug 1422157. Remove some unused members from AzureState. r=jrmuizel
--HG--
extra : rebase_source : 175119d7aac6b5d1c0b8358f07f7572e43d483f8
2017-11-30 17:47:43 -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
Margareta Eliza Balazs 8f1ff0908b Merge mozilla-central to mozilla-inbound. r=merge a=merge CLOSED TREE 2017-11-30 12:56:57 +02:00
shindli c040137399 Merge mozilla-inbound to mozilla-central. r=merge a=merge 2017-11-30 12:01:52 +02:00
Jeff Muizelaar 524b31d2ff Bug 1421860. Remove unused gfxContext::SetSource.
This removes some state from AzureState which will
make gfxContext creation and save()/restore() cheaper
2017-11-29 23:51:52 -05: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
Marco Castelluccio cb53260706 Bug 1418255 - Disable Moz2D.JobScheduler_Shutdown GTest in Windows coverage builds. r=jrmuizel
--HG--
extra : rebase_source : 0fc0c8bccd02a028093578f21dd5c8ab0e10f35e
2017-11-18 00:35:59 +01:00
Dorel Luca f622b80073 Merge mozilla-central to mozilla-inbound r=merge 2017-11-29 12:34:02 +02:00
Dorel Luca be78e6ea9b Merge inbound to mozilla-central r=merge a=merge 2017-11-29 12:26:15 +02:00
Timothy Nikkel 9468c9b03a Bug 1421191. In ConvolutionFilter::ComputeResizeFilter calculate the src pixel every loop iteration. r=lsalzman
If we try to be clever and increment by invScale then floating point inaccuracies can accumulate leaving srcPixel far off from where it should be.
2017-11-29 02:22:53 -06:00
sotaro 5c61ce035d Bug 1421199 - Use EGL_EXPERIMENTAL_PRESENT_PATH_FAST_ANGLE for WebRender r=jgilbert 2017-11-29 13:13:40 +09: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
David Anderson 6bfb90d614 Override PaintedLayerMLGPU::AssignToView in preparation for supporting TiledContentHost. (bug 1420674 part 4, r=mattwoodrow) 2017-11-28 18:34:59 -08:00
David Anderson 49c3410c44 Use TextureSourceProvider instead of Compositor in TiledContentHost. (bug 1420674 part 3, r=mattwoodrow) 2017-11-28 18:34:58 -08:00
David Anderson cf981e7ff0 Fix ComponentAlphaPass for painted layers with multiple textures. (bug 1420674 part 2, r=rhunt). 2017-11-28 18:34:58 -08:00
David Anderson af51bf9ed7 Don't hardcode ContentHostTexture in PaintedLayerMLGPU. (bug 1420674 part 1, r=rhunt) 2017-11-28 18:34:58 -08:00
Jeff Gilbert 6c3abcde6a Bug 1390386 - Use uintptr for the thread-local. - r=daoshengmu
We're just doing a value comparison, so there's no reason this needs to be a pointer.

MozReview-Commit-ID: 6ck2s2fsdq5
2017-11-28 17:13:45 -08:00
Jeff Gilbert 4ff360b4cd Bug 1390386 - Allow null EGLSurfaces. - r=daoshengmu
MozReview-Commit-ID: 4dnmJ9H3RGJ
2017-11-28 17:13:35 -08:00
Jeff Gilbert fc61254cca Bug 1390386 - fGetError should use BEFORE_GL_CALL. - r=jrmuizel
MozReview-Commit-ID: B8sR38Bzjb5
2017-11-28 17:13:26 -08:00
Jeff Gilbert ea479cbf60 Bug 1390386 - Remove duplicate IsCurrent checks in MakeCurrentImpls. - r=jrmuizel
MozReview-Commit-ID: LZeLbciWnic
2017-11-28 17:13:17 -08:00
Jeff Gilbert fbf8b4797b Bug 1390386 - IsCurrent should understand mImplicitMakeCurrent. - r=jrmuizel
MozReview-Commit-ID: 7vMRUPMc3nN
2017-11-28 17:13:07 -08:00
Jeff Gilbert 2bc1cf06c1 Bug 1390386 - Remove old TLS current-context check. - r=daoshengmu
MozReview-Commit-ID: 18GSNztjkTM
2017-11-28 17:12:58 -08:00
Jeff Gilbert 41f0a05667 Bug 1390386 - Add GLContext::mImplicitMakeCurrent. - r=jrmuizel
MozReview-Commit-ID: 5iyGHNzoCpd
2017-11-28 17:12:48 -08:00
Jeff Gilbert 9c2ba78435 Bug 1390386 - Make MakeCurrent const. - r=daoshengmu
MozReview-Commit-ID: 3m3T6iMgZOc
2017-11-28 17:12:39 -08:00
Tiberius Oros 18ea9ecad9 Merge mozilla-central to mozilla-inbound. r=merge a=merge CLOSED TREE
--HG--
rename : devtools/client/webconsole/new-console-output/test/mochitest/test-bug-618078-network-exceptions.html => devtools/client/webconsole/new-console-output/test/mochitest/test-network-exceptions.html
rename : devtools/client/webconsole/new-console-output/test/mochitest/test_bug1092055_shouldwarn.html => devtools/client/webconsole/new-console-output/test/mochitest/test-subresource-security-error.html
rename : devtools/client/webconsole/new-console-output/test/mochitest/test_bug1092055_shouldwarn.js => devtools/client/webconsole/new-console-output/test/mochitest/test-subresource-security-error.js
rename : devtools/client/webconsole/new-console-output/test/mochitest/test_bug1092055_shouldwarn.js^headers^ => devtools/client/webconsole/new-console-output/test/mochitest/test-subresource-security-error.js^headers^
extra : rebase_source : e126b0ab427161de0acd67cdfb9a1434415412dc
2017-11-29 02:25:59 +02:00
Kartikaya Gupta d3c9541764 Bug 1420163 - Update for API change in WR PR 2105. r=jrmuizel
MozReview-Commit-ID: AYTN74RZfTQ

--HG--
extra : rebase_source : 281699cfe536e6d2adb18f2fafa2e4d7a592f8ce
2017-11-28 09:40:32 -05:00
Kartikaya Gupta de3cbeca0a Bug 1420163 - Update webrender to commit e30886d78c91bdd433fd978a39c511ef9416608e. r=jrmuizel
MozReview-Commit-ID: 1HI5MrCCdn4

--HG--
extra : rebase_source : d2ec8a1adbbe075636b73467a87a5769ebfd0ff7
2017-11-28 09:40:01 -05:00
Ethan Lin 24e38c2bb3 Bug 1421196 - Set default draw target to basic layer manager so that we won't have different backend. r=kats
MozReview-Commit-ID: IWzzPvAcwQ5

--HG--
extra : rebase_source : 28359fdfca721b29a93de5d0cc88d1c5ecc59a06
2017-11-28 17:25:49 +08:00
Cosmin Sabou 7d7b59dd0b Backed out changeset 423f4e43a975 (bug 1417751) for xpcshell failures at devtools/shared/tests/unit/test_css-properties-db.js r=backout on a CLOSED TREE 2017-11-28 13:50:59 +02:00
Bogdan Tara a14227d83a Merge mozilla-central to autoland. r=merge a=merge on a CLOSED TREE 2017-11-30 01:08:24 +02:00
Jean-Yves Avenard 4fd0cbda6e Bug 1421187 - P3. Optimize pixels data copy and remove extra loop. r=mattwoodrow
There's no need to perform the format test within the loop, so we can separate the different cases as needed.
Also copy the entire pixel data in one go, by using C types.

The skip value definition doesn't specify if it's in bytes, or in "pixels". We will assume the later. There are currently no decoders returning HDR content with a skip value different than zero anyway.

MozReview-Commit-ID: KTwYuNKJq3R

--HG--
extra : rebase_source : 3f1989c37ebdab6a60605815a961eda7286c423c
2017-11-28 16:29:49 +01:00
Jean-Yves Avenard 5166929d97 Bug 1421187 - P2. Properly set bytesPerPixel in MappedYCbCrTextureData. r=mattwoodrow
MozReview-Commit-ID: 891mPTv2Npj

--HG--
extra : rebase_source : 774360db3b03d8e57f5563cce2eb79421e17cd14
2017-11-28 15:53:54 +01:00
Jean-Yves Avenard f61bc130f1 Bug 1421187 - P1. Don't use fast path copy when CbCr channel interleaved. r=mattwoodrow
MozReview-Commit-ID: 6lZVoIiViEn

--HG--
extra : rebase_source : 4f056ffed386a6c3b921ab38aba14e1892b68142
2017-11-28 14:53:16 +01:00
Dorel Luca 79499f4044 Merge mozilla-central to autoland r=merge on a CLOSED TREE 2017-11-29 12:31:25 +02:00
Jean-Yves Avenard 424a8ff8a0 Bug 1417973 - Always use the AMD GPU decoder. r=mattwoodrow
High resolution, high framerate was disabled by default on old AMD cards on the provisio that it was bad. But this assumes that the CPU decoder could do it better.
This assumption appears fragile at best, as CPU with those old adapter are likely to be old and underpower to start with.

Chrome doesn't appear to restrict use of those cards to a given resolution.
So we disable this restriction, while making it user configurable.

MozReview-Commit-ID: HhADHNR0FdJ

--HG--
extra : rebase_source : ece39cd9b84c6e372d1002ee12e72523cee3d04d
2017-11-22 20:58:09 +01:00
Mark Banner 099e4fa549 Bug 1421458 - Add more initial configuration setup and prepare .eslintignore for enabling ESLint on more xpcshell-test directories. r=mossop
MozReview-Commit-ID: 4nbTuNNnAdZ

--HG--
extra : rebase_source : 7131f0ddad79d28615a5799c657972bd84a69180
2017-11-28 22:57:08 +00:00
Bas Schouten e83999bf32 Bug 1416862: Reverse DrawTargetSkia snapshot ownership model r=dvander
MozReview-Commit-ID: 3hpeYteEPlA
2017-12-06 04:59:19 +01:00
Bas Schouten 8d886455b3 Bug 1423281: Store the userdata for freeing our memory on the longer living snapshot. r=dvander
MozReview-Commit-ID: 91tVpJC7gAe
2017-12-06 04:59:18 +01:00
Botond Ballo a563c786cd Bug 1422070 - Introduce and use a PanZoomState for scrollbar dragging. r=kats
MozReview-Commit-ID: 7bOWVKlW0lr

--HG--
extra : rebase_source : d437f1940f6b0ee09b4d89cbf6429a213fe0639a
2017-12-04 13:47:36 -05:00
David Anderson 9b858fefcd Add high-res tiling support to Advanced Layers. (bug 1420674 part 5, r=mattwoodrow)
--HG--
extra : rebase_source : b5448c63830ce9e09c0602262f7664ce363e53c0
2017-11-29 21:12:26 -08:00
David Anderson 9db213330c Override PaintedLayerMLGPU::AssignToView in preparation for supporting TiledContentHost. (bug 1420674 part 4, r=mattwoodrow)
--HG--
extra : rebase_source : 8d0d97a20c470fe67ecad6f974274c897fbc7850
2017-11-29 21:12:25 -08:00
David Anderson c6c86e720f Use TextureSourceProvider instead of Compositor in TiledContentHost. (bug 1420674 part 3, r=mattwoodrow)
--HG--
extra : rebase_source : c3535490c813227cd6d1f6c009f1680567d0680a
2017-11-29 21:12:25 -08:00
David Anderson 79f2acf874 Fix ComponentAlphaPass for painted layers with multiple textures. (bug 1420674 part 2, r=rhunt).
--HG--
extra : rebase_source : ae6624ab8b7c28d0a4c8fe2354dc5076fced04ee
2017-11-29 21:12:25 -08:00
David Anderson c9d035c90f Don't hardcode ContentHostTexture in PaintedLayerMLGPU. (bug 1420674 part 1, r=rhunt)
--HG--
extra : rebase_source : 625dbec58f01ba1f2d42fde0c048c2373b5c5674
2017-11-29 21:12:24 -08:00
Cosmin Sabou 82ee4aee12 Backed out changeset 994147e6fd70 (bug 1405562) for build bustages on obj-firefox/dist/include/mozilla/layers/KnowsCompositor.h💯75 r=backout on a CLOSED TREE 2017-12-01 07:35:36 +02:00
sotaro 58de17aca4 Bug 1405562 - Enable D3D11YCbCrImage usage with WebRender r=mattwoodrow 2017-11-30 20:39:20 -08:00
Ryan Hunt 2849451f2a Add back mistakenly removed continue statement (bug 1421871, r=bas)
MozReview-Commit-ID: JaszzEY76nU
2017-11-29 22:04:48 -05:00
Jeff Muizelaar ebc9b6e9ff Bug 1406507. Move the displaylist ByteBuf into a Vec instead of copying. r=kats
This eliminates a copy of the displaylist on the compositor thread.

DONTBUILD
2017-11-30 18:14:58 -05:00
Jeff Muizelaar ad80f87660 Revert "Bug 1379680. Move the displaylist ByteBuf into a Vec instead of copying. r=kats"
This reverts commit d4a1478b58f0.
2017-11-30 18:14:58 -05:00
Narcis Beleuzu 2d0c93c273 Merge mozilla-central to inbound. r=merge a=merge on a CLOSED TREE 2017-12-01 00:47:21 +02:00
Narcis Beleuzu 1f7fdd5826 Merge mozilla-central to inbound. r=merge a=merge on a CLOSED TREE 2017-12-06 01:49:19 +02:00
Kearwood Gilbert 1bed477cca Bug 1407423 - Part 3: Update Puppet Device Implementation,r=daoshengmu
- Update prefs to accomodate tests, disabling
  enumeration throttling
- Updated Puppet display and controller implementation
  to act more like the actual devices.
- Updated tests to ensure that they explicitly
  create a VR mock display and don't create duplicate
  mock displays.

MozReview-Commit-ID: 6RPVqekG2je

--HG--
extra : rebase_source : 9cc9ea116114cc191edbf5a01ac8f84fff9709c4
2017-11-21 14:18:16 -08:00
Kearwood "Kip" Gilbert f34bcd9f1e Bug 1407423 - Part 2: Update gfxVRGVR to match refactoring,r=rbarker
MozReview-Commit-ID: DmKnEZanQ3f

--HG--
extra : rebase_source : 785f0feca50944f82da9bb251d5911c7b4b94f39
2017-11-14 10:42:46 -08:00
Andrew Osmond 4b721df4bc Bug 1421733 - Fix how WebRender shared surfaces image key lifetimes were inconsistent. r=jrmuizel 2017-11-29 14:11:19 -05:00
Kartikaya Gupta 2cebdcb842 Bug 1389146 - Enable WR hit-testing when the pref is enabled. r=botond,mstange
This drops the code that compares the WR and Gecko hit-test results when
WR is enabled, because the "baseline" Gecko hit-test result is not
correct enough to provide a useful comparison. Instead flipping the pref
now just enables the WR hit-test code; we will rely on automated testing
to check for correctness.

MozReview-Commit-ID: 8IFtk0p2NvE

--HG--
extra : rebase_source : 6402a87f3345ca3b82220e42185c9f8776475cdd
2017-11-28 15:28:09 -05:00
Kartikaya Gupta a722a826b0 Bug 1389146 - Add code to dump the webrender display list, behind a compile guard. r=jrmuizel
MozReview-Commit-ID: 1tWhE4A7PCa

--HG--
extra : rebase_source : 2f161e7c488832055d8811f94751e3623c16b490
2017-11-28 15:28:08 -05:00
Kartikaya Gupta 8583daf0e7 Bug 1419834 - Add a mochitest for compositor hit-testing. r=botond
MozReview-Commit-ID: 6bOA5Pte4cH

--HG--
extra : rebase_source : 89a8706f5c3b81825ccc7a8868b032e8236c2967
2017-11-29 23:16:29 -05:00
Kartikaya Gupta 9154159eef Bug 1419834 - Add hit-testing results for MozMouseHittest events to APZTestData. r=botond,mrbkap
This allows us to fire MozMouseHittest events from tests and then read
the hittest result from the compositor APZTestData. The MozMouseHittest
event was chosen in particular because the existing uses of it are
similar in nature - it is a dummy event that is used to determine what
elements a particular coordinate targets. It is also an event that is
never generated by the OS and so using this event gives us more control
over what ends up in the APZTestData.

MozReview-Commit-ID: KHjIX7EpK2A

--HG--
extra : rebase_source : f7d7d729c1935eefd49ed06d8644ff9ef537f2e1
2017-11-29 23:16:26 -05:00
Kartikaya Gupta ac4f8b52e1 Bug 1419834 - Fix missing newline in logging code. r=botond
MozReview-Commit-ID: 2nW6xrV4si1

--HG--
extra : rebase_source : e40fc63dd3ee7d9f5f93af24f2a3dd2b65fe5867
2017-11-29 23:16:22 -05:00
Margareta Eliza Balazs cb71a3c4fe Merge mozilla-central to mozilla-autoland. r=merge a=merge CLOSED TREE 2017-11-30 12:55:54 +02:00
Ethan Lin 1b88c15a2d Bug 1421200 - Fix memory leakage problem when getting WebRenderUserData. r=kats
MozReview-Commit-ID: 3GQq5Aipqux

--HG--
extra : rebase_source : 49a6a308be59750709b766209476ff6803805b57
2017-11-28 14:03:34 +08:00
Daosheng Mu 670a3feebf Bug 1420167 - Clean the current test system when creating a new VR test system; r=kip
MozReview-Commit-ID: KrXOjHcnszE

--HG--
extra : rebase_source : e51207efd574babd17b2089b7e86c7586a54cb93
2017-11-29 11:27:30 +08:00
Milan Sreckovic be9daa43bf Bug 1418980: Add full blocklisting support for GPU_PROCESS and DX_INTEROP2. r=dvander
MozReview-Commit-ID: 4gKi54Is8KO

--HG--
extra : rebase_source : ca99fdfa779b107d8fb41f8274aed6615ee69a02
2017-11-21 13:13:10 -05:00
Kartikaya Gupta a2212e6c00 Bug 1421054 - Remove performance cliff resulting from linear search through clips. r=mstange
MozReview-Commit-ID: 6XCgDSqzHgQ

--HG--
extra : rebase_source : f66b05fff47b8a253620db8b8afdcf9597f08c07
2017-11-28 13:59:46 -05:00
Ryan Hunt 9e12def723 Don't update content client if all we do is buffer operations. (bug 1419539, r=bas)
PaintOffMainThread uses didUpdate to track whether we queued work on the paint
thread and also if we painted new content into the buffer and need to update
the content client. These are independent and should have different flags. We
may flip the buffers incorrectly if we don't do this.

This is also important because ContentClient can return a BufferState even if
there are no operations and no backing buffer, causing a crash in Updated().

MozReview-Commit-ID: C6OW3jDJ3B4

--HG--
extra : rebase_source : 4545b70db1a608fdf736c6ff4c02836c00c80e93
2017-11-27 11:26:49 -05:00
Ryan VanderMeulen aac3a947d7 Bug 1417131 - Update HarfBuzz to 1.7.1. r=jfkthame 2017-11-28 10:14:22 -05:00
JerryShih 81f7ebd06b Bug 1415754 - try to use egl stream instead of CreatePbufferFromClientBuffer() for d3d rgb format texture. r=jgilbert
MozReview-Commit-ID: Bydbxtx3oGU
2017-11-28 20:04:00 +08:00
JerryShih f0fef8ac17 Bug 1415754 - check the mHandle status before using in RenderDXGITextureHostOGL::EnsureLockable(). r=jgilbert
MozReview-Commit-ID: AkyStTSjS8F
2017-11-28 20:04:00 +08:00
JerryShih de06fec4cc Bug 1415754 - check the surface status before use in RenderDXGITextureHostOGL::EnsureLockable(). r=jgilbert
MozReview-Commit-ID: 4e0lyXsVOgT
2017-11-28 20:04:00 +08:00
JerryShih 01092dde40 Bug 1415754 - make OpenSharedResource() call become fallible in SwapChain11::resetOffscreenColorBuffer(). r=jgilbert
MozReview-Commit-ID: 8jr9ls3jx7D
2017-11-28 20:04:00 +08:00
Kearwood "Kip" Gilbert a9dbddfdba Bug 1407423 - Ensure that any time we have loaded the Oculus runtime libary, we are polling ShouldQuit,r=daoshengmu
- Ensure ovr_GetSessionStatus is polled even when a VR presentation
  is not active.
- When we fail to initialize an Oculus Session or detect VR hardware,
  immediately unload the Oculus Library as we can't poll for ShouldQuit
  without a valid Oculus session.
- When we poll ovr_GetSessionStatus, we are now updating the mounted state
  in VRDisplayInfo::mIsMounted.
- Added prefs to control enumeration throttling and timeout to release
  VR hardware when inactive.
- Some refactoring to make frame loop more understandable and less
  brittle.
- When throttling enumeration, we ensure that all other VR apis
  also throttle enumeration so that they don't pick up the same device
  during throttling.
- Some long functions in VRManager have been broken up and
  had their inner-workings documented in more detail.

MozReview-Commit-ID: CEYwwQ9mYd0

--HG--
extra : rebase_source : b2ab0dfc17b9ddc06f6afafdf69497fb9418fd47
2017-10-10 14:42:37 -07:00
Daosheng Mu 87c982950e Bug 1419344 - Adjust OpenVR input mapping for Microsoft Mixed Reality controllers. r=kip
MozReview-Commit-ID: 2NzaDM9iXrB
2017-11-27 21:55:50 -05:00
Margareta Eliza Balazs f0400e7e4c Merge inbound to mozilla-central r=merge a=merge 2017-11-27 23:57:42 +02:00
Ryan Hunt 96a3a743e2 Allow painted layers with ancestor mask layers to use OMTP (bug 1419586, r=dvander)
MozReview-Commit-ID: 1Ru3lxaKUbl

--HG--
extra : rebase_source : df2fc3ecf68f8792945e4a3b72c23b7c9cfcc6fe
2017-11-21 19:22:27 -05:00
Bob Owen af20a22dd8 Bug 1420922: Remove orphaned TARGET_SANDBOX_EXPORTS defines. r=dmajor 2017-11-27 16:07:15 +00:00
Ciure Andrei ce43f5fe52 Merge mozilla-central to autoland. r=merge a=merge CLOSED TREE 2017-11-27 11:51:40 +02:00
Bas Schouten 62909856db Bug 1416862: Ensure mSnapshot access is always protected by mSnapshotlock. r=mattwoodrow
MozReview-Commit-ID: 8qkFde46WPQ
2017-11-27 03:12:09 +01:00
Robert Longson 059b5600cf Bug 584623 - fix cairo bounds calculation for zero length lines. r=jmuizelaar 2017-11-26 14:47:25 +00:00
Kartikaya Gupta 35dbf0dfaf Bug 1418541 - Remove HitTestResult and use CompositorHitTestInfo instead. r=botond
MozReview-Commit-ID: KkBriZl7CEL

--HG--
extra : rebase_source : f307f6ab29ea8ec511c25fd859fd17fba6562a28
2017-11-25 10:53:38 -05:00
Gerald Squelart 91a021aeb0 Bug 1420298 'layout.display-list.retain.verify' to debug retained-dl - r=mattwoodrow
Setting the 'layout.display-list.retain.verify' gfxPrefs implies
'layout.display-list.build-twice', and then compares the retained-built tree
to the non-retained one, and outputs differences&trees to the terminal.

MozReview-Commit-ID: 3dnyIUTbtH8

--HG--
extra : rebase_source : 36a6b8f029d0bd1339557e7c630906311ecf1254
2017-11-20 17:15:08 +11:00
Ethan Lin 65814283ca Bug 1416995 - Enable retained mode for the basic layer manager in WR fallback. r=jrmuizel,kats
MozReview-Commit-ID: InYJSiKGqQE

--HG--
extra : rebase_source : 1e9ae74bac79209fa6f5c7758695c89ac17cbf52
2017-11-15 13:48:48 +08:00
Botond Ballo 297dd5355d Bug 951793 - Add overscroll-behavior to the layer dump. r=kats
MozReview-Commit-ID: 629DKmrbVIi
2017-11-25 01:29:17 +01:00
Botond Ballo 1b91441c7c Bug 951793 - Obey overscroll-behavior for swipe navigation. r=mstange
MozReview-Commit-ID: i2BuiAfG71
2017-11-25 01:29:15 +01:00
Botond Ballo e120e4e115 Bug 951793 - Obey overscroll-behavior for any overscroll effect. r=kats
MozReview-Commit-ID: HyATx3aCmmm
2017-11-25 01:29:13 +01:00
Botond Ballo 7a8b2f99d3 Bug 951793 - Obey overscroll-behavior for wheel and pan gesture events. r=kats
MozReview-Commit-ID: EmbsMu9Esww
2017-11-25 01:29:11 +01:00
Botond Ballo 6aaf9d8b94 Bug 951793 - Obey overscroll-behavior for fling handoff. r=kats
MozReview-Commit-ID: 9i2AgmW3Inm
2017-11-25 01:29:09 +01:00
Botond Ballo ba097e7549 Bug 951793 - Light refactoring to the fling handoff code. r=kats
Passing FlingHandoffState around as an in-out parameter was making
the next change (respecting overscroll-behavior) messy.

MozReview-Commit-ID: 4wuoll20Jt7
2017-11-25 01:29:08 +01:00
Botond Ballo 0f12d12993 Bug 951793 - Obey overscroll-behavior for immediate scroll handoff. r=kats
MozReview-Commit-ID: JPJOK8A1PQ
2017-11-25 01:29:05 +01:00
Botond Ballo df8a5f5637 Bug 951793 - Add a few utility functions to expose the overscroll behavior in relevant places in APZ. r=kats
MozReview-Commit-ID: 4wFfUY5p6J5
2017-11-25 01:29:03 +01:00
Botond Ballo 41aac0b97c Bug 951793 - Store the overscroll behavior in ScrollMetadata and propagate it to APZ. r=mstange
MozReview-Commit-ID: J7Vkd941QxK
2017-11-25 01:29:01 +01:00
Sebastian Hengst 6d4637aebb Backed out 15 changesets (bug 951793) because it landed before the necessary servo changes. r=backout requested by emilio on a CLOSED TREE
Backed out changeset ca8c86e229df (bug 951793)
Backed out changeset 6eef6403fa71 (bug 951793)
Backed out changeset a5e529f52fb1 (bug 951793)
Backed out changeset 054e837609d0 (bug 951793)
Backed out changeset 713a3c9617ce (bug 951793)
Backed out changeset 884913aa1668 (bug 951793)
Backed out changeset c3340b84e534 (bug 951793)
Backed out changeset 50fe3c6ac486 (bug 951793)
Backed out changeset be4e22e5c257 (bug 951793)
Backed out changeset 7055bd5dfc4e (bug 951793)
Backed out changeset fa6da1e723cf (bug 951793)
Backed out changeset 386f77004d89 (bug 951793)
Backed out changeset fa82cdc01408 (bug 951793)
Backed out changeset 867d8ea5355c (bug 951793)
Backed out changeset e61ac8e48971 (bug 951793)
2017-11-25 01:01:41 +02:00
Botond Ballo 15fa114637 Bug 951793 - Add overscroll-behavior to the layer dump. r=kats
MozReview-Commit-ID: 629DKmrbVIi

--HG--
extra : rebase_source : 930e5c558a7bef5b1a816a9b8c37b271cc4f155b
2017-10-25 13:21:49 -04:00
Botond Ballo 3ddd46e5f1 Bug 951793 - Obey overscroll-behavior for swipe navigation. r=mstange
MozReview-Commit-ID: i2BuiAfG71

--HG--
extra : rebase_source : 9fd9b60db5c6e5f01033f6dca934024ce488cedb
2017-10-23 18:27:24 -04:00
Botond Ballo c956e489bc Bug 951793 - Obey overscroll-behavior for any overscroll effect. r=kats
MozReview-Commit-ID: HyATx3aCmmm

--HG--
extra : rebase_source : 43f8d69a8e10f778179e77679cb7581b95d25b87
2017-11-03 16:07:46 -04:00
Botond Ballo bfb1cd4ddd Bug 951793 - Obey overscroll-behavior for wheel and pan gesture events. r=kats
MozReview-Commit-ID: EmbsMu9Esww

--HG--
extra : rebase_source : f681f55f274757be4965e6c912e514e81e8b1c8f
2017-11-17 18:52:58 -05:00
Botond Ballo 15d10c1b0d Bug 951793 - Obey overscroll-behavior for fling handoff. r=kats
MozReview-Commit-ID: 9i2AgmW3Inm

--HG--
extra : rebase_source : 429438b26c2ab0b75690f87bd6b9b0b9187a4567
2017-11-03 16:03:38 -04:00
Botond Ballo 2f514da8d8 Bug 951793 - Light refactoring to the fling handoff code. r=kats
Passing FlingHandoffState around as an in-out parameter was making
the next change (respecting overscroll-behavior) messy.

MozReview-Commit-ID: 4wuoll20Jt7

--HG--
extra : rebase_source : c5d843254a38196547119419d1a2ad1fd0f3ef09
2017-11-03 13:07:48 -04:00
Botond Ballo d561386618 Bug 951793 - Obey overscroll-behavior for immediate scroll handoff. r=kats
MozReview-Commit-ID: JPJOK8A1PQ

--HG--
extra : rebase_source : 6603bb5e524bfb5cca5a9b4d23ebec2151d8bfb4
2017-10-20 19:16:44 -04:00
Botond Ballo 5d380ebb1c Bug 951793 - Add a few utility functions to expose the overscroll behavior in relevant places in APZ. r=kats
MozReview-Commit-ID: 4wFfUY5p6J5

--HG--
extra : rebase_source : 6e1e0fe0b3975bdd60b5cb13af950d74ea849d2f
2017-10-20 19:31:02 -04:00
Botond Ballo 69d3063396 Bug 951793 - Store the overscroll behavior in ScrollMetadata and propagate it to APZ. r=mstange
MozReview-Commit-ID: J7Vkd941QxK

--HG--
extra : rebase_source : f9d0f664f17f4efe34a21064cbbf259642fe3caf
2017-10-18 20:13:19 -04:00
Ciure Andrei f8979ebb32 Merge mozilla-central to autoland. r=merge a=merge CLOSED TREE 2017-11-25 00:17:48 +02:00
Ciure Andrei 327405164b Merge inbound to mozilla-central r=merge a=merge 2017-11-25 00:04:02 +02:00
peter chang e28fd08cee Bug 1375424 - Enable the GPU time out mechanism for WR, r=sotaro
MozReview-Commit-ID: JlsODvvdQiJ

--HG--
extra : rebase_source : bab4170b1e47652e33c5395342490d992735d713
2017-11-24 14:27:00 +08:00
Andrew Osmond 675137dd9f Bug 1419767 - Remove gfxPlatform::CanRenderContentToDataSurface. r=nical
Factory::DoesBackendSupportDataDrawtarget already fulfills the same
purpose and we should use that instead, as imgFrame is the only user of
the former API. It has the added bonus of allowing us to use shared
surfaces on Linux with WebRender, and using volatile surfaces on Windows
when D2D is disabled.
2017-11-24 08:10:03 -05:00
Kartikaya Gupta dcc1822a45 Bug 1418387 - Find the appropriate scrollbar node in GetAPZCAtPointWR. r=botond
MozReview-Commit-ID: Fb4465Gaj7K

--HG--
extra : rebase_source : 647e617326d5e45dde0eb22b3ba9ac7cc03f7096
2017-11-24 16:23:06 -05:00
Kartikaya Gupta c82aeb4865 Bug 1418387 - Add CompositorHitTestInfo bits for scrollbars. r=mstange
MozReview-Commit-ID: KTfpXoESOxF

--HG--
extra : rebase_source : d1db8909b1b075f885b08c86ebca7ef51fd250e0
2017-11-24 16:23:06 -05:00
Kartikaya Gupta 4f10904eb2 Bug 1418387 - Add missing tree lock. r=botond
This is follow-up to bug 1417519, to fix an incorrect change in that bug.

GetAPZCAtPointWR calls things like FindRootApzcForLayersId which require
the tree lock to be held, so we should hold it. It makes more sense to
hold the lock across the whole GetTargetAPZC function since we don't want
tree mutations to happen while we're in this function.

It also means we can't call GetTargetAPZC inside GetAPZCAtPointWR
because that will recursively try to pick up the tree lock; instead we
can use GetTargetNode and get the APZC from that.

MozReview-Commit-ID: 7ZXQMMes8hV

--HG--
extra : rebase_source : 1c9650e6fb720ef26daf63151cd1f6b144aa8ffb
2017-11-24 16:23:05 -05:00
Kartikaya Gupta 0fab36e756 Bug 1418387 - Propagate scrollbar direction for scrollbar containers to APZ. r=botond
Most of this patch is just mechanical changes, but note that this patch
now makes the mFlags in scrollbar-container nsDisplayOwnLayer instances
have one of the direction bits set. As a result, this requires changing
the implementation of nsDisplayOwnLayer::IsScrollThumbLayer().

MozReview-Commit-ID: 2BLdbpz5Sa8

--HG--
extra : rebase_source : 27e7d90ce60c7f702fe77d8a3a0f7e3ae3e4a4ff
2017-11-24 16:23:05 -05:00
Kartikaya Gupta b799d00298 Bug 1418387 - Fix bugs that C++ should really catch for us. r=botond
MozReview-Commit-ID: EZWPBruZXdv

--HG--
extra : rebase_source : 89e2ed062dab713e6853be275fb248197c7ced03
2017-11-24 16:23:03 -05:00
sotaro dff4491cb4 Bug 1391159 - Handle WebRender ProgramBinary usage r=nical 2017-11-24 20:58:24 +09:00
arthur.iakab 63f0034937 Merge mozilla central to inbound r=merge a=merge on a CLOSED TREE 2017-11-24 12:07:48 +02:00
arthur.iakab dfc104159a Merge inbound to central r=merge a=merge 2017-11-24 12:00:30 +02:00
sotaro cfdcc07b34 Bug 1419307 - Make WebRenderAPI::~WebRenderAPI() fast r=nical 2017-11-24 18:34:50 +09:00