Nicholas Nethercote
a35e82f193
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
Ethan Lin
f22d91c79b
Bug 1404091 - In layers-free mode, we should do NotifyInvalidation after EndTransaction if there is any scheduled flush. r=kats
...
MozReview-Commit-ID: D0LNF0LgWYq
2017-10-03 16:00:38 +08:00
Wes Kocher
cec163f0db
Merge m-c to autoland, a=merge
...
MozReview-Commit-ID: IMdYxijQ9ie
2017-08-21 17:20:06 -07:00
Stone Shih
29777f0aae
Bug 1361067 Part2: Coalesce mouse move events to be once per refresh cycle. r=smaug.
...
MozReview-Commit-ID: 6jwQxxNIC2n
2017-08-11 14:58:08 +08:00
Botond Ballo
3f5caab980
Bug 1340684 - Fire the scroll event before the style flush. r=mstange
...
This ensures that if the scroll event triggers style changes, they are
reflected on the same paint.
This is accomplished by having the refresh driver fire scroll events as
an explicit step after FlushType::Style observers and rAF callbacks, and
before the actual style flush.
MozReview-Commit-ID: 4kgauD5SgVo
2017-08-09 21:08:38 -04:00
Stone Shih
419a19e980
Bug 1351148 Part2: Add a priority queue for input events. r=smaug.
...
MozReview-Commit-ID: 5ud1Ex9UNVo
2017-03-21 15:44:12 +08:00
Stone Shih
cb61054c6c
Backed out changeset 46d8f42863af (bug 1351148)
2017-08-11 15:19:44 +08:00
Stone Shih
9477e7b2db
Bug 1351148 Part2: Add a priority queue for input events. r=smaug.
...
MozReview-Commit-ID: 5ud1Ex9UNVo
2017-03-21 15:44:12 +08:00
Carsten "Tomcat" Book
26135cd76d
Backed out changeset 284af26c1b53 (bug 1351148)
2017-07-28 09:20:27 +02:00
Stone Shih
e0dd0293e8
Bug 1351148 Part2: Add a priority queue for input events. r=smaug.
...
MozReview-Commit-ID: 5ud1Ex9UNVo
2017-03-21 15:44:12 +08:00
Kartikaya Gupta
efcbc5315f
Bug 1378966 - Don't cause immediate throttling of the refresh driver on repeat transactions. r=mattwoodrow
...
MozReview-Commit-ID: 8orAmdpIRTF
2017-07-12 09:10:25 -04:00
Olli Pettay
6f309a81d2
Bug 1375491, make child process to cache ime properties only at animation tick time, r=masayuki
2017-06-29 14:46:11 +03:00
Olli Pettay
6416d12291
Bug 1375484 - ScrollSelectionIntoViewEvent should be called during refresh driver tick, r=ehsan
2017-06-25 00:38:42 +03:00
Olli Pettay
c08aeee071
Bug 1367905 - Try to run GC/CC slices, including forgetSkippable, during idle time, r=mccr8
2017-06-10 02:38:50 +03:00
Wes Kocher
d94d0e78b3
Backed out 2 changesets (bug 1367905) for a spike in Windows reftest failures a=backout
...
Backed out changeset c5aaa3f7b79e (bug 1367905)
Backed out changeset 1c66da2b1e88 (bug 1367905)
MozReview-Commit-ID: IX632WoWHrO
2017-06-08 16:09:28 -07:00
Olli Pettay
01a6a06f80
Bug 1367905 - Try to run GC/CC slices, including forgetSkippable, during idle time, r=mccr8
2017-06-07 23:46:31 +03:00
Carsten "Tomcat" Book
4960a7d0ca
Backed out changeset ff33e6c6f6a5 (bug 1367905) for memory leaks
2017-06-07 15:13:37 +02:00
Olli Pettay
e0c64e438d
Bug 1367905 - Try to run GC/CC slices, including forgetSkippable, during idle time, r=mccr8
2017-06-06 20:41:34 +03:00
Andreas Farre
133e7398de
Bug 1311425 - Prepare for handling several sources of idleness, r=smaug
2017-05-24 21:11:12 -04:00
Timothy Nikkel
cafba44425
Bug 1352074. Remove high precision timer mode from refresh driver because it is not needed with vsync based refresh drivers. r=mchang
...
Bug 731974 added this code to get more accurate timer callbacks back when the refresh driver was based on timers. It shouldn't be needed anymore now that the refresh driver is based on vsync.
2017-04-04 00:14:28 -05:00
Samael Wang
fb90ba2dfe
Bug 1283947 - Clear pending transactions when ClientLayerManager is assigning to a different refresh driver. r=mattwoodrow
2017-03-09 18:35:50 +08:00
Matt Woodrow
96389b5cf7
Bug 1302071 - Part 1: Remove AddPresShellToInvalidateIfHidden since it doesn't appear to be necessary. r=tnikkel
...
We added this so that MozAfterPaint events would be delivered to hidden documents as part of bug 539356, but I don't remember what needed it.
It doesn't appear to be necessary for any tests any more, so let's just get rid of it
MozReview-Commit-ID: HcmIjstZyLQ
2017-02-17 11:49:29 +13:00
Tobias Schneider
16eed66e0c
Bug 1319134 - (intersection-observer) Switch from idle callback to post task. r=mstange
...
MozReview-Commit-ID: BJTmIWqkVn5
2017-02-08 10:34:02 -08:00
Kartikaya Gupta
a2a492cb06
Bug 1312319 - Add a NS_INLINE_DECL_PURE_VIRTUAL_REFCOUNTING macro and replace existing pure-virtual AddRef/Release declarations. r=froydnj
...
MozReview-Commit-ID: 5yt3O4Hoois
2017-01-25 14:51:34 -05:00
Nathan Froyd
1163f53bac
Bug 1142197 - manage ProfilerBacktrace with UniquePtr; r=mstange
...
Smart pointers are better than raw pointers.
2017-01-06 09:21:01 -05:00
Cameron McCormack
5f9911da79
Bug 1328832 - Part 2: Rename mozFlushType to mozilla::FlushType and make it an enum class. r=bzbarsky
...
MozReview-Commit-ID: D3fIngSHSsl
2017-01-05 15:31:56 +08:00
Cameron McCormack
a35ad172e6
Bug 1328832 - Part 1: Rename mozFlushType.h to FlushType.h. r=bzbarsky
...
MozReview-Commit-ID: 1ubwNkBEdfz
2017-01-05 14:54:02 +08:00
Phil Ringnalda
f248bc19c8
Merge m-i to m-c, a=merge
2016-10-30 10:55:00 -07:00
Tobias Schneider
0b1c8478a1
Bug 1243846 - Implement Intersection Observer API. r=mrbkap, r=mstange
2016-10-28 10:24:00 -04:00
Andreas Farre
b6e8a0530c
Bug 1198381 - Implement the requestIdleCallback feature, r=froydnj,mattwoodrow,smaug
...
Expose requestIdleCallback on Window and implement running callbacks
in idle periods by posting rICs to the main threads idle queue.
MozReview-Commit-ID: KSYQsyaZ6is
2016-08-22 14:52:45 +02:00
Carsten "Tomcat" Book
3fb3787b20
Backed out changeset eb2606332cb8 (bug 1198381)
2016-10-25 12:32:54 +02:00
Andreas Farre
a990fe8f33
Bug 1198381 - Implement the requestIdleCallback feature, r=froydnj,mattwoodrow,smaug
...
Expose requestIdleCallback on Window and implement running callbacks
in idle periods by posting rICs to the main threads idle queue.
MozReview-Commit-ID: KSYQsyaZ6is
2016-08-22 14:52:45 +02:00
Olli Pettay
fffb815d77
Bug 1308459 - Rename RefreshDriver::PresContext() to hint about its behavior, r=tnikkel
2016-10-12 14:27:38 +03:00
Joel Maher
dc82a36645
Backout 472858f465b0 (Bug 1290158) for perf regression.
...
MozReview-Commit-ID: 92eO5YtKLoj
2016-09-23 06:20:33 -04:00
Neil Rashbrook
64d79b3dcf
Bug 1290158 Don't generate synthetic paint events for invisible documents r=mattwoodrow
2016-09-14 15:55:45 +01:00
Nicolas Silva
3df2d5ed10
Bug 1298085 - Don't unthrottle the refresh driver after 200ms when waiting for compositor transactions. r=mchang
2016-09-09 12:06:29 +02:00
Emilio Cobos Álvarez
95dc632f01
Bug 1286445: stylo: Support restyles of non-pseudo content on state change. r=heycam
...
This includes, for example :hover.
Also removes the call to IsStyledByServo() in the document constructor, it's not
only unnecessary, but also we call UpdateStyleBackendType() too early.
MozReview-Commit-ID: 4YfCdmLoSxu
2016-07-16 16:22:12 -07:00
Kyle Huey
ab5fe91f6b
Bug 1273737: Shutdown the refresh driver when there are no more refresh drivers. r=dbaron,mchang
2016-06-06 06:51:15 -07:00
Xidorn Quan
1a169dea39
Bug 1267568 part 4 - Replace InFullscreenChange flag of PresShell with IsResizeSuppressed flag in RefreshDriver. r=smaug
...
MozReview-Commit-ID: FB3vGXwKZ9O
2016-05-03 17:58:57 +10:00
Mike Conley
d6ec983152
Bug 1264409 - Make last transaction ID available via nsIDOMWindowUtils, and pass transaction ID through MozAfterPaint. r=mattwoodrow,mrbkap
...
MozReview-Commit-ID: 7wCYif8F6ws
2016-04-13 16:59:15 -04:00
Seth Fowler
0f24c44100
Bug 1157546 - Replace the image visibility API with a more general API that tracks visibility for any kind of frame. r=mstange
2016-03-25 14:49:43 -07:00
Birunthan Mohanathas
bfee0fb40c
Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj
2016-02-02 17:36:30 +02:00
Hiroyuki Ikezoe
cdd75e42cf
Bug 1235478 - Part 2: Don't update mMostRecentRefresh when nsRefreshDriver::ScheduleViewManagerFlush is called. r=mchang
2016-01-05 12:50:59 +09:00
Hiroyuki Ikezoe
a1055ecf14
Bug 1235478 - Part 1: Rename eAdjustingTimer to eForceAdjustTimer. r=mchang
2016-01-05 12:50:59 +09:00
Phil Ringnalda
d871b9515f
Back out 7 changesets (bug 1235261) for cpptest failures in TestTArray
...
CLOSED TREE
Backed out changeset d66c3f19a210 (bug 1235261)
Backed out changeset 467d945426bb (bug 1235261)
Backed out changeset 32b61df13142 (bug 1235261)
Backed out changeset c50bb8ed4196 (bug 1235261)
Backed out changeset 0ff0fa6fe81f (bug 1235261)
Backed out changeset df70e89669da (bug 1235261)
Backed out changeset 064969357fc9 (bug 1235261)
2016-01-31 10:10:57 -08:00
Birunthan Mohanathas
245cd6a02f
Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj
2016-01-31 17:12:12 +02:00
David Rajchenbach-Teller
6ddd95efcc
Bug 1219144 - Using the nsRefreshDriver's jank indication for performance monitoring;f?froydnj r=froydnj
...
This patch (currently WIP) alters the way we determine whether jank is user-visible or not.
Instead of measuring the total time spent doing JS, we now use an
indicator provided by the vsync driver: how long it takes to deliver
the signal from the vsync timer to the main thread. This lets us find
out more accurately if there is user-visible jank. In the future, this
will also let us add an observer to find out whether the process
itself is janky, regardless of JS.
2016-01-14 15:07:18 +01:00
Wes Kocher
b6be336cce
Backed out 2 changesets (bug 1235478) for possibly breaking weightmapping-12579.html CLOSED TREE
...
Backed out changeset 02784824ebf1 (bug 1235478)
Backed out changeset 02c3c24dff8c (bug 1235478)
2016-01-05 16:48:24 -08:00
Hiroyuki Ikezoe
94c711598d
Bug 1235478 - Part 2: Don't update mMostRecentRefresh when nsRefreshDriver::ScheduleViewManagerFlush is called. r=mchang
2016-01-05 12:50:59 +09:00
Hiroyuki Ikezoe
fbe01ca32a
Bug 1235478 - Part 1: Rename eAdjustingTimer to eForceAdjustTimer. r=mchang
2016-01-05 12:50:59 +09:00