Closed
Bug 807472
Opened 14 years ago
Closed 14 years ago
Don't call NotifyDidPaint more than once per paint
Categories
(Core :: Graphics, defect)
Tracking
()
RESOLVED
FIXED
mozilla19
People
(Reporter: jrmuizel, Assigned: roc)
References
Details
Attachments
(1 file)
|
1.45 KB,
patch
|
mattwoodrow
:
review+
bajaj
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
In this profile http://people.mozilla.com/~bgirard/cleopatra/?report=9dd651fb9b9623449feae2e07cf9445b1a39464a we see NotifyDidPaint being called twice per nsWindow::DispatchStarvedPaints.
For sanity, we should probably just call NotifyDidPaint from nsRefreshDriver::Notify()
| Assignee | ||
Comment 1•14 years ago
|
||
This is odd. It looks like we're calling XPConnect()->NotifyDidPaint() from both PresShell::Paint and PresShell::DidPaintWindow, but the call from PresShell::Paint is conditioned on !(aFlags & nsIPresShell::PAINT_WILL_SEND_DID_PAINT)...
| Assignee | ||
Comment 2•14 years ago
|
||
Assignee: nobody → roc
Attachment #677174 -
Flags: review?(matt.woodrow)
Updated•14 years ago
|
Attachment #677174 -
Flags: review?(matt.woodrow) → review+
| Assignee | ||
Comment 3•14 years ago
|
||
| Assignee | ||
Comment 4•14 years ago
|
||
Do we want this on Aurora? It's kind of a regression.
| Reporter | ||
Comment 5•14 years ago
|
||
(In reply to Robert O'Callahan (:roc) (Mozilla Corporation) from comment #4)
> Do we want this on Aurora? It's kind of a regression.
Sounds nice to me. What caused the regression?
Comment 6•14 years ago
|
||
Status: NEW → RESOLVED
Closed: 14 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
Target Milestone: --- → mozilla19
| Assignee | ||
Comment 7•14 years ago
|
||
DLBI and the refresh driver painting changes that happened before that.
| Assignee | ||
Comment 8•14 years ago
|
||
Comment on attachment 677174 [details] [diff] [review]
fix
[Approval Request Comment]
Bug caused by (feature/regressing bug #): refresh driver painting caused this regression. We turned that off in FF17. So I think we should land this in Aurora so we don't have this issue in FF18 only.
User impact if declined: JS GC will run too often and possibly slow down animated Web pages and games
Testing completed (on m-c, etc.): a few days on m-c
Risk to taking this patch (and alternatives if risky): Regression risk is pretty low; it should only affect JS GC timing.
String or UUID changes made by this patch: none
Attachment #677174 -
Flags: approval-mozilla-aurora?
Comment 9•14 years ago
|
||
Comment on attachment 677174 [details] [diff] [review]
fix
Approving on Aurora as it is a low risk patch for a regression caused in 18
Attachment #677174 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
| Assignee | ||
Comment 10•14 years ago
|
||
Updated•14 years ago
|
status-firefox18:
--- → fixed
status-firefox19:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•