Closed
Bug 1042536
Opened 10 years ago
Closed 9 years ago
Enable ImageLayer optimization for clipped backgrounds
Categories
(Core :: Layout, defect)
Tracking
()
RESOLVED
FIXED
mozilla43
Tracking | Status | |
---|---|---|
firefox43 | --- | fixed |
People
(Reporter: mattwoodrow, Assigned: mattwoodrow)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
1.27 KB,
patch
|
mstange
:
review+
|
Details | Diff | Splinter Review |
828 bytes,
text/html
|
Details |
Now that we clip background images using DisplayItemClip (bug 1042423), we can optimize more images into ImageLayers. https://tbpl.mozilla.org/?tree=Try&rev=f2427af4e3c6
Attachment #8460770 -
Flags: review?(roc)
Comment 1•10 years ago
|
||
With this patch, does this testcase correctly show solid white squares with black borders? (You'll need to enable layout.css.will-change.enabled to get an image layer in the bottom square.) We talked about this optimization in Taipei and the subimage sampling requirement was what put me off doing this sooner. jrmuizel suggested adding a sampling rect property to ImageLayers and using a shader that clamps the texture sample positions to this rect.
Assignee | ||
Comment 2•10 years ago
|
||
Yes, becaause we still don't get an ImageLayer for this case. We patch should only let us have an ImageLayer when the destination is clipped, not when we need source clipping for the image.
Comment 3•10 years ago
|
||
Oh because you're not removing the "if (!state.mDestArea.IsEqualEdges(state.mFillArea)) {" further down in the function. Good, I missed that.
Comment 4•9 years ago
|
||
Comment on attachment 8460770 [details] [diff] [review] image-layerize Can I steal this review?
Attachment #8460770 -
Flags: review?(roc) → review+
Assignee | ||
Comment 5•9 years ago
|
||
Fine with me! https://treeherder.mozilla.org/#/jobs?repo=try&revision=1881c681b497
Comment 7•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/e26240900b5a
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox43:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla43
You need to log in
before you can comment on or make changes to this bug.
Description
•