Closed
Bug 1245285
Opened 9 years ago
Closed 9 years ago
Prevent AsyncPanZoomController from repainting Zoom and Overscroll animations until animation has completed
Categories
(Core :: Panning and Zooming, defect)
Core
Panning and Zooming
Tracking
()
RESOLVED
FIXED
mozilla47
| Tracking | Status | |
|---|---|---|
| firefox47 | --- | fixed |
People
(Reporter: rbarker, Assigned: rbarker)
References
Details
Attachments
(3 files, 1 obsolete file)
|
6.04 KB,
patch
|
botond
:
review+
|
Details | Diff | Splinter Review |
|
3.62 KB,
patch
|
botond
:
review+
|
Details | Diff | Splinter Review |
|
9.22 KB,
patch
|
botond
:
review+
|
Details | Diff | Splinter Review |
No description provided.
| Assignee | ||
Comment 1•9 years ago
|
||
This code is left over from when C++APZ did not send continuous repaint requests during animations.
| Assignee | ||
Comment 2•9 years ago
|
||
| Assignee | ||
Updated•9 years ago
|
Attachment #8715022 -
Flags: review?(botond)
| Assignee | ||
Comment 3•9 years ago
|
||
| Assignee | ||
Updated•9 years ago
|
Assignee: nobody → rbarker
Comment 4•9 years ago
|
||
Comment on attachment 8715022 [details] [diff] [review]
0001-Bug-1245285-AsyncPanZoomController-ZoomToRect-needlessly-sends-repaint-request-for-final-FrameMetric-state-r-16020214-9ae9978.patch
Review of attachment 8715022 [details] [diff] [review]:
-----------------------------------------------------------------
We had an IRC discussion about this. The conclusion was that it would be better to avoid per-frame repaints for zoom animations, and keep this ahead-of-time repaint for the final resolution.
Attachment #8715022 -
Flags: review?(botond)
| Assignee | ||
Updated•9 years ago
|
Summary: AsyncPanZoomController::ZoomToRect needlessly sends repaint request for final FrameMetric state → Prevent AsyncPanZoomController from repainting Zoom and Overscroll animations until animation has completed
| Assignee | ||
Comment 5•9 years ago
|
||
Attachment #8715022 -
Attachment is obsolete: true
| Assignee | ||
Comment 6•9 years ago
|
||
| Assignee | ||
Updated•9 years ago
|
Attachment #8715470 -
Flags: review?(botond)
| Assignee | ||
Updated•9 years ago
|
Attachment #8715471 -
Flags: review?(botond)
Comment 7•9 years ago
|
||
Comment on attachment 8715470 [details] [diff] [review]
0001-Bug-1245285-part-1-Remove-unused-mRepaintInterval-from-AsyncPanZoomAnimation-r-16020312-3ed97b7.patch
Review of attachment 8715470 [details] [diff] [review]:
-----------------------------------------------------------------
As a follow-up, please remove the prefs apz.fling_repaint_interval and apz.smooth_scroll_repaint_interval (the declaration in gfxPrefs.h, the description in AsyncPanZoomController.cpp, and lines setting it in modules/libpref/init/all.js).
And since we're cleaning up anyways, might as well do the same for apz.pan_repaint_interval, which is already unused.
Attachment #8715470 -
Flags: review?(botond) → review+
Comment 8•9 years ago
|
||
Comment on attachment 8715471 [details] [diff] [review]
0002-Bug-1245285-part-2-Prevent-Zoom-and-Overscroll-animations-from-repainting-durring-animation-r-16020312-9c339003.patch
Review of attachment 8715471 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks!
Attachment #8715471 -
Flags: review?(botond) → review+
| Assignee | ||
Comment 9•9 years ago
|
||
Attachment #8715499 -
Flags: review?(botond)
Updated•9 years ago
|
Attachment #8715499 -
Flags: review?(botond) → review+
Comment 10•9 years ago
|
||
Comment 11•9 years ago
|
||
Comment 12•9 years ago
|
||
Those failures are more likely to be from my bug 990916. I'll take a look.
Comment 13•9 years ago
|
||
I filed bug 1245830 for the intermittent failure. Personally I think you should be able to reland this but the sheriffs might prefer that I land the fix for the intermittent first (or they might want to back out bug 990916 but as the intermittent seems low-volume I hope not).
Comment 14•9 years ago
|
||
Yes, you can reland, sorry for the churn, I was nearly asleep and not doing things right.
Comment 15•9 years ago
|
||
Comment 16•9 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/7e7eb92b6856
https://hg.mozilla.org/mozilla-central/rev/4436ae606459
https://hg.mozilla.org/mozilla-central/rev/c9506e817fe1
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
You need to log in
before you can comment on or make changes to this bug.
Description
•