RESOLVED FIXED Bug 219089
Clean up some code in SharedDisplayListHandle
https://bugs.webkit.org/show_bug.cgi?id=219089
Summary Clean up some code in SharedDisplayListHandle
Wenson Hsieh
Reported 2020-11-18 08:22:05 PST
...
Attachments
Patch (7.01 KB, patch)
2020-11-18 08:26 PST, Wenson Hsieh
no flags
Patch (6.83 KB, patch)
2020-11-18 10:01 PST, Wenson Hsieh
no flags
Wenson Hsieh
Comment 1 2020-11-18 08:26:42 PST
Geoffrey Garen
Comment 2 2020-11-18 09:44:42 PST
Comment on attachment 414452 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=414452&action=review r=me > Source/WebKit/Shared/SharedDisplayListHandle.h:40 > + static constexpr size_t reservedCapacityAtStart() We usually say "reserved capacity" to mean unused bytes. But these bytes are used -- by the DisplayListSharedMemoryHeader. How about just calling this "headerSize"? > Source/WebKit/Shared/SharedDisplayListHandle.h:42 > + return roundUpToMultipleOf<sizeof(uint64_t)>(sizeof(DisplayListSharedMemoryHeader)); Slightly better to use std::max_align_t instead of sizeof(uint64_t).
Wenson Hsieh
Comment 3 2020-11-18 09:46:02 PST
Comment on attachment 414452 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=414452&action=review >> Source/WebKit/Shared/SharedDisplayListHandle.h:40 >> + static constexpr size_t reservedCapacityAtStart() > > We usually say "reserved capacity" to mean unused bytes. But these bytes are used -- by the DisplayListSharedMemoryHeader. > > How about just calling this "headerSize"? Sounds good! Changed to headerSize(). >> Source/WebKit/Shared/SharedDisplayListHandle.h:42 >> + return roundUpToMultipleOf<sizeof(uint64_t)>(sizeof(DisplayListSharedMemoryHeader)); > > Slightly better to use std::max_align_t instead of sizeof(uint64_t). 👍🏻
Wenson Hsieh
Comment 4 2020-11-18 10:01:37 PST
EWS
Comment 5 2020-11-18 10:42:58 PST
Committed r269969: <https://trac.webkit.org/changeset/269969> All reviewed patches have been landed. Closing bug and clearing flags on attachment 414457 [details].
Radar WebKit Bug Importer
Comment 6 2020-11-18 10:43:17 PST
Note You need to log in before you can comment on or make changes to this bug.