Closed Bug 1245285 Opened 8 years ago Closed 8 years ago

Prevent AsyncPanZoomController from repainting Zoom and Overscroll animations until animation has completed

Categories

(Core :: Panning and Zooming, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla47
Tracking Status
firefox47 --- fixed

People

(Reporter: rbarker, Assigned: rbarker)

References

Details

Attachments

(3 files, 1 obsolete file)

      No description provided.
This code is left over from when C++APZ did not send continuous repaint requests during animations.
Attachment #8715022 - Flags: review?(botond)
Assignee: nobody → rbarker
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)
Summary: AsyncPanZoomController::ZoomToRect needlessly sends repaint request for final FrameMetric state → Prevent AsyncPanZoomController from repainting Zoom and Overscroll animations until animation has completed
Attachment #8715470 - Flags: review?(botond)
Attachment #8715471 - Flags: review?(botond)
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 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+
Attachment #8715499 - Flags: review?(botond) → review+
Those failures are more likely to be from my bug 990916. I'll take a look.
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).
Yes, you can reland, sorry for the churn, I was nearly asleep and not doing things right.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: