Open
Bug 558087
Opened 15 years ago
Updated 3 years ago
avoid non-pixel-aligned clips for mobile's Image Layer composite
Categories
(Core :: Graphics, defect)
Tracking
()
NEW
People
(Reporter: romaxa, Unassigned)
References
Details
(Keywords: perf)
Attachments
(1 file, 3 obsolete files)
|
1.18 KB,
patch
|
roc
:
review-
|
Details | Diff | Splinter Review |
Currently we are painting BasicLayers with PixelSnappedRectangleAndSetPattern
http://mxr.mozilla.org/mozilla-central/source/gfx/layers/basic/BasicLayers.cpp#360
And it cause slow composition for scaled layer.
Idea is to make fix for PixelSnappedRectangleAndSetPattern similar to bug
https://bugzilla.mozilla.org/show_bug.cgi?id=459150
Attachment #437860 -
Flags: review?(vladimir)
| Reporter | ||
Comment 1•15 years ago
|
||
This is making video layer composition 2x faster.
Comment on attachment 437860 [details] [diff] [review]
snap to pixels more aggressively for mobile
bouncing over to roc -- he's the snapmaster
Attachment #437860 -
Flags: review?(vladimir) → review?(roc)
Why don't we just do this for all configurations? I think that would be fine.
Updated•15 years ago
|
Attachment #437860 -
Flags: review?(roc) → review-
Comment 4•15 years ago
|
||
Comment on attachment 437860 [details] [diff] [review]
snap to pixels more aggressively for mobile
>+ if (UserToDevicePixelSnapped(r), PR_TRUE) {
do you perhaps mean?
>+ if (UserToDevicePixelSnapped(r, PR_TRUE)) {
| Reporter | ||
Comment 5•15 years ago
|
||
Attachment #437951 -
Flags: review?(roc)
| Reporter | ||
Comment 6•15 years ago
|
||
> do you perhaps mean?
>
> >+ if (UserToDevicePixelSnapped(r, PR_TRUE)) {
Oh, yep.
I have sent BUG558087 try-request for test
| Reporter | ||
Comment 7•15 years ago
|
||
Assignee: nobody → romaxa
Attachment #437860 -
Attachment is obsolete: true
Attachment #437951 -
Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #437958 -
Flags: review?(roc)
Attachment #437951 -
Flags: review?(roc)
Sorry, I misunderstood you on IRC.
I don't think we should change the default parameter for gfxContext::Rectangle.
I think we should take your original patch, but for all platforms, so that when gfxContext::Rectangle is snapping to pixels, we allow snapping even if there's a scale factor in the transform.
| Reporter | ||
Comment 10•15 years ago
|
||
Comment on attachment 437958 [details] [diff] [review]
Snap everything
Then I think second patch should be fine
Attachment #437958 -
Attachment is obsolete: true
Attachment #437958 -
Flags: review?(roc)
| Reporter | ||
Comment 11•15 years ago
|
||
Comment on attachment 437951 [details] [diff] [review]
Snap to pixels by default
Not sure, but probably we should remove layout/base/nsPresShell.cpp changes in this case...
Attachment #437951 -
Flags: review?(roc)
| Reporter | ||
Comment 12•15 years ago
|
||
Attachment #437996 -
Flags: review?(roc)
| Reporter | ||
Updated•15 years ago
|
Attachment #437951 -
Flags: review?(roc)
Hmm, is PixelSnappedRectangleAndSetPattern actually correct here? I think we need to do something to set up scaling of the pattern correctly.
I will probably fix this in bug 602200
Depends on: 602200
Attachment #437996 -
Flags: review?(roc) → review-
Comment 15•3 years ago
|
||
The bug assignee didn't login in Bugzilla in the last 7 months.
:bhood, could you have a look please?
For more information, please visit auto_nag documentation.
Assignee: romaxa → nobody
Status: ASSIGNED → NEW
Flags: needinfo?(bhood)
Updated•3 years ago
|
Flags: needinfo?(bhood)
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•