[webkit-changes] [WebKit/WebKit] e6e6c0: Refactor WCLayerUpdateInfo for serialization
Don Olmstead
noreply at github.com
Wed Jan 31 10:39:22 PST 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: e6e6c08dd097ff75e620ca93f357af5cabb65a8a
https://github.com/WebKit/WebKit/commit/e6e6c08dd097ff75e620ca93f357af5cabb65a8a
Author: Don Olmstead <don.olmstead at sony.com>
Date: 2024-01-31 (Wed, 31 Jan 2024)
Changed paths:
M Source/WebKit/GPUProcess/graphics/wc/WCScene.cpp
M Source/WebKit/WebProcess/WebPage/wc/GraphicsLayerWC.cpp
M Source/WebKit/WebProcess/WebPage/wc/WCUpdateInfo.h
M Source/WebKit/WebProcess/WebPage/wc/WCUpdateInfo.serialization.in
Log Message:
-----------
Refactor WCLayerUpdateInfo for serialization
https://bugs.webkit.org/show_bug.cgi?id=267968
Reviewed by Chris Dumez.
Modify `WCLayerUpdateInfo` so it's serialization can be generated. The
values to serialize in an instance are controlled by an `OptionSet`.
The generator supports this through `OptionalTupleBit` but it expects
one field per enumeration which is not the case for `WCLayerUpdateInfo`.
Group those fields together into nested structs and sort the fields by
the value of `WCLayerChange` they correspond to.
The actual serialization of `WCLayerUpdateInfo` will come in a separate
change.
* Source/WebKit/GPUProcess/graphics/wc/WCScene.cpp:
(WebKit::WCScene::update):
* Source/WebKit/WebProcess/WebPage/wc/GraphicsLayerWC.cpp:
(WebKit::GraphicsLayerWC::flushCompositingStateForThisLayerOnly):
* Source/WebKit/WebProcess/WebPage/wc/WCUpdateInfo.h:
(WebKit::WCLayerUpdateInfo::encode const):
(WebKit::WCLayerUpdateInfo::decode):
* Source/WebKit/WebProcess/WebPage/wc/WCUpdateInfo.serialization.in:
Canonical link: https://commits.webkit.org/273839@main
More information about the webkit-changes
mailing list