Closed
Bug 764117
Opened 13 years ago
Closed 13 years ago
Prefer performance over avoiding seaming
Categories
(Core :: Layout, defect)
Core
Layout
Tracking
()
RESOLVED
FIXED
mozilla16
People
(Reporter: bas.schouten, Assigned: bas.schouten)
References
Details
Attachments
(2 files, 1 obsolete file)
3.18 KB,
patch
|
roc
:
review+
philor
:
checkin-
|
Details | Diff | Splinter Review |
1.14 KB,
patch
|
roc
:
review+
|
Details | Diff | Splinter Review |
Right now, for complex combinations of border characteristics we create temporary surfaces and use complex operators for each border corner. This is particular expensive on D2D but also isn't free on other drawing systems. This patch changes us to seam in those complex cases, there's precedent for this, IE9 actually almost always seams even on much simpler border cases. Chrome seams sometimes but not others, I don't know exactly when.
Attachment #632373 -
Flags: review?(roc)
Updated•13 years ago
|
Updated•13 years ago
|
OS: Windows 7 → All
Hardware: x86_64 → All
Assignee | ||
Comment 2•13 years ago
|
||
How do you feel about this roc?
Comment on attachment 632373 [details] [diff] [review]
Seam for more complex borders
Review of attachment 632373 [details] [diff] [review]:
-----------------------------------------------------------------
I feel fine.
Attachment #632373 -
Flags: review?(roc) → review+
Comment 4•13 years ago
|
||
Comment on attachment 632373 [details] [diff] [review]
Seam for more complex borders
Might have been good to ask OS X how it felt about it, since as it turns out, it felt like it would have to do https://tbpl.mozilla.org/php/getParsedLog.php?id=12844359&tree=Mozilla-Inbound
Backed out in https://hg.mozilla.org/integration/mozilla-inbound/rev/68be2d36dd3f
Attachment #632373 -
Flags: checkin-
Assignee | ||
Comment 5•13 years ago
|
||
Invisible tiny single-subpixel difference. Any objection if I just add fuzz on OSX to this test?
I would just add border:none to the test and reference iframes.
Assignee | ||
Comment 7•13 years ago
|
||
Attachment #635571 -
Flags: review?(roc)
Attachment #635571 -
Flags: review?(roc) → review+
Assignee | ||
Comment 8•13 years ago
|
||
The previous patch had reftest issues on OS X 10.6 on try. I've reverted the test and now marked it fuzzy.
Attachment #635571 -
Attachment is obsolete: true
Attachment #635598 -
Flags: review?(roc)
Attachment #635598 -
Flags: review?(roc) → review+
Should we consider making this change only in some cases rather than in all cases? Perhaps based on either (1) the 'image-rendering' property or a new property like it (2) the width of the border or (3) a combination of the two?
(My sense is that some authors actually do care about getting correct rendering here, but the bulk of the performance problems are not for those authors.)
I'd rather not introduce any Web-facing API here. Eventually I think we can have correct rendering and performance.
A heuristic based on the width might be helpful, but I'm not sure what that should be.
Assignee | ||
Comment 12•13 years ago
|
||
Right now this fallback codepath is also only called in the case of particularly complex borders that don't go through any of our fastpaths. (Unless we go through the 'don't stroke' codepath)
IE9 just seams everywhere. Should we run into web authors having trouble with the seams we could also look at introducing a fastpath for their particular usecase.
Comment 13•13 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/878a3e1f9591
https://hg.mozilla.org/mozilla-central/rev/9d076b46d1b7
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla16
You need to log in
before you can comment on or make changes to this bug.
Description
•