Commit Graph

10551 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
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
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
87626a0ece merge mozilla-central to autoland. r=merge a=merge 2017-10-14 00:02:17 +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
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
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
Nicholas Nethercote
bbfec72b95 Bug 1406296 (part 3) - Remove the profiler's "gpu" feature. r=mstange,jrmuizel.
This allows a bunch of additional stuff to be removed: ContextStateTracker,
ContextStateTrackerOGL, and GPUMarkerPayload.

--HG--
extra : rebase_source : 879045a9f9ac31ca0beb596964c6c3ef30283a53
2017-10-06 17:35:44 +11:00
Nicholas Nethercote
4bedc03a3d Bug 1406296 (part 2) - Remove the profiler's "layersdump" feature. r=mstange.
Because it just doesn't control any behaviour within the profiler, and it just
duplicates gfxPrefs::LayersDumpTexture().

With this gone, PROFILER_FEATURE_ACTIVE can also be removed.

--HG--
extra : rebase_source : d6718894b8a9332cf73729ea6b7bd2de348817bd
2017-10-06 17:34:22 +11:00
Nicholas Nethercote
706daca552 Bug 1406296 (part 1) - Remove the profiler's "displaylistdump" feature. r=mstange.
It's not useful.

--HG--
extra : rebase_source : b18244b6f1e28b29f1f71a4cca55781316e2cdc5
2017-10-06 17:33:30 +11:00
Sebastian Hengst
5c00b8540d merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: AlcL6XYDkf
2017-10-12 23:58:31 +02:00
vincentliu
eaa646a782 Bug 1403539 - Skip to PushImage in WebRenderCommandsBuilder if AddXXXImage fails to return. r=nical 2017-10-12 10:25:34 +08:00
sotaro
715045bde3 Bug 1405481 - Suppress to composite when END_NO_COMPOSITE is set r=jrmuizel 2017-10-12 10:13:31 +09:00
sotaro
a0a80f919e Bug 1405481 - Push canvas updates to the compositor on empty transactions r=jrmuizel 2017-10-12 10:13:10 +09:00
Morris Tseng
0ccd47dc22 Bug 1403459 - Passing transform-style from display item directly. r=kats
MozReview-Commit-ID: JVhjSFmvnAq

--HG--
extra : rebase_source : a1c4bb15d1679d650ece0af6ddbe052c5a61034b
2017-09-25 11:19:12 +08:00
Ethan Lin
c060e4e17c Bug 1394309 - Part4. Take the border clip as an extra clip. r=kats
MozReview-Commit-ID: 8I5NTxk538c

--HG--
extra : rebase_source : 4c2f8d920612ab8420e17cd459ad7f7bb87c6dc6
2017-10-11 17:33:35 +08:00
Jeff Muizelaar
4c11ad7643 Bug 1407654. Inline ToRelativeLayoutPoint. r=kats
This is a very short function and is showing up in profiles because
it's used inside of a hot loop while we're constructing glyph runs.
2017-10-11 11:44:41 -04:00
Sebastian Hengst
3c466b2f77 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-10-11 11:54:59 +02:00
David Anderson
ef626c4458 Support component-alpha for intermediate surfaces in Advanced Layers. (bug 1402737 part 2, r=mattwoodrow)
--HG--
extra : rebase_source : dc2121d9f479f8c75237cae8ad4ea9f751f42ab6
2017-10-10 17:39:42 -07:00
David Anderson
2b8bc13b5c Remove the ability for LayerManagers to disable complex component alpha cases. (bug 1402737 part 1, r=mattwoodrow)
--HG--
extra : rebase_source : be0a1fb30936acb12d74953b4e599b107b0a0db2
2017-10-10 17:39:41 -07:00
David Anderson
6f05ce71c9 Collect data on how long the main thread blocks on the paint thread. (bug 1386968, r=milan, data_r=francois)
--HG--
extra : rebase_source : d82b658f0383787a7d09ac04d2f5ad66eb4be314
2017-10-10 16:52:24 -07:00
Sebastian Hengst
01cd7f3d0f merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: GbmY183Epi2
2017-10-10 23:56:11 +02:00
sotaro
2935e1ba35 Bug 1407149 - Add immediate context pointer check to d3d images r=nical 2017-10-10 19:09:37 +09:00
Kevin Chen
57ae515fa5 Bug 1406305 - Remove unused arguments in StackingContextHelper's constructor; r=kats
MozReview-Commit-ID: 47owLOUhMBM
2017-10-06 15:06:08 +08:00
Kevin Chen
2c8e8eae56 Bug 1401898 - Add root StackingContext for WebRenderCommandBuilder which prevents Webrender from treating the first StackingContext as page root and setting the wrong isolation mode; r=kats
MozReview-Commit-ID: 5EBBgPpOGbv
2017-10-05 14:59:10 +08:00
Jamie Nicol
7417b9b0d4 Bug 1395138 - Hold reference to layers in ContainerLayerComposite::mPrepared. r=mattwoodrow
MozReview-Commit-ID: 6qUDRnRcFAw
2017-10-09 12:48:31 +01:00
Sebastian Hengst
aa78440a09 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: EE6DcCgHufi
2017-10-09 11:19:20 +02:00
Nicholas Nethercote
8a68e6fb83 Bug 1403868 (part 4) - Reduce tools/profiler/public/*.h to almost nothing in non-MOZ_GECKO_PROFILER builds. r=mstange.
Currently the Gecko Profiler defines a moderate amount of stuff when
MOZ_GECKO_PROFILER is undefined. It also #includes various headers, including
JS ones. This is making it difficult to separate Gecko's media stack for
inclusion in Servo.

This patch greatly simplifies how things are exposed. The starting point is:

- GeckoProfiler.h can be #included unconditionally;

- everything else from the profiler must be guarded by MOZ_GECKO_PROFILER.

In practice this introduces way too many #ifdefs, so the patch loosens it by
adding no-op macros for a number of the most common operations.

The net result is that #ifdefs and macros are used a bit more, but almost
nothing is exposed in non-MOZ_GECKO_PROFILER builds (including
ProfilerMarkerPayload.h and GeckoProfiler.h), and understanding what is exposed
is much simpler than before.

Note also that in BHR, ThreadStackHelper is now entirely absent in
non-MOZ_GECKO_PROFILER builds.
2017-10-04 09:11:18 +11:00
Nicholas Nethercote
cbc9fbb2bf Bug 1403868 (part 2) - Tweak profiler_tracing(). r=mstange.
This patch does the following.

- Makes the TracingKind argument non-optional.

- Puts the UniqueProfilerBacktrace argument last in the second variant.

- Reorders AutoProfilerTracing to match the order of the profiler_tracing()
  declarations.

--HG--
extra : rebase_source : 8e9acdaf777c642cd854570771a3f96da6d524d1
2017-10-03 19:48:10 +11:00
sotaro
5984c151ad Bug 1406707 - Change WebRenderBridgeChild::BeginTransaction() as to return void r=kats 2017-10-09 09:11:49 +09:00