Closed Bug 1148868 Opened 9 years ago Closed 9 years ago

Allow OS X APZ to assume e10s as a prerequisite

Categories

(Core :: Panning and Zooming, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla40
Tracking Status
e10s + ---
firefox40 --- fixed

People

(Reporter: mstange, Assigned: mstange)

References

Details

Attachments

(4 files, 1 obsolete file)

At the moment Mac and Windows use a different method of getting events to APZ. Mac uses a separate event thread, and Windows forwards events from the main thread of the parent process, and thus only benefits in e10s mode.
We should make Mac follow Windows initially so that we can benefit from the work that has gone into it. If it turns out that APZ might be ready for shipping before e10s is, we can re-enable the separate event thread on Mac and make it work correctly.
/r/6275 - Bug 1148868 - Put the APZ event thread on Mac behind a pref layers.async-pan-zoom.separate-event-thread that defaults to false.
/r/6277 - Bug 1148868 - Make APZ wheel handling handle pixel scrolling.
/r/6279 - Bug 1148868 - Forward Mac wheel events to APZ.

Pull down these commits:

hg pull review -r 38103c4ebfe4ddd1343bd0a4e0c4c8e043444c65
Attachment #8585126 - Flags: review?(dvander)
https://reviewboard.mozilla.org/r/6277/#review5245

::: widget/InputData.h
(Diff revision 1)
>      // "pixel". For apz, we currently only support "line" mode.

Oops, I guess I need to update this comment.
https://reviewboard.mozilla.org/r/6277/#review5251

::: gfx/layers/apz/src/APZCTreeManager.cpp
(Diff revision 1)
> +DeltaTypeForDeltaMode(uint32_t aDeltaMode)

I would rather put this function in InputData.h than in APZCTreeManager.cpp so it can be reused more easily
Comment on attachment 8585126 [details]
MozReview Request: bz://1148868/mstange

https://reviewboard.mozilla.org/r/6273/#review5261
Attachment #8585126 - Flags: review?(dvander) → review+
tracking-e10s: --- → +
Summary: Concentrate on e10s-APZ on Mac → Allow OS X APZ to assume e10s as a prerequisite
like this?
Attachment #8587047 - Flags: review?(bugmail.mozilla)
Comment on attachment 8587047 [details] [diff] [review]
just the pixel  scrolling patch

Review of attachment 8587047 [details] [diff] [review]:
-----------------------------------------------------------------

r+ but this will need rebasing around bug 1139220 (parts 3 and 5 at least). Not sure who will land first.
Attachment #8587047 - Flags: review?(bugmail.mozilla) → review+
I did a try run w/ APZ forced on and the test fixes from bug 1140293:
  https://treeherder.mozilla.org/#/jobs?repo=try&revision=8375ad7f0f34

When I also apply pixel scrolling support:
  https://treeherder.mozilla.org/#/jobs?repo=try&revision=cf436a97b40c

We have some additional failures in M-2 and M-oth.
List of the new failing tests:
> TEST-UNEXPECTED-FAIL | dom/events/test/test_bug574663.html | Normal scrolling should scroll - didn't expect 0, but got it
> TEST-UNEXPECTED-FAIL | dom/events/test/test_bug574663.html | Test timed out. - expected PASS
> TEST-UNEXPECTED-FAIL | dom/events/test/test_bug607464.html | Pixel scrolling should have finished after one refresh driver iteration. We shouldn't be scrolling smoothly, even though the pref is set. - got 0, expected 15
> TEST-UNEXPECTED-FAIL | dom/events/test/test_wheel_default_action.html | doTestScroll(aSettings=all delta values are not customized), Scroll to only bottom by oblique pixel wheel event with overflow-x: hidden: not scrolled down, got 1000 - expected PASS
> TEST-UNEXPECTED-FAIL | layout/generic/test/test_bug632379.xul | Popup should open in the same place when the menu is scrolled - got 52, expected 32
> TEST-UNEXPECTED-FAIL | toolkit/content/tests/chrome/test_mousescroll.xul | testRichListbox(richlistbox): vertical, starting 5 delta -32 lineOrPageDeltaY -1 aDeltaMode 0 - got 0, expected -1
Attachment #8585126 - Attachment is obsolete: true
Attachment #8619909 - Flags: review+
Attachment #8619910 - Flags: review+
Attachment #8619911 - Flags: review+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: