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•1 year ago
|
Assignee | ||
Comment 1•1 year 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•1 year ago
|
||
It is not used anywhere.
Depends on D151629
Assignee | ||
Comment 3•1 year 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•1 year 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•1 year ago
|
||
Depends on D152082
Assignee | ||
Comment 6•1 year ago
|
||
Depends on D152093
Assignee | ||
Comment 7•1 year ago
|
||
Depends on D152520
Updated•1 year ago
|
Pushed by nsilva@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4c512a0c05a9 Move the buffer creation code in Buffer.cpp. r=jimb https://hg.mozilla.org/integration/autoland/rev/6178c6dd5c31 Remove Buffer::Mappable(). r=jimb https://hg.mozilla.org/integration/autoland/rev/326511661875 use Buffer::GetDevice instead of mParent. r=jimb https://hg.mozilla.org/integration/autoland/rev/b4210142bf82 Move the remaining buffer logic in Device.cpp into Buffer.cpp. r=jimb https://hg.mozilla.org/integration/autoland/rev/6de84921e7d0 Remove the public/private/public sandwich in Buffer.h. r=jimb https://hg.mozilla.org/integration/autoland/rev/84974dbb4d3f Remove unnecessary MapRequest constructor. r=jimb
Comment 9•1 year 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•1 year ago
|
||
Pushed by nsilva@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7e8821dd4f03 Move the buffer creation code in Buffer.cpp. r=jimb https://hg.mozilla.org/integration/autoland/rev/e2c974f3d477 Remove Buffer::Mappable(). r=jimb https://hg.mozilla.org/integration/autoland/rev/f611bfcfc02d use Buffer::GetDevice instead of mParent. r=jimb https://hg.mozilla.org/integration/autoland/rev/0204fff6c608 Move the remaining buffer logic in Device.cpp into Buffer.cpp. r=jimb https://hg.mozilla.org/integration/autoland/rev/6607756956f2 Remove the public/private/public sandwich in Buffer.h. r=jimb https://hg.mozilla.org/integration/autoland/rev/71079d2d9b1d Remove unnecessary MapRequest constructor. r=jimb
Comment 11•1 year 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•1 year ago
|
Description
•