Closed Bug 948802 Opened 11 years ago Closed 8 years ago

Scrolling layer causes buffer re-allocation

Categories

(Core :: Graphics: Layers, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: BenWa, Assigned: BenWa)

References

Details

Attachments

(2 files)

Attached file testcase.html
With this testcase and some logging on buffer re-allocation we see a lot of buffer reallocation for what should be a well performing scroll.
Attached patch patchSplinter Review
This patch fixes the problem for me. If we wanted we could instead add a way to force bounds on the buffer rather then increase the content bounds which causes over painting.
Assignee: nobody → bgirard
Status: NEW → ASSIGNED
Attachment #8345697 - Flags: review?(matt.woodrow)
Comment on attachment 8345697 [details] [diff] [review] patch Review of attachment 8345697 [details] [diff] [review]: ----------------------------------------------------------------- I think roc should look at this, since I discussed it with you. I think we at least need to limit the area to the part of the scroll frame that is visible. Intersecting with the viewport might be the easiest way to do this.
Attachment #8345697 - Flags: review?(matt.woodrow) → review?(roc)
Comment on attachment 8345697 [details] [diff] [review] patch Review of attachment 8345697 [details] [diff] [review]: ----------------------------------------------------------------- Yes, we do need to do something here. Intersect the rect with the scrollframe's cliprect maybe?
Status: ASSIGNED → NEW
Attachment #8345697 - Flags: review?(roc)
This is still important but may be solved by tiling everywhere.
Blocks: 967818
This bug is obsolete.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: