Closed
Bug 1415034
Opened 7 years ago
Closed 7 years ago
Convert drop-shadow CSS filter to WebRender
Categories
(Core :: Graphics: WebRender, enhancement, P1)
Core
Graphics: WebRender
Tracking
()
RESOLVED
FIXED
mozilla59
Tracking | Status | |
---|---|---|
firefox57 | --- | unaffected |
firefox58 | --- | unaffected |
firefox59 | --- | fixed |
People
(Reporter: mtseng, Assigned: mtseng)
References
Details
(Keywords: feature, Whiteboard: [wr-reserve])
Attachments
(1 file, 4 obsolete files)
9.29 KB,
patch
|
mtseng
:
review+
|
Details | Diff | Splinter Review |
+++ This bug was initially created as a clone of Bug #1370564 +++
Updated•7 years ago
|
Whiteboard: [wr-mvp][wr-triage] → [wr-mvp] [triage]
Updated•7 years ago
|
Assignee: nobody → ethlin
Updated•7 years ago
|
Whiteboard: [wr-mvp] [triage] → [wr-mvp] [triage][wr-reserve-candidate]
Updated•7 years ago
|
Updated•7 years ago
|
Whiteboard: [wr-mvp] [triage][wr-reserve-candidate] → [wr-reserve]
Updated•7 years ago
|
Assignee: ethlin → nobody
Comment 1•7 years ago
|
||
This bug is related fb performance. I think we probably want to address this for wr-nightly based on bug 1411813 comment 13.
Whiteboard: [wr-reserve] → [wr-reserve][triage]
Updated•7 years ago
|
Whiteboard: [wr-reserve][triage] → [wr-mvp] [triage]
Updated•7 years ago
|
Whiteboard: [wr-mvp] [triage] → [wr-reserve]
Sure, we can move it to nightly. Still want to wait a bit before we work on it, until we clear out some of the non-fallback types of performance issues.
Comment 4•7 years ago
|
||
Here's the corresponding webrender issue: https://github.com/servo/webrender/issues/2044
Comment 5•7 years ago
|
||
(In reply to Milan Sreckovic [:milan] from comment #2)
> Sure, we can move it to nightly. Still want to wait a bit before we work on
> it, until we clear out some of the non-fallback types of performance issues.
I think this bug is needed to reduce the fallback items on fb and MotionMark. It's not improving the fallback path performance. Change to P2?
Flags: needinfo?(milan)
Updated•7 years ago
|
Status: NEW → ASSIGNED
Priority: P3 → P1
Whiteboard: [wr-reserve] → [wr-mvp]
Updated•7 years ago
|
Flags: needinfo?(milan)
Comment hidden (mozreview-request) |
Assignee | ||
Comment 8•7 years ago
|
||
Upload a gecko wip. Still depend on webrender pull request. pr is here https://github.com/servo/webrender/pull/2091
Assignee | ||
Comment 9•7 years ago
|
||
Updated•7 years ago
|
See Also: → https://github.com/servo/webrender/pull/2091
Updated•7 years ago
|
Whiteboard: [wr-mvp] → [wr-reserve]
Assignee | ||
Comment 10•7 years ago
|
||
The long-chain.html failure is tracking by
https://github.com/servo/webrender/issues/2197
MozReview-Commit-ID: FECidSvTQrY
Attachment #8935625 -
Flags: review?(bugmail)
Assignee | ||
Updated•7 years ago
|
Attachment #8931585 -
Attachment is obsolete: true
Assignee | ||
Comment 11•7 years ago
|
||
Comment 12•7 years ago
|
||
Comment on attachment 8935625 [details] [diff] [review]
Add drop-shadow support.
Review of attachment 8935625 [details] [diff] [review]:
-----------------------------------------------------------------
r+. One suggestion below. I don't feel too strongly about it but it would make it a little cleaner I think.
::: gfx/webrender_bindings/src/bindings.rs
@@ +365,5 @@
> #[repr(C)]
> #[derive(Copy, Clone)]
> pub struct WrFilterOp {
> filter_type: WrFilterOpType,
> + argument: [c_float; 7],
Instead of lumping all 7 floats into one array it might be a bit cleaner to separate this into three fields:
argument: c_float, // holds radius for DropShadow; value for other filters
offset: LayoutVector2D, // only used for DropShadow
color: ColorF, // only used for DropShadow
and then all the existing filters can just use the same c_filter.argument unchanged, and you can use the extra fields in a more strongly-typed fashion for the DropShadow filter. cbindgen should be able to deal with this correctly.
Attachment #8935625 -
Flags: review?(bugmail) → review+
Comment hidden (mozreview-request) |
Assignee | ||
Comment 14•7 years ago
|
||
Thanks for suggestion. The code becomes much cleaner now.
Assignee | ||
Comment 15•7 years ago
|
||
Assignee | ||
Comment 16•7 years ago
|
||
Comment on attachment 8931585 [details]
Bug 1415034 - Add drop-shadow support.
oops, accidentally sending a review.
Attachment #8931585 -
Flags: review?(bugmail)
Assignee | ||
Updated•7 years ago
|
Attachment #8931585 -
Attachment is obsolete: true
Assignee | ||
Comment 17•7 years ago
|
||
The long-chain.html failure is tracking by
https://github.com/servo/webrender/issues/2197
MozReview-Commit-ID: FECidSvTQrY
Attachment #8936415 -
Flags: review+
Assignee | ||
Updated•7 years ago
|
Attachment #8935625 -
Attachment is obsolete: true
Assignee | ||
Comment 18•7 years ago
|
||
Fix try failures.
MozReview-Commit-ID: FECidSvTQrY
Attachment #8936437 -
Flags: review+
Assignee | ||
Updated•7 years ago
|
Attachment #8936415 -
Attachment is obsolete: true
Assignee | ||
Comment 19•7 years ago
|
||
Assignee | ||
Comment 20•7 years ago
|
||
Assignee | ||
Comment 21•7 years ago
|
||
The long-chain.html failure is tracking by
https://github.com/servo/webrender/issues/2197
MozReview-Commit-ID: FECidSvTQrY
Attachment #8936463 -
Flags: review+
Assignee | ||
Updated•7 years ago
|
Attachment #8936437 -
Attachment is obsolete: true
Comment 22•7 years ago
|
||
Pushed by mtseng@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/fd2a2e17aef3
Add drop-shadow support. r=kats
![]() |
||
Comment 23•7 years ago
|
||
Backed out for build bustage at layout/painting/nsDisplayList.cpp:9992:
https://hg.mozilla.org/integration/mozilla-inbound/rev/bcae439efd9ce769f1412b14d2c4ce3205117eb9
Push with bustage: https://treeherder.mozilla.org/#/jobs?repo=mozilla-inbound&revision=fd2a2e17aef386ad47cfbd2259b7dd791999d194&filter-resultStatus=testfailed&filter-resultStatus=busted&filter-resultStatus=exception&filter-resultStatus=retry&filter-resultStatus=usercancel&filter-resultStatus=runnable
Build log: https://treeherder.mozilla.org/logviewer.html#?job_id=151474795&repo=mozilla-inbound
/builds/worker/workspace/build/src/layout/painting/nsDisplayList.cpp:9992:11: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces]
/builds/worker/workspace/build/src/layout/painting/nsDisplayList.cpp:9994:11: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces]
Flags: needinfo?(mtseng)
Comment 24•7 years ago
|
||
Pushed by mtseng@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/8859d342fd59
Add drop-shadow support. r=kats
Assignee | ||
Comment 25•7 years ago
|
||
Sorry for that, submit another patch to fix it.
Flags: needinfo?(mtseng)
Comment 26•7 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox59:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
You need to log in
before you can comment on or make changes to this bug.
Description
•