Closed
Bug 1112332
Opened 10 years ago
Closed 9 years ago
Disable all paint heuristics for layers not actively scrolled by APZ
Categories
(Core :: Graphics: Layers, defect)
Tracking
()
RESOLVED
FIXED
mozilla37
People
(Reporter: BenWa, Assigned: BenWa)
References
Details
Attachments
(3 files, 7 obsolete files)
206.64 KB,
text/plain
|
Details | |
7.26 KB,
patch
|
BenWa
:
review+
|
Details | Diff | Splinter Review |
2.99 KB,
patch
|
BenWa
:
review+
bajaj
:
approval-mozilla-b2g34+
|
Details | Diff | Splinter Review |
After a discussion with kats, cwiiis, jrmuizel and mstange I think everyone agree that don't want to use paint heuristics for layers that aren't being scrolled by APZ. For example if the page is animating something it's unexpected to get incomplete or low resolution drawing. See bug 1106611 for instance.
Assignee | ||
Comment 1•10 years ago
|
||
Assignee: nobody → bgirard
Status: NEW → ASSIGNED
Attachment #8539452 -
Flags: review?(bugmail.mozilla)
Assignee | ||
Comment 2•10 years ago
|
||
Comment on attachment 8539452 [details] [diff] [review] patch Review of attachment 8539452 [details] [diff] [review]: ----------------------------------------------------------------- ::: gfx/layers/client/ClientTiledPaintedLayer.cpp @@ +204,5 @@ > + > + FrameMetrics compositorMetrics; > + if (!compositor->LookupCompositorFrameMetrics(parentMetrics.GetScrollId(), > + compositorMetrics)) { > + return false; ahh, these two return statements should be return true now that I think about it.
Comment 3•10 years ago
|
||
Can you add a commit message that describes what the patch is intending to accomplish? Also -U8 for more lines of context would be nice.
Assignee | ||
Comment 4•10 years ago
|
||
Attachment #8539452 -
Attachment is obsolete: true
Attachment #8539452 -
Flags: review?(bugmail.mozilla)
Attachment #8539457 -
Flags: review?(bugmail.mozilla)
Assignee | ||
Comment 5•10 years ago
|
||
I normally do this before landing but here it is.
Attachment #8539457 -
Attachment is obsolete: true
Attachment #8539457 -
Flags: review?(bugmail.mozilla)
Attachment #8539460 -
Flags: review?(bugmail.mozilla)
Comment 6•10 years ago
|
||
Comment on attachment 8539460 [details] [diff] [review] Disable all paint heuristics for layers not actively scrolled by APZ. Review of attachment 8539460 [details] [diff] [review]: ----------------------------------------------------------------- A few things I'd like to see changed: - avoid running the new code if any of the preexisting conditions is true. i.e. do an early return true if !multipleTransactionsNeeded || fixed || !isScrollable. - the new code should be moved into a helper function with meaningful name - the new code should only be run #if !defined(MOZ_WIDGET_ANDROID) || defined(MOZ_ANDROID_APZ) since by default this will always fail on fennec as it doesn't use APZ.
Attachment #8539460 -
Flags: review?(bugmail.mozilla) → feedback+
Assignee | ||
Comment 7•9 years ago
|
||
(In reply to Kartikaya Gupta (email:kats@mozilla.com) from comment #6) > - the new code should only be run #if !defined(MOZ_WIDGET_ANDROID) || > defined(MOZ_ANDROID_APZ) since by default this will always fail on fennec as > it doesn't use APZ. I don't like these defines because it's too easy to miss updating them if we start running this code on desktop.
Assignee | ||
Comment 8•9 years ago
|
||
Attachment #8539460 -
Attachment is obsolete: true
Attachment #8543023 -
Flags: review?(bugmail.mozilla)
Assignee | ||
Comment 9•9 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=0e7abe966620
Comment 10•9 years ago
|
||
(In reply to Benoit Girard (:BenWa) from comment #7) > (In reply to Kartikaya Gupta (email:kats@mozilla.com) from comment #6) > > - the new code should only be run #if !defined(MOZ_WIDGET_ANDROID) || > > defined(MOZ_ANDROID_APZ) since by default this will always fail on fennec as > > it doesn't use APZ. > > I don't like these defines because it's too easy to miss updating them if we > start running this code on desktop. There shouldn't be any need to update this for desktop. The #if condition only prevents this code from running on fennec when it's using the java PZC. All other cases including desktop will run this code.
Comment 11•9 years ago
|
||
Comment on attachment 8543023 [details] [diff] [review] Disable all paint heuristics for layers not actively scrolled by APZ. Review of attachment 8543023 [details] [diff] [review]: ----------------------------------------------------------------- You need to move the semicolon outside the #if or it will fail to build on fennec. r+ with that.
Attachment #8543023 -
Flags: review?(bugmail.mozilla) → review+
Assignee | ||
Comment 12•9 years ago
|
||
Waiting on inbound to open.
Attachment #8543023 -
Attachment is obsolete: true
Attachment #8543292 -
Flags: review+
Assignee | ||
Comment 13•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/827fa9b5f9b4
Backed out for linux debug build failures: https://hg.mozilla.org/integration/mozilla-inbound/rev/a8ab478e9ba9 https://treeherder.mozilla.org/ui/logviewer.html#?job_id=5034349&repo=mozilla-inbound
Flags: needinfo?(bgirard)
Assignee | ||
Comment 15•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/47683fccda29 Folded bug 1117155.
Attachment #8543292 -
Attachment is obsolete: true
Flags: needinfo?(bgirard)
Attachment #8543335 -
Flags: review+
Comment 17•9 years ago
|
||
Backed out in https://hg.mozilla.org/integration/mozilla-inbound/rev/b2acfbc039a0 for b2g reftest-6 failures, https://treeherder.mozilla.org/logviewer.html#?job_id=5039497&repo=mozilla-inbound
Assignee | ||
Comment 18•9 years ago
|
||
Assignee | ||
Comment 19•9 years ago
|
||
I'm adjusting the fuzzy-ness for the test to match android. Previously we had: fuzzy-if(Android,11,40) fuzzy-if(B2G,11,35) And now we will have: fuzzy-if(Android,11,40) fuzzy-if(B2G,11,40)
Attachment #8543335 -
Attachment is obsolete: true
Attachment #8546073 -
Flags: review+
Assignee | ||
Comment 20•9 years ago
|
||
cleanup qfold
Attachment #8546073 -
Attachment is obsolete: true
Attachment #8546087 -
Flags: review+
Assignee | ||
Comment 21•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/9c5d2d742c54
Comment 22•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/9c5d2d742c54
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla37
Comment 23•9 years ago
|
||
Bug 1109315 comment 23 claims this fixed that bug. Not sure if the FxOS people will want to uplift this to FxOS 2.1, but just a heads up in case they decide that over there.
Assignee | ||
Comment 25•9 years ago
|
||
NOTE: Please see https://wiki.mozilla.org/Release_Management/B2G_Landing to better understand the B2G approval process and landings. [Approval Request Comment] Bug caused by (feature/regressing bug #): Enabling low res painting User impact if declined: Several small and temporary visual glitches during animations. Testing completed: Has been on master for several months. Tested locally to confirm that the patch works and addresses the problem. Has minor test CI coverage. Risk to taking this patch (and alternatives if risky): Medium but this has been mitigated by being on central for a while. String or UUID changes made by this patch: none
Attachment #8552638 -
Flags: review+
Attachment #8552638 -
Flags: approval-mozilla-b2g34?
Comment 26•9 years ago
|
||
Comment on attachment 8552638 [details] [diff] [review] rebased on b2g 2.1 Helps 1119726
Attachment #8552638 -
Flags: approval-mozilla-b2g34? → approval-mozilla-b2g34+
Assignee | ||
Comment 27•9 years ago
|
||
This has been tagged as the possible cause for regressing bug 1121871. I need to investigate this before we uplift this patch.
Updated•9 years ago
|
status-b2g-v2.1:
--- → affected
status-b2g-v2.2:
--- → fixed
status-firefox35:
--- → wontfix
status-firefox36:
--- → wontfix
status-firefox37:
--- → fixed
Whiteboard: [NO_UPLIFT}
Comment 28•9 years ago
|
||
https://hg.mozilla.org/releases/mozilla-b2g34_v2_1/rev/4d0243277717
Whiteboard: [NO_UPLIFT}
Comment 29•9 years ago
|
||
https://hg.mozilla.org/releases/mozilla-b2g34_v2_1s/rev/4d0243277717
status-b2g-v2.1S:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•