Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: e6e6c08dd097ff75e620ca93f357af5cabb65a8a
https://github.com/WebKit/WebKit/commit/e6e6c08dd097ff75e620ca93f357af5cabb65a8a
Author: Don Olmstead <[email protected]>
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
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes