Commit Graph

8259 Commits

Author SHA1 Message Date
Alexandre Lissy
f6ee6d53f2 Bug 1302641 - Update ImageBridgeChild::GetSingleton() use after 1298938 r=nical
MozReview-Commit-ID: Cs7xUcPnPoz
2016-09-14 19:01:21 +02:00
Kartikaya Gupta
ff457cf4f7 Bug 1269067 - Add a gtest to ensure that mouse drag blocks and wheel blocks don't interrupt each other. r=botond
MozReview-Commit-ID: F7FlcaTl4jl
2016-09-14 07:54:37 -04:00
Kartikaya Gupta
51b88e5657 Bug 1289432 - Miscellaneous tweaks to address review comments. rs=botond
MozReview-Commit-ID: B57VOs7rdSH
2016-09-14 07:54:37 -04:00
Kartikaya Gupta
dd5b4ca612 Bug 1289432 - Miscellaneous function renaming and documentation touchups. r=botond
MozReview-Commit-ID: IEUSxcIb0fN
2016-09-14 07:54:37 -04:00
Kartikaya Gupta
fd5138db2a Bug 1289432 - Migrate remaining InputQueue code to use the new mQueuedInput structure instead of the block-based queue. r=botond
MozReview-Commit-ID: 41M1QGp8kcX
2016-09-14 07:54:37 -04:00
Kartikaya Gupta
9e574c3e0d Bug 1289432 - Update a couple more functions to stop fishing around inside mInputBlockQueue. r=botond
MozReview-Commit-ID: TsIGZK43wb
2016-09-14 07:54:37 -04:00
Kartikaya Gupta
5b33e5009a Bug 1289432 - Stop relying on the mEvents array inside the SetConfirmedTargetApzc implementations. r=botond
MozReview-Commit-ID: BG7BmQPa6g9
2016-09-14 07:54:37 -04:00
Kartikaya Gupta
e9b2ac2229 Bug 1289432 - Drop the DispatchImmediate codepath. r=botond
Instead of having this special shortcut case that goes through MaybeHandleCurrentBlock
and DispatchImmediate, we can just add the input to the queue normally and call
ProcessInputBlocks() which effectively does the same thing. Doing it this way
also guarantees that mQueuedInputs is non-empty and mQueuedInputs[0] is the
input currently being processed. This is useful for future patches because it
will allow us to maintain the guarantee that the input block for the input
currently being processed can be readily accessed via GetCurrentInputBlock().

MozReview-Commit-ID: JuVbpsFLURo
2016-09-14 07:54:36 -04:00
Kartikaya Gupta
f8d4e33b0b Bug 1289432 - Allow the CurrentBlock() and CurrentXXXBlock() functions to return null, and guard/assert at the callsites. r=botond
MozReview-Commit-ID: 77LWZBtAB9Y
2016-09-14 07:54:36 -04:00
Kartikaya Gupta
43f18cb292 Bug 1289432 - Update checks for unprocessed events to use mQueuedInputs instead of checking the block is at the head. r=botond
MozReview-Commit-ID: GEHDHhkLPKe
2016-09-14 07:54:36 -04:00
Kartikaya Gupta
e494dee6f9 Bug 1289432 - Switch over to using the mActiveXXXBlock in some places instead of fishing around in mInputBlockQueue. r=botond
Note that this patch has a subtle functional change because the mActiveXXXBlock
variables can remain non-null even if there are no blocks in mInputBlockQueue.
In fact, this patch contains the secret sauce that allows the input queue to
handle interleaved input events, because this ensures that the interleaved events
end up getting associated with the pre-existing active block rather than creating
a new one.

MozReview-Commit-ID: 7GkbSe9IaC4
2016-09-14 07:54:36 -04:00
Kartikaya Gupta
19ed146d8d Bug 1289432 - Start populating the mQueuedInput array with queued input objects. r=botond
Most of the changes to InputBlockState.* are temporary and will be removed in a
future patch, once the transition to using mQueuedInputs is complete. However,
the code is useful as an intermediate step to verify that mQueuedInputs is
maintaining events in the same order and with the same lifetime as the old block-
based queue.

MozReview-Commit-ID: I8lVhMiT4hg
2016-09-14 07:54:36 -04:00
Kartikaya Gupta
05d91128f8 Bug 1289432 - Introduce a skeleton QueuedInput class. r=botond
Note that this patch makes the InputData hierarchy polymorphic.

MozReview-Commit-ID: HrZ2KhHeDoy
2016-09-14 07:54:36 -04:00
Kartikaya Gupta
4b8e63b75c Bug 1289432 - Have the InputQueue keep RefPtrs to the active block of each input type. r=botond
MozReview-Commit-ID: 36MatfdCVS8
2016-09-14 07:54:36 -04:00
Kartikaya Gupta
eebba5eff4 Bug 1289432 - Use RefPtr instead of UniquePtr to hold the block state objects, since there will be multiple references to them soon. r=botond
MozReview-Commit-ID: BhWf1omgfoC
2016-09-14 07:54:36 -04:00
George Wright
2f9a23cf41 Bug 1297565 - Fine tune and update our assertions based on old assumptions which may no longer be valid with a GPU process r=dvander 2016-09-13 22:58:54 -04:00
David Anderson
b5c10b4d4e Ensure IPDL owns a reference to ImageBridgeChild. (bug 1298938 part 6, r=billm)
--HG--
extra : rebase_source : 958b9b9cb6704d5b1d5096f63ef31fb0a8828009
2016-09-13 16:30:57 -07:00
David Anderson
07336b7d13 Protect ImageBridgeChild's singleton with a StaticMutex. (bug 1298938 part 5, r=mattwoodrow)
--HG--
extra : rebase_source : 974ad32cfaf3ba6d1af75d8857f0a35da5aa3641
2016-09-13 16:30:57 -07:00
David Anderson
62129d7cb4 Remove racy ImageBridgeChild shutdown/creation checks. (bug 1298938 part 4, r=nical)
--HG--
extra : rebase_source : 0419df6221d59c4e9b085015d8483267fb3d446f
2016-09-13 16:30:57 -07:00
David Anderson
f80736e0c8 Shutdown XPCOM-dependent resources in ImageBridgeChild at the appropriate time. (bug 1298938 part 3.1, r=mattwoodrow)
--HG--
extra : rebase_source : 9579e1ca6ec1af2fac7cd0fc4574b849cc8b8e12
2016-09-13 16:30:57 -07:00
David Anderson
3da3b0f45c Simplify ImageBridgeChild asynchronous shutdown. (bug 1298938 part 3, r=nical)
--HG--
extra : rebase_source : 04516571d48f85a94d88a8eb424f8e41e04483ca
2016-09-13 16:30:56 -07:00
David Anderson
d1ef6f2696 Simplify ImageBridgeChild asynchronous initialization. (bug 1298938 part 2, r=mattwoodrow)
--HG--
extra : rebase_source : 1bdb57079ca7f3b4c2be6d1bcd5dd3f0ee0c92c1
2016-09-13 16:30:56 -07:00
David Anderson
82339b2d66 Route dispatches in ImageBridgeChild through |this|, not the singleton. (bug 1298938 part 1, r=mattwoodrow)
--HG--
extra : rebase_source : bfadf1b91ad88503d4c37a6b4ac6dcc32cd78ca6
2016-09-13 16:30:56 -07:00
Hiroyuki Ikezoe
f98523cf02 Bug 1216843 - Part 2: Implement effect iteration composition. r=birtles, r=smaug
MozReview-Commit-ID: 6u7WtXwL3y3
2016-09-13 11:48:44 +09:00
Kartikaya Gupta
310bc9b9db Bug 1302128 - Fix a test so that it actually exercises the APZ layerization codepath it intends to exericse. r=botond
MozReview-Commit-ID: 81iyzNtVFuv

--HG--
extra : rebase_source : ebb63cd1f8fdf10aa45285eeec75895d6c432548
2016-09-12 11:48:47 -04:00
Timothy Nikkel
c630475661 Bug 1284350. Backed out changeset bb3bf463c0ec (Bug 1261554 (Part 3) - Visualize Visibility::IN_DISPLAYPORT regions in the APZ minimap visibility debugger. r=botond) 2016-09-12 00:19:08 -05:00
Carsten "Tomcat" Book
0f2c669a48 merge mozilla-inbound to mozilla-central a=merge 2016-09-09 12:02:43 +02:00
Shing Lyu
db11558e50 Bug 1288350 - Temporary reftest list for Stylo vs Gecko test r=heycam,manishearth
--HG--
extra : rebase_source : 4772418bd2813d4e79643a833eb09e47fe893d84
2016-09-05 11:45:39 +08:00
Wes Kocher
14246ed95a Backed out 7 changesets (bug 1298938) for mass leaks a=bustage CLOSED TREE
Backed out changeset d710b5ac1e13 (bug 1298938)
Backed out changeset df832e32e7aa (bug 1298938)
Backed out changeset 3f6883401be4 (bug 1298938)
Backed out changeset e43fc0029b90 (bug 1298938)
Backed out changeset 6dd0b4b22b23 (bug 1298938)
Backed out changeset 81e994db6b8c (bug 1298938)
Backed out changeset a757098353c6 (bug 1298938)
2016-09-08 13:28:14 -07:00
David Anderson
525494dda4 Ensure IPDL owns a reference to ImageBridgeChild. (bug 1298938 part 6, r=billm)
--HG--
extra : rebase_source : dc741004038c3ee4547d00959a35113f4e203ffc
2016-09-08 11:29:32 -07:00
David Anderson
dfe373c79e Protect ImageBridgeChild's singleton with a StaticMutex. (bug 1298938 part 5, r=mattwoodrow)
--HG--
extra : rebase_source : ca2adf8e3a11e35633fdafd8a824e6528a3b7182
2016-09-08 11:29:32 -07:00
David Anderson
91559fcffe Remove racy ImageBridgeChild shutdown/creation checks. (bug 1298938 part 4, r=nical)
--HG--
extra : rebase_source : 47d1a0b3da521d81da9ffea7e259104b508b7415
2016-09-08 11:29:31 -07:00
David Anderson
435ec16468 Shutdown XPCOM-dependent resources in ImageBridgeChild at the appropriate time. (bug 1298938 part 3.1, r=mattwoodrow)
--HG--
extra : rebase_source : 1ea89a87362f86b7730f6a745dbcacb634806e07
2016-09-08 11:28:05 -07:00
David Anderson
f35fc93b1c Simplify ImageBridgeChild asynchronous shutdown. (bug 1298938 part 3, r=nical)
--HG--
extra : rebase_source : 841159573882b9341ca4cca575d27c8ff9e80650
2016-09-08 11:27:35 -07:00
David Anderson
c6665884b8 Simplify ImageBridgeChild asynchronous initialization. (bug 1298938 part 2, r=mattwoodrow)
--HG--
extra : rebase_source : 9ccc253894628c783bb74f96f9df5eae9a0469c0
2016-09-08 11:27:31 -07:00
David Anderson
0ea17f8b9f Route dispatches in ImageBridgeChild through |this|, not the singleton. (bug 1298938 part 1, r=mattwoodrow)
--HG--
extra : rebase_source : 13efa7415ef00ba9dc3ebcc4386b23a7b7d9a7f7
2016-09-08 11:27:26 -07:00
Nicolas Silva
56e5119c61 Bug 1301027 - Remove the matrix * point operator and replace it with TransformPoint methods. r=Bas 2016-09-08 18:26:03 +02:00
Benoit Girard
54e8df5f17 Bug 1251615 - Disallow Copy/Assignment to LayerProperties. r=mstange
MozReview-Commit-ID: KsT3FVXHwQK

--HG--
extra : rebase_source : 76c029baf5045d24f333853079e9af56bc7d8cf8
2016-09-07 15:21:20 -04:00
David Anderson
ce043dd8a4 Remove monitor-related boilerplate in ImageBridgeChild.cpp. (bug 1300050, r=mattwoodrow) 2016-09-06 20:17:53 -07:00
Randall Barker
8adc72b766 Bug 1297853 - White flash when creating a private browsing tab r=jchen,kats 2016-09-06 18:01:36 -07:00
Wes Kocher
f71c6f3bf9 Backed out changeset 4bc688969533 (bug 1300050) for build bustage a=backout CLOSED TREE 2016-09-06 17:18:00 -07:00
David Anderson
f4b2b617e0 Remove monitor-related boilerplate in ImageBridgeChild.cpp. (bug 1300050, r=mattwoodrow) 2016-09-06 16:37:01 -07:00
David Anderson
7d3f5ed5b4 Simplify ImageContainerChild memory management. (bug 1299621 part 2, r=nical) 2016-09-06 15:20:41 -07:00
David Anderson
54ea410375 Move ImageContainerChild to its own file. (bug 1299621 part 1, r=nical) 2016-09-06 15:19:35 -07:00
JerryShih
1ea51c8a63 Bug 1298058 - Use different lock/unlock function for WebVR composition path. r=milan 2016-09-05 01:17:00 -04:00
Sotaro Ikeda
7692219cd3 Bug 1273823 - Optimize CreateSourceSurfaceFromLockedMacIOSurface() r=nical 2016-09-05 17:59:58 -07:00
Brian Birtles
48f29038db Bug 1300045 part 2 - Split KeyframeEffect.cpp into KeyframeEffect{ReadOnly}.cpp r=hiro,smaug
MozReview-Commit-ID: DdBEicunApv

--HG--
rename : dom/animation/KeyframeEffect.cpp => dom/animation/KeyframeEffectReadOnly.cpp
rename : dom/animation/KeyframeEffect.h => dom/animation/KeyframeEffectReadOnly.h
extra : rebase_source : 70063d8ba09c9c457f22771e9b514ddc9fee1612
2016-09-04 16:34:21 +09:00
David Anderson
1c2785873c Refactor CompositableClient memory management. (bug 1299375 part 2, r=nical) 2016-09-02 16:08:49 -07:00
David Anderson
6beb9f31ca Give CompositableChild into its own header and source files. (bug 1299375 part 1, r=nical) 2016-09-02 16:07:56 -07:00
Wes Kocher
a2e7bd60fc Merge m-c to inbound, a=merge 2016-09-02 13:34:10 -07:00