Various WebGPU buffer code cleanups
Categories
(Core :: Graphics: WebGPU, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox105 | --- | fixed |
People
(Reporter: nical, Assigned: nical)
References
Details
Attachments
(6 files, 1 obsolete file)
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review |
A collection of simple cleanup changes that came up during the work on bug 1777535 and its review.
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 1•3 years ago
|
||
No funcitonal change here, I like to have the code maintaining and depending on the same invariants to be in the same place.
Depends on D151616
Assignee | ||
Comment 2•3 years ago
|
||
It is not used anywhere.
Depends on D151629
Assignee | ||
Comment 3•3 years ago
|
||
Another cosmetic change. I've dabbled with IPDL actors too much to not think about WebGPUParent when reading "mParent". Also the parent-child relationship between Device and Buffer is not very obvious to me (nor is it part of the specification).
So I find that wrapping mParent in a GetDevice method to make the code easier to understand. It also makes it explicit that the parent pointer cannot be null.
Depends on D151630
Assignee | ||
Comment 4•3 years ago
|
||
Having the code in the same place makes it easier to follow. This made me realize that the validation of aMode in mapAsync has to move to the device side (fix coming in a followup).
Depends on D151631
Assignee | ||
Comment 5•3 years ago
|
||
Depends on D152082
Assignee | ||
Comment 6•3 years ago
|
||
Depends on D152093
Assignee | ||
Comment 7•3 years ago
|
||
Depends on D152520
Updated•2 years ago
|
Comment 9•2 years ago
|
||
Backed out 22 changesets (Bug 1780792, Bug 1778713, Bug 1771254, Bug 1777535) for causing bustages on WebGPUParent.h.
Backout link
Push with failures <--> BP-hybrid
Failure Log
Comment 10•2 years ago
|
||
Comment 11•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/7e8821dd4f03
https://hg.mozilla.org/mozilla-central/rev/e2c974f3d477
https://hg.mozilla.org/mozilla-central/rev/f611bfcfc02d
https://hg.mozilla.org/mozilla-central/rev/0204fff6c608
https://hg.mozilla.org/mozilla-central/rev/6607756956f2
https://hg.mozilla.org/mozilla-central/rev/71079d2d9b1d
Assignee | ||
Updated•2 years ago
|
Description
•